diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-11 15:14:29 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-11 15:14:29 -0800 |
commit | ec188eedeb370b4433a0bdb5b958f72588894fc7 (patch) | |
tree | c129246d28cee90348afafd9ac95a818c5dc730c /templates-cfg | |
parent | 462d78e99366f81dc95ab126c62ddc13b027631d (diff) | |
download | vyatta-nat-ec188eedeb370b4433a0bdb5b958f72588894fc7.tar.gz vyatta-nat-ec188eedeb370b4433a0bdb5b958f72588894fc7.zip |
use common implementation of source/destination handling for NAT and firewall.
Diffstat (limited to 'templates-cfg')
-rw-r--r-- | templates-cfg/service/nat/rule/node.tag/destination/address/node.def | 9 | ||||
-rw-r--r-- | templates-cfg/service/nat/rule/node.tag/source/address/node.def | 9 |
2 files changed, 6 insertions, 12 deletions
diff --git a/templates-cfg/service/nat/rule/node.tag/destination/address/node.def b/templates-cfg/service/nat/rule/node.tag/destination/address/node.def index 48da82b..9c81afa 100644 --- a/templates-cfg/service/nat/rule/node.tag/destination/address/node.def +++ b/templates-cfg/service/nat/rule/node.tag/destination/address/node.def @@ -1,12 +1,9 @@ type: txt -help: Destination address or subnet -syntax:expression: exec "/opt/vyatta/sbin/vyatta-validate-type.pl \ - -q ipv4_negate '$VAR(@)' \ - || /opt/vyatta/sbin/vyatta-validate-type.pl \ - -q ipv4net_negate '$VAR(@)'" \ - ; "invalid destination address \"$VAR(@)\"" +help: Destination IP address, subnet, or range comp_help: Possible completions: <IP address> IP address to match <IP address>/<prefix length> Subnet to match + <IP address>-<IP address> IP range to match !<IP address> Match everything except the specified address !<IP address>/<prefix length> Match everything except the specified subnet + !<IP address>-<IP address> Match everything except the specified range diff --git a/templates-cfg/service/nat/rule/node.tag/source/address/node.def b/templates-cfg/service/nat/rule/node.tag/source/address/node.def index a9dda73..ae18e02 100644 --- a/templates-cfg/service/nat/rule/node.tag/source/address/node.def +++ b/templates-cfg/service/nat/rule/node.tag/source/address/node.def @@ -1,12 +1,9 @@ type: txt -help: Source address or subnet -syntax:expression: exec "/opt/vyatta/sbin/vyatta-validate-type.pl \ - -q ipv4_negate '$VAR(@)' \ - || /opt/vyatta/sbin/vyatta-validate-type.pl \ - -q ipv4net_negate '$VAR(@)'" \ - ; "invalid source address \"$VAR(@)\"" +help: Source IP address, subnet, or range comp_help: Possible completions: <IP address> IP address to match <IP address>/<prefix length> Subnet to match + <IP address>-<IP address> IP range to match !<IP address> Match everything except the specified address !<IP address>/<prefix length> Match everything except the specified subnet + !<IP address>-<IP address> Match everything except the specified range |