summaryrefslogtreecommitdiff
path: root/data/templates/system
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-08-04 22:33:18 +0200
committerChristian Poessinger <christian@poessinger.com>2020-08-04 22:33:18 +0200
commit846e306700af191d22dc874992bbf5f04d2799c4 (patch)
tree4053023650917d8406d4e952cfd3cbcb416e85d3 /data/templates/system
parent3658058c6299a107dd5ce5973a9ec5e4be7064b0 (diff)
downloadvyos-1x-846e306700af191d22dc874992bbf5f04d2799c4.tar.gz
vyos-1x-846e306700af191d22dc874992bbf5f04d2799c4.zip
ssh: T2651: add cli options for source address
When running SSH from the VyOS system the source IP address can be set by: set system options ssh-client source-address x.x.x.x
Diffstat (limited to 'data/templates/system')
-rw-r--r--data/templates/system/ssh_config.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/system/ssh_config.tmpl b/data/templates/system/ssh_config.tmpl
new file mode 100644
index 000000000..509bd5479
--- /dev/null
+++ b/data/templates/system/ssh_config.tmpl
@@ -0,0 +1,3 @@
+{% if ssh_client is defined and ssh_client.source_address is defined and ssh_client.source_address is not none %}
+BindAddress {{ ssh_client.source_address }}
+{% endif %}