From 753b0cb5ca7e273d24d51333e238bde3e150e5ee Mon Sep 17 00:00:00 2001 From: Gaurav Sinha Date: Tue, 17 Apr 2012 13:23:21 -0700 Subject: fix help strings --- templates-cfg/system/conntrack/modules/nfs/enable/node.def | 2 +- templates-cfg/system/conntrack/modules/nfs/node.def | 2 +- templates-cfg/system/conntrack/modules/sqlnet/enable/node.def | 11 +++++++++++ templates-cfg/system/conntrack/modules/sqlnet/node.def | 1 + 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 templates-cfg/system/conntrack/modules/sqlnet/enable/node.def create mode 100644 templates-cfg/system/conntrack/modules/sqlnet/node.def (limited to 'templates-cfg/system') diff --git a/templates-cfg/system/conntrack/modules/nfs/enable/node.def b/templates-cfg/system/conntrack/modules/nfs/enable/node.def index 130dd7f..3d07321 100644 --- a/templates-cfg/system/conntrack/modules/nfs/enable/node.def +++ b/templates-cfg/system/conntrack/modules/nfs/enable/node.def @@ -1,4 +1,4 @@ -help: enable nfs +help: enable NFS protocol connection tracking helper create:expression: "touch /tmp/vyatta-conntrack-sync" diff --git a/templates-cfg/system/conntrack/modules/nfs/node.def b/templates-cfg/system/conntrack/modules/nfs/node.def index ae4837a..3d1fb34 100644 --- a/templates-cfg/system/conntrack/modules/nfs/node.def +++ b/templates-cfg/system/conntrack/modules/nfs/node.def @@ -1 +1 @@ -help: enable NFS helper +help: NFS protocol connection tracking helper settting 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; diff --git a/templates-cfg/system/conntrack/modules/sqlnet/node.def b/templates-cfg/system/conntrack/modules/sqlnet/node.def new file mode 100644 index 0000000..a62048e --- /dev/null +++ b/templates-cfg/system/conntrack/modules/sqlnet/node.def @@ -0,0 +1 @@ +help: SQLnet protocol connection tracking helper setting -- cgit v1.2.3