diff options
4 files changed, 14 insertions, 2 deletions
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 |