summaryrefslogtreecommitdiff
path: root/templates/firewall
diff options
context:
space:
mode:
authorMohit Mehta <mohit@vyatta.com>2011-01-10 16:23:06 -0800
committerMohit Mehta <mohit@vyatta.com>2011-01-10 17:35:28 -0800
commit435bf038f32a968424030da43b4a85ec50e02767 (patch)
tree7601d9561f841009a4935d8a3a84109152c9f3c0 /templates/firewall
parent3b906597925e980ff7d652d22450485679464145 (diff)
downloadvyatta-cfg-firewall-435bf038f32a968424030da43b4a85ec50e02767.tar.gz
vyatta-cfg-firewall-435bf038f32a968424030da43b4a85ec50e02767.zip
Fix Bug 6292 iptables chain-name must be reduced to 28 characters max
* change syntax check to limit firewall ruleset names to 28 chars and bump firewall cfg-version to enable config migration (cherry picked from commit a0e5b2107d6073a103e0f0c04cc8656f8dc3816b)
Diffstat (limited to 'templates/firewall')
-rw-r--r--templates/firewall/ipv6-modify/node.def4
-rw-r--r--templates/firewall/ipv6-name/node.def4
-rw-r--r--templates/firewall/modify/node.def4
-rw-r--r--templates/firewall/name/node.def4
4 files changed, 8 insertions, 8 deletions
diff --git a/templates/firewall/ipv6-modify/node.def b/templates/firewall/ipv6-modify/node.def
index 9a4b487..035ddd1 100644
--- a/templates/firewall/ipv6-modify/node.def
+++ b/templates/firewall/ipv6-modify/node.def
@@ -3,8 +3,8 @@ priority: 210
type: txt
-syntax:expression: pattern $VAR(@) "^[[:print:]]{1,29}$" ; \
- "Firewall name must be 29 characters or less"
+syntax:expression: pattern $VAR(@) "^[[:print:]]{1,28}$" ; \
+ "Firewall name must be 28 characters or less"
syntax:expression: pattern $VAR(@) "^[^-]" ; \
"Firewall rule set name cannot start with \"-\""
syntax:expression: pattern $VAR(@) "^[^;]*$" ; \
diff --git a/templates/firewall/ipv6-name/node.def b/templates/firewall/ipv6-name/node.def
index 3a151d9..0eb53f7 100644
--- a/templates/firewall/ipv6-name/node.def
+++ b/templates/firewall/ipv6-name/node.def
@@ -3,8 +3,8 @@ priority: 210
type: txt
-syntax:expression: pattern $VAR(@) "^[[:graph:]]{1,29}$" ; \
- "Firewall name must be 29 characters or less"
+syntax:expression: pattern $VAR(@) "^[[:graph:]]{1,28}$" ; \
+ "Firewall name must be 28 characters or less"
syntax:expression: pattern $VAR(@) "^[^-]" ; \
"Firewall rule set name cannot start with \"-\""
syntax:expression: pattern $VAR(@) "^[^|;&$<>]*$" ; \
diff --git a/templates/firewall/modify/node.def b/templates/firewall/modify/node.def
index becde92..e1f82f3 100644
--- a/templates/firewall/modify/node.def
+++ b/templates/firewall/modify/node.def
@@ -3,8 +3,8 @@ priority: 210
type: txt
-syntax:expression: pattern $VAR(@) "^[[:print:]]{1,29}$" ; \
- "Firewall name must be 29 characters or less"
+syntax:expression: pattern $VAR(@) "^[[:print:]]{1,28}$" ; \
+ "Firewall name must be 28 characters or less"
syntax:expression: pattern $VAR(@) "^[^-]" ; \
"Firewall rule set name cannot start with \"-\""
syntax:expression: pattern $VAR(@) "^[^;]*$" ; \
diff --git a/templates/firewall/name/node.def b/templates/firewall/name/node.def
index 2f2d05b..7e9bc44 100644
--- a/templates/firewall/name/node.def
+++ b/templates/firewall/name/node.def
@@ -3,8 +3,8 @@ priority: 210
type: txt
-syntax:expression: pattern $VAR(@) "^[[:graph:]]{1,29}$" ; \
- "Firewall name must be 29 characters or less"
+syntax:expression: pattern $VAR(@) "^[[:graph:]]{1,28}$" ; \
+ "Firewall name must be 28 characters or less"
syntax:expression: pattern $VAR(@) "^[^-]" ; \
"Firewall rule set name cannot start with \"-\""
syntax:expression: pattern $VAR(@) "^[^|;&$<>]*$" ; \