From 753b0cb5ca7e273d24d51333e238bde3e150e5ee Mon Sep 17 00:00:00 2001
From: Gaurav Sinha <gaurav.sinha@vyatta.com>
Date: Tue, 17 Apr 2012 13:23:21 -0700
Subject: fix help strings

---
 templates-cfg/system/conntrack/modules/sqlnet/enable/node.def | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 templates-cfg/system/conntrack/modules/sqlnet/enable/node.def

(limited to 'templates-cfg/system/conntrack/modules/sqlnet/enable/node.def')

diff --git a/templates-cfg/system/conntrack/modules/sqlnet/enable/node.def b/templates-cfg/system/conntrack/modules/sqlnet/enable/node.def
new file mode 100644
index 0000000..74186d6
--- /dev/null
+++ b/templates-cfg/system/conntrack/modules/sqlnet/enable/node.def
@@ -0,0 +1,11 @@
+help: enable SQLnet protocol connection tracking 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;
-- 
cgit v1.2.3

