diff options
author | Christian Poessinger <christian@poessinger.com> | 2023-01-04 19:58:59 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2023-01-08 08:55:38 +0100 |
commit | c0745d64024a498377dd02f2fc1ef0366473e97c (patch) | |
tree | f8279a2e895384d3a7eded123d94c7988c6981b3 /data/templates/system/ssh_config.tmpl | |
parent | 87b45f69913b7687433fb214fc97064fccd7214b (diff) | |
download | vyos-1x-c0745d64024a498377dd02f2fc1ef0366473e97c.tar.gz vyos-1x-c0745d64024a498377dd02f2fc1ef0366473e97c.zip |
ssh: T4922: add source-interface support ssh-client
(cherry picked from commit 87cc636bd2baf576a2a5ece7a4f8318eb4f69c2e)
Diffstat (limited to 'data/templates/system/ssh_config.tmpl')
-rw-r--r-- | data/templates/system/ssh_config.tmpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/data/templates/system/ssh_config.tmpl b/data/templates/system/ssh_config.tmpl index abc03f069..94dac9ed3 100644 --- a/data/templates/system/ssh_config.tmpl +++ b/data/templates/system/ssh_config.tmpl @@ -1,3 +1,8 @@ -{% if ssh_client is defined and ssh_client.source_address is defined and ssh_client.source_address is not none %} +{% if ssh_client is defined %} +{% if ssh_client.source_address is defined and ssh_client.source_address is not none %} BindAddress {{ ssh_client.source_address }} +{% endif %} +{% if ssh_client.source_interface is defined and ssh_client.source_address is not none %} +BindInterface {{ ssh_client.source_interface }} +{% endif %} {% endif %} |