diff options
Diffstat (limited to 'templates-cfg/system/conntrack/ignore')
-rw-r--r-- | templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def b/templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def index f5c1d2e..118e66a 100644 --- a/templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def +++ b/templates-cfg/system/conntrack/ignore/rule/node.tag/protocol/node.def @@ -3,12 +3,10 @@ help: protocol to ignore connection tracking for val_help: txt ; IP protocol name from /etc/protocols (e.g. "tcp" or "udp") val_help: u32:0-255 ; IP protocol number -val_help: tcp_udp ; Both TCP and UDP val_help: all ; All IP protocols val_help: !<protocol> ; All IP protocols except for the specified name or number (negation) -syntax:expression: exec "if [ -n \"`/opt/vyatta/sbin/vyatta-validate-type protocol_negate '$VAR(@)'`\" ] \ - && [ \"$VAR(@)\" != 'tcp_udp' ]; then \ +syntax:expression: exec "if [ -n \"`/opt/vyatta/sbin/vyatta-validate-type protocol_negate '$VAR(@)'`\" ] ; then \ echo invalid protocol \"$VAR(@)\" ; \ exit 1 ; \ fi ; " @@ -17,5 +15,5 @@ syntax:expression: exec "if [ -n \"`/opt/vyatta/sbin/vyatta-validate-type protoc # values or protocol numbers allowed: protos=`cat /etc/protocols | sed -e '/^#.*/d' | awk '{ print $1 }' | grep -v '6'` - protos="all $protos tcp_udp" + protos="all $protos" echo -n $protos |