summaryrefslogtreecommitdiff
path: root/templates-cfg/system/conntrack/modules
diff options
context:
space:
mode:
authorGaurav Sinha <gaurav.sinha@vyatta.com>2012-04-17 11:03:10 -0700
committerGaurav Sinha <gaurav.sinha@vyatta.com>2012-04-17 11:03:10 -0700
commitcc7d0c96369980eeda4c01fca1035dca4636243a (patch)
treef1927f8d0f8a2631ff6b1190e3f1af13f1a50cb6 /templates-cfg/system/conntrack/modules
parent6c46c3a8616e5e59120b5b8bf8332dc543c2267f (diff)
downloadvyatta-conntrack-cc7d0c96369980eeda4c01fca1035dca4636243a.tar.gz
vyatta-conntrack-cc7d0c96369980eeda4c01fca1035dca4636243a.zip
ensure single reload of conntrackd daemon
Diffstat (limited to 'templates-cfg/system/conntrack/modules')
-rw-r--r--templates-cfg/system/conntrack/modules/SQLnet/enable/node.def8
-rw-r--r--templates-cfg/system/conntrack/modules/nfs/enable/node.def6
-rw-r--r--templates-cfg/system/conntrack/modules/node.def6
3 files changed, 14 insertions, 6 deletions
diff --git a/templates-cfg/system/conntrack/modules/SQLnet/enable/node.def b/templates-cfg/system/conntrack/modules/SQLnet/enable/node.def
index 1cbd130..630d728 100644
--- a/templates-cfg/system/conntrack/modules/SQLnet/enable/node.def
+++ b/templates-cfg/system/conntrack/modules/SQLnet/enable/node.def
@@ -1,3 +1,11 @@
help: enable SQLnet protocol helper
create:expression: "touch /tmp/vyatta-conntrack-sync"
+
+end: if [ ${COMMIT_ACTION} = 'DELETE' ]; then
+ echo "sudo iptables -D VYATTA_CT_HELPER -t raw -p tcp --dport 1521 -j CT --helper sqlnet"
+ echo "sudo iptables -D VYATTA_CT_HELPER -t raw -p tcp --dport 1525 -j CT --helper sqlnet"
+ else
+ echo "sudo iptables -I VYATTA_CT_HELPER -t raw -p tcp --dport 1521 -j CT --helper sqlnet"
+ echo "sudo iptables -I VYATTA_CT_HELPER -t raw -p tcp --dport 1525 -j CT --helper sqlnet"
+ fi;
diff --git a/templates-cfg/system/conntrack/modules/nfs/enable/node.def b/templates-cfg/system/conntrack/modules/nfs/enable/node.def
index b2a2694..130dd7f 100644
--- a/templates-cfg/system/conntrack/modules/nfs/enable/node.def
+++ b/templates-cfg/system/conntrack/modules/nfs/enable/node.def
@@ -1,3 +1,9 @@
help: enable nfs
create:expression: "touch /tmp/vyatta-conntrack-sync"
+
+end: if [ ${COMMIT_ACTION} = 'DELETE' ]; then
+ echo "sudo iptables -D VYATTA_CT_HELPER -t raw -p tcp --dport 2049 -j CT --helper nfs"
+ else
+ echo "sudo iptables -I VYATTA_CT_HELPER -t raw -p tcp --dport 2049 -j CT --helper nfs"
+ fi;
diff --git a/templates-cfg/system/conntrack/modules/node.def b/templates-cfg/system/conntrack/modules/node.def
index c391511..25cba5d 100644
--- a/templates-cfg/system/conntrack/modules/node.def
+++ b/templates-cfg/system/conntrack/modules/node.def
@@ -1,7 +1 @@
help: Connection tracking modules settings
-
-end:expression: "if [ -f \"/tmp/vyatta-conntrack-sync\" ]; then \
- sudo /opt/vyatta/sbin/vyatta-conntrack-sync.pl --action=enable; \
- sudo rm \"/tmp/vyatta-conntrack-sync\"; \
- fi"
-