summaryrefslogtreecommitdiff
path: root/templates/service/ssh
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-08-20 17:32:46 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-08-20 17:32:46 -0700
commit28b30ad069bf77394c85e28261fb2652dc61539a (patch)
tree1036c947f3fcf30cf1a292f01804b277e105fbbd /templates/service/ssh
parent0051a049c8ca3af94a9a4fbc71585d0bdcc0a495 (diff)
downloadvyatta-cfg-system-28b30ad069bf77394c85e28261fb2652dc61539a.tar.gz
vyatta-cfg-system-28b30ad069bf77394c85e28261fb2652dc61539a.zip
Add checking of port range
Bug 6058 Put consitent checking port range on snmp, ssh, and telnet
Diffstat (limited to 'templates/service/ssh')
-rw-r--r--templates/service/ssh/port/node.def4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/service/ssh/port/node.def b/templates/service/ssh/port/node.def
index 1b1248f4..d4f53378 100644
--- a/templates/service/ssh/port/node.def
+++ b/templates/service/ssh/port/node.def
@@ -1,3 +1,7 @@
type: u32
default: 22
help: Port for SSH service
+val_help: u32:1-65535; Numeric IP port
+
+syntax:expression: $VAR(@) > 0 && $VAR(@) <= 65535 ; \
+ "Port number must be in range 1 to 65535"