diff options
author | Christian Poessinger <christian@poessinger.com> | 2017-12-09 15:28:24 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2017-12-09 15:32:05 +0100 |
commit | 7ddab704b12dc447a2d8e2acb9178a0d90f63b78 (patch) | |
tree | bb3de873fc49b0fa1e10bbea2a85c175a2a81919 /templates | |
parent | 414eb78ec056a0b90d556377ecb73bc9100c03a4 (diff) | |
download | vyatta-cfg-system-7ddab704b12dc447a2d8e2acb9178a0d90f63b78.tar.gz vyatta-cfg-system-7ddab704b12dc447a2d8e2acb9178a0d90f63b78.zip |
T414: Remove 'telnet' service
Telnet remote logins have been deprecated for decades. As Debian
'jessie' busybox no longer has a telnetd applet, this service is no
longer available.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/service/telnet/allow-root/node.def | 3 | ||||
-rw-r--r-- | templates/service/telnet/listen-address/node.def | 7 | ||||
-rw-r--r-- | templates/service/telnet/node.def | 8 | ||||
-rw-r--r-- | templates/service/telnet/port/node.def | 9 |
4 files changed, 0 insertions, 27 deletions
diff --git a/templates/service/telnet/allow-root/node.def b/templates/service/telnet/allow-root/node.def deleted file mode 100644 index 39c78062..00000000 --- a/templates/service/telnet/allow-root/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Enable root login over telnet -create: /opt/vyatta/sbin/vyatta_update_telnet allow-root true -delete:/opt/vyatta/sbin/vyatta_update_telnet allow-root false diff --git a/templates/service/telnet/listen-address/node.def b/templates/service/telnet/listen-address/node.def deleted file mode 100644 index cd016628..00000000 --- a/templates/service/telnet/listen-address/node.def +++ /dev/null @@ -1,7 +0,0 @@ -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 - -commit:expression: exec "/opt/vyatta/sbin/local_ip $VAR(@)"; \ - "IP address $VAR(@) doesn\'t exist on this system" diff --git a/templates/service/telnet/node.def b/templates/service/telnet/node.def deleted file mode 100644 index e173d243..00000000 --- a/templates/service/telnet/node.def +++ /dev/null @@ -1,8 +0,0 @@ -priority: 500 # After syslog and logins -help: Enable/disable Network Virtual Terminal Protocol (TELNET) protocol -update: 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/@) $VAR(listen-address/@) - fi diff --git a/templates/service/telnet/port/node.def b/templates/service/telnet/port/node.def deleted file mode 100644 index c4db688a..00000000 --- a/templates/service/telnet/port/node.def +++ /dev/null @@ -1,9 +0,0 @@ -type: u32 -default: 23 -help: Port for TELNET service - -val_help: u32:1-65535; Numeric IP port -syntax:expression: $VAR(@) > 0 && $VAR(@) <= 65535 ; \ - "Port number must be in range 1 to 65535" -commit:expression: exec "sudo /opt/vyatta/sbin/is_port_available.pl $VAR(@)"; \ - "Port $VAR(@) is already in use!" |