summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates-cfg/nat/rule/node.def11
-rw-r--r--templates-cfg/nat/rule/node.tag/description/node.def3
-rw-r--r--templates-cfg/nat/rule/node.tag/destination/address/node.def10
-rw-r--r--templates-cfg/nat/rule/node.tag/destination/node.def1
-rw-r--r--templates-cfg/nat/rule/node.tag/destination/port/node.def11
-rw-r--r--templates-cfg/nat/rule/node.tag/disable/node.def1
-rw-r--r--templates-cfg/nat/rule/node.tag/exclude/node.def1
-rw-r--r--templates-cfg/nat/rule/node.tag/inbound-interface/node.def30
-rw-r--r--templates-cfg/nat/rule/node.tag/inside-address/address/node.def7
-rw-r--r--templates-cfg/nat/rule/node.tag/inside-address/node.def1
-rw-r--r--templates-cfg/nat/rule/node.tag/inside-address/port/node.def6
-rw-r--r--templates-cfg/nat/rule/node.tag/log/node.def6
-rw-r--r--templates-cfg/nat/rule/node.tag/outbound-interface/node.def30
-rw-r--r--templates-cfg/nat/rule/node.tag/outside-address/address/node.def7
-rw-r--r--templates-cfg/nat/rule/node.tag/outside-address/node.def1
-rw-r--r--templates-cfg/nat/rule/node.tag/outside-address/port/node.def6
-rw-r--r--templates-cfg/nat/rule/node.tag/protocol/node.def15
-rw-r--r--templates-cfg/nat/rule/node.tag/source/address/node.def10
-rw-r--r--templates-cfg/nat/rule/node.tag/source/node.def1
-rw-r--r--templates-cfg/nat/rule/node.tag/source/port/node.def11
-rw-r--r--templates-cfg/nat/rule/node.tag/type/node.def9
21 files changed, 0 insertions, 178 deletions
diff --git a/templates-cfg/nat/rule/node.def b/templates-cfg/nat/rule/node.def
deleted file mode 100644
index c666be9..0000000
--- a/templates-cfg/nat/rule/node.def
+++ /dev/null
@@ -1,11 +0,0 @@
-tag:
-
-type: u32
-
-help: Rule number for NAT
-
-syntax:expression: ($VAR(@) > 0 && $VAR(@) < 10000) ; \
- "Rule number must be between 1 and 9999."
-
-val_help: u32:1-9999 ; Number for this NAT rule
-
diff --git a/templates-cfg/nat/rule/node.tag/description/node.def b/templates-cfg/nat/rule/node.tag/description/node.def
deleted file mode 100644
index 90bf88b..0000000
--- a/templates-cfg/nat/rule/node.tag/description/node.def
+++ /dev/null
@@ -1,3 +0,0 @@
-type: txt
-
-help: Rule description
diff --git a/templates-cfg/nat/rule/node.tag/destination/address/node.def b/templates-cfg/nat/rule/node.tag/destination/address/node.def
deleted file mode 100644
index e580b57..0000000
--- a/templates-cfg/nat/rule/node.tag/destination/address/node.def
+++ /dev/null
@@ -1,10 +0,0 @@
-type: txt
-
-help: Destination IP address, subnet, or range
-
-val_help: ipv4 ; IP address to match
-val_help: ipv4net; Subnet to match
-val_help: ipv4range ; IP range to match
-val_help: !ipv4 ; Match everything except the specified address
-val_help: !ipv4net ; Match everything except the specified subnet
-val_help: !ipv4range ; Match everything except the specified range
diff --git a/templates-cfg/nat/rule/node.tag/destination/node.def b/templates-cfg/nat/rule/node.tag/destination/node.def
deleted file mode 100644
index 8fc8e75..0000000
--- a/templates-cfg/nat/rule/node.tag/destination/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: NAT destination parameters
diff --git a/templates-cfg/nat/rule/node.tag/destination/port/node.def b/templates-cfg/nat/rule/node.tag/destination/port/node.def
deleted file mode 100644
index 7505487..0000000
--- a/templates-cfg/nat/rule/node.tag/destination/port/node.def
+++ /dev/null
@@ -1,11 +0,0 @@
-type: txt
-
-help: Destination port
-
-val_help: <port name> ; Named port (any name in /etc/services, e.g., http)
-val_help: u32:1-65535 ; Numbered port
-val_help: <start>-<end> ; Numbered port range (e.g., 1001-1005)
-
-comp_help: Multiple destination ports can be specified as a comma-separated list.
-The whole list can also be "negated" using '!'.
-For example: '!22,telnet,http,123,1001-1005'
diff --git a/templates-cfg/nat/rule/node.tag/disable/node.def b/templates-cfg/nat/rule/node.tag/disable/node.def
deleted file mode 100644
index c23fc5a..0000000
--- a/templates-cfg/nat/rule/node.tag/disable/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Disable NAT rule
diff --git a/templates-cfg/nat/rule/node.tag/exclude/node.def b/templates-cfg/nat/rule/node.tag/exclude/node.def
deleted file mode 100644
index 3fc118a..0000000
--- a/templates-cfg/nat/rule/node.tag/exclude/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Exclude packets matching this rule from NAT
diff --git a/templates-cfg/nat/rule/node.tag/inbound-interface/node.def b/templates-cfg/nat/rule/node.tag/inbound-interface/node.def
deleted file mode 100644
index 03466b9..0000000
--- a/templates-cfg/nat/rule/node.tag/inbound-interface/node.def
+++ /dev/null
@@ -1,30 +0,0 @@
-type: txt
-
-help: Inbound interface of NAT traffic
-
-enumeration: existing-interfaces; echo "any"
-
-val_help: <interface> ; Interface name or "any"
-
-commit:expression: exec "
- if [ \"any\" == \"$VAR(@)\" ] ; then
- exit 0
- fi
- intf_array=($(awk '$1 ~ /:/ { print $1 }' /proc/net/dev))
- intf_array_len=${#intf_array[*]}
- i=0
- while [ $i -lt $intf_array_len ]; do
- temp=${intf_array[$i]%:*}
- if [ \"$temp\" == \"$VAR(@)\" ] ; then
- exit 0
- fi
- let i++
- done
- intf_group_name_array=\"eth+ bond+ br+ peth+ vtun+ tun+ wlm+ wlan+\"
- i=0
- for i in $intf_group_name_array; do
- if [ \"$i\" == \"$VAR(@)\" ]; then
- exit 0
- fi
- done
- echo NAT configuration warning: interface $VAR(@) does not exist on this system "
diff --git a/templates-cfg/nat/rule/node.tag/inside-address/address/node.def b/templates-cfg/nat/rule/node.tag/inside-address/address/node.def
deleted file mode 100644
index a00b483..0000000
--- a/templates-cfg/nat/rule/node.tag/inside-address/address/node.def
+++ /dev/null
@@ -1,7 +0,0 @@
-type: txt
-
-help: Inside IP address or range for NAT
-
-val_help: ipv4 ; NAT to the specified IP address
-val_help: ipv4range ; NAT to the specified IP range
-val_help: ipv4net ; NAT to the specified network address. Host part of the address will remain unchanged
diff --git a/templates-cfg/nat/rule/node.tag/inside-address/node.def b/templates-cfg/nat/rule/node.tag/inside-address/node.def
deleted file mode 100644
index e13cd32..0000000
--- a/templates-cfg/nat/rule/node.tag/inside-address/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Inside NAT IP (used by destination NAT only)
diff --git a/templates-cfg/nat/rule/node.tag/inside-address/port/node.def b/templates-cfg/nat/rule/node.tag/inside-address/port/node.def
deleted file mode 100644
index ab6f9d4..0000000
--- a/templates-cfg/nat/rule/node.tag/inside-address/port/node.def
+++ /dev/null
@@ -1,6 +0,0 @@
-type: txt
-
-help: Inside port
-
-val_help: u32:1-65535 ; Numbered port
-val_help: <start>-<end> ; Numbered port range (e.g., 1001-1005)
diff --git a/templates-cfg/nat/rule/node.tag/log/node.def b/templates-cfg/nat/rule/node.tag/log/node.def
deleted file mode 100644
index 867b471..0000000
--- a/templates-cfg/nat/rule/node.tag/log/node.def
+++ /dev/null
@@ -1,6 +0,0 @@
-type: txt
-
-help: NAT rule logging
-
-syntax:expression: $VAR(@) in "enable", "disable"; \
- "NAT logging must be enable or disable."
diff --git a/templates-cfg/nat/rule/node.tag/outbound-interface/node.def b/templates-cfg/nat/rule/node.tag/outbound-interface/node.def
deleted file mode 100644
index efbd9c3..0000000
--- a/templates-cfg/nat/rule/node.tag/outbound-interface/node.def
+++ /dev/null
@@ -1,30 +0,0 @@
-type: txt
-
-help: Outbound interface for NAT traffic
-
-enumeration: existing-interfaces; echo "any"
-
-val_help: <interface> ; Interface name or "any"
-
-commit:expression: exec "
- if [ \"any\" == \"$VAR(@)\" ] ; then
- exit 0
- fi
- intf_array=($(awk '$1 ~ /:/ { print $1 }' /proc/net/dev))
- intf_array_len=${#intf_array[*]}
- i=0
- while [ $i -lt $intf_array_len ]; do
- temp=${intf_array[$i]%:*}
- if [ \"$temp\" == \"$VAR(@)\" ] ; then
- exit 0
- fi
- let i++
- done
- intf_group_name_array=\"eth+ bond+ br+ peth+ vtun+ tun+ wlm+ wlan+\"
- i=0
- for i in $intf_group_name_array; do
- if [ \"$i\" == \"$VAR(@)\" ]; then
- exit 0
- fi
- done
- echo NAT configuration warning: interface $VAR(@) does not exist on this system "
diff --git a/templates-cfg/nat/rule/node.tag/outside-address/address/node.def b/templates-cfg/nat/rule/node.tag/outside-address/address/node.def
deleted file mode 100644
index abd5d45..0000000
--- a/templates-cfg/nat/rule/node.tag/outside-address/address/node.def
+++ /dev/null
@@ -1,7 +0,0 @@
-type: txt
-
-help: Outside IP address or range for NAT
-
-val_help: ipv4 ; NAT to the specified IP address
-val_help: ipv4range ; NAT to the specified IP range
-val_help: ipv4net ; NAT to the specified network address. Host part of the address will remain unchanged
diff --git a/templates-cfg/nat/rule/node.tag/outside-address/node.def b/templates-cfg/nat/rule/node.tag/outside-address/node.def
deleted file mode 100644
index b8e1e19..0000000
--- a/templates-cfg/nat/rule/node.tag/outside-address/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Outside NAT IP (used by source NAT only)
diff --git a/templates-cfg/nat/rule/node.tag/outside-address/port/node.def b/templates-cfg/nat/rule/node.tag/outside-address/port/node.def
deleted file mode 100644
index 8e3b331..0000000
--- a/templates-cfg/nat/rule/node.tag/outside-address/port/node.def
+++ /dev/null
@@ -1,6 +0,0 @@
-type: txt
-
-help: Outside port
-
-val_help: u32:1-65535 ; Numbered port
-val_help: <start>-<end> ; Numbered port range (e.g., 1001-1005)
diff --git a/templates-cfg/nat/rule/node.tag/protocol/node.def b/templates-cfg/nat/rule/node.tag/protocol/node.def
deleted file mode 100644
index 882581d..0000000
--- a/templates-cfg/nat/rule/node.tag/protocol/node.def
+++ /dev/null
@@ -1,15 +0,0 @@
-type: txt
-
-help: Protocol to NAT
-
-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.pl protocol_negate '$VAR(@)'`\" ] \
- && [ \"$VAR(@)\" != 'tcp_udp' ]; then \
- echo invalid protocol \"$VAR(@)\" ; \
- exit 1 ; \
- fi ; "
diff --git a/templates-cfg/nat/rule/node.tag/source/address/node.def b/templates-cfg/nat/rule/node.tag/source/address/node.def
deleted file mode 100644
index 08c0b41..0000000
--- a/templates-cfg/nat/rule/node.tag/source/address/node.def
+++ /dev/null
@@ -1,10 +0,0 @@
-type: txt
-
-help: Source IPv4 address, subnet, or range
-
-val_help: ipv4 ; IP address to match
-val_help: ipv4net ; Subnet to match
-val_help: ipv4range ; IP range to match
-val_help: !ipv4 ; Match everything except the specified address
-val_help: !ipv4net ; Match everything except the specified subnet
-val_help: !ipv4range ; Match everything except the specified range
diff --git a/templates-cfg/nat/rule/node.tag/source/node.def b/templates-cfg/nat/rule/node.tag/source/node.def
deleted file mode 100644
index 299f6e5..0000000
--- a/templates-cfg/nat/rule/node.tag/source/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: NAT source parameters
diff --git a/templates-cfg/nat/rule/node.tag/source/port/node.def b/templates-cfg/nat/rule/node.tag/source/port/node.def
deleted file mode 100644
index d0e9de6..0000000
--- a/templates-cfg/nat/rule/node.tag/source/port/node.def
+++ /dev/null
@@ -1,11 +0,0 @@
-type: txt
-
-help: Source port
-
-val_help: <port name> ; Named port (any name in /etc/services, e.g., http)
-val_help: u32:1-65535 ; Numbered port
-val_help: <start>-<end> ; Numbered port range (e.g., 1001-1005)
-
-comp_help: Multiple source ports can be specified as a comma-separated list.
-The whole list can also be "negated" using '!'.
-For example: '!22,telnet,http,123,1001-1005'
diff --git a/templates-cfg/nat/rule/node.tag/type/node.def b/templates-cfg/nat/rule/node.tag/type/node.def
deleted file mode 100644
index 3f65d88..0000000
--- a/templates-cfg/nat/rule/node.tag/type/node.def
+++ /dev/null
@@ -1,9 +0,0 @@
-type: txt
-
-help: Type of NAT [REQUIRED]
-
-syntax:expression: $VAR(@) in "source", "destination", "masquerade"; "invalid type $VAR(@)"
-
-val_help: source ; Source NAT
-val_help: destination ; Destination NAT
-val_help: masquerade ; Masquerade NAT