summaryrefslogtreecommitdiff
path: root/templates/service
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-16 15:56:24 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-16 16:22:42 -0800
commitf3d8a923cbf42966e4de11d0978f2c9518b90cb3 (patch)
treed10ed9c8fc56f35b48746facb86395f1057271ed /templates/service
parent184cb6cb1431acfeec02caadf51fce246141e3cb (diff)
downloadvyatta-cfg-system-f3d8a923cbf42966e4de11d0978f2c9518b90cb3.tar.gz
vyatta-cfg-system-f3d8a923cbf42966e4de11d0978f2c9518b90cb3.zip
Add ability to configure telnet listen-addres
Bug 4452 Allow configuring a telnet listen-address either IPv4 or IPv6 (like SSH). Unlike SSH, telnet only supports a single listen-address
Diffstat (limited to 'templates/service')
-rw-r--r--templates/service/telnet/listen-address/node.def4
-rw-r--r--templates/service/telnet/node.def2
2 files changed, 5 insertions, 1 deletions
diff --git a/templates/service/telnet/listen-address/node.def b/templates/service/telnet/listen-address/node.def
new file mode 100644
index 00000000..9faea595
--- /dev/null
+++ b/templates/service/telnet/listen-address/node.def
@@ -0,0 +1,4 @@
+type: ipv4,ipv6
+help: Local addresses telnet should listen on
+val_help: ipv4: IP address to listen for incoming connections
+val_help: ipv6: IPv6 address to listen for incoming connections
diff --git a/templates/service/telnet/node.def b/templates/service/telnet/node.def
index 9b2814aa..959a0421 100644
--- a/templates/service/telnet/node.def
+++ b/templates/service/telnet/node.def
@@ -4,5 +4,5 @@ create: touch /tmp/vyatta-telnet.$PPID
delete: /opt/vyatta/sbin/vyatta_update_telnet disable
end: if [ -f /tmp/vyatta-telnet.$PPID ]; then
rm -f /tmp/vyatta-telnet.$PPID
- /opt/vyatta/sbin/vyatta_update_telnet enable $VAR(port/@)
+ /opt/vyatta/sbin/vyatta_update_telnet enable $VAR(port/@) $VAR(listen-address/@)
fi