summaryrefslogtreecommitdiff
path: root/templates-cfg/zone-policy/zone/node.def
diff options
context:
space:
mode:
authorMohit Mehta <mohit@vyatta.com>2010-10-12 17:34:03 -0700
committerMohit Mehta <mohit@vyatta.com>2010-10-12 17:34:03 -0700
commit6e54d0ff5db78ef95a772b8d854574ff6dfc1aed (patch)
tree6bf19acef3926dcaeeb5058323c6a866304e52ee /templates-cfg/zone-policy/zone/node.def
parente44b38425ed2d27b66faa0df526e8875261c299c (diff)
downloadvyatta-zone-6e54d0ff5db78ef95a772b8d854574ff6dfc1aed.tar.gz
vyatta-zone-6e54d0ff5db78ef95a772b8d854574ff6dfc1aed.zip
add content-inspection feature for zones
* code to configure content-inspection on a zone-pair basis * COMING UP : as much as possible, move code applicable to firewall and IPS and other future features to ZONE library
Diffstat (limited to 'templates-cfg/zone-policy/zone/node.def')
-rw-r--r--templates-cfg/zone-policy/zone/node.def36
1 files changed, 26 insertions, 10 deletions
diff --git a/templates-cfg/zone-policy/zone/node.def b/templates-cfg/zone-policy/zone/node.def
index eb8c3c8..56c09c2 100644
--- a/templates-cfg/zone-policy/zone/node.def
+++ b/templates-cfg/zone-policy/zone/node.def
@@ -10,15 +10,31 @@ syntax:expression: pattern $VAR(@) "^[^-]" ; "Zone name cannot start with \"-\""
syntax:expression: pattern $VAR(@) "^[^;]*$" ; "Zone name cannot contain ';'"
create:
- if ! /opt/vyatta/sbin/vyatta-zone.pl \
- --action=add-zone \
- --zone-name="$VAR(@)"; then
- exit 1
- fi
+ # fw zone actions
+ if ! /opt/vyatta/sbin/vyatta-zone.pl \
+ --action=add-zone \
+ --zone-name="$VAR(@)"; then
+ exit 1
+ fi
+
+ # ips zone actions
+ if ! /opt/vyatta/sbin/vyatta-zone-ips.pl \
+ --action=add-zone \
+ --zone-name="$VAR(@)"; then
+ exit 1
+ fi
delete:
- if ! /opt/vyatta/sbin/vyatta-zone.pl \
- --action=delete-zone \
- --zone-name="$VAR(@)"; then
- exit 1
- fi
+ # fw zone actions
+ if ! /opt/vyatta/sbin/vyatta-zone.pl \
+ --action=delete-zone \
+ --zone-name="$VAR(@)"; then
+ exit 1
+ fi
+
+ # ips zone actions
+ if ! /opt/vyatta/sbin/vyatta-zone-ips.pl \
+ --action=delete-zone \
+ --zone-name="$VAR(@)"; then
+ exit 1
+ fi