diff options
Diffstat (limited to 'templates/firewall')
-rw-r--r-- | templates/firewall/node.def | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/firewall/node.def b/templates/firewall/node.def index 29c0992..3bb1bfc 100644 --- a/templates/firewall/node.def +++ b/templates/firewall/node.def @@ -1,12 +1,12 @@ help: Configure firewall -end: - sudo /opt/vyatta/sbin/vyatta-firewall.pl --update-rules - -create: - sudo /opt/vyatta/sbin/vyatta-firewall.pl --setup - -delete: +end: sudo /opt/vyatta/sbin/vyatta-firewall.pl --update-rules + if [ ${COMMIT_ACTION} = 'DELETE' ]; then sudo /opt/vyatta/sbin/vyatta-firewall.pl --teardown # set conntrack table size to standard 16384 entries if firewall disabled sudo sh -c "echo 16384 > /proc/sys/net/nf_conntrack_max" + fi; + +create: + sudo /opt/vyatta/sbin/vyatta-firewall.pl --setup + |