summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Harpin <development@landsofshadow.co.uk>2015-06-23 21:25:33 +0100
committerAlex Harpin <development@landsofshadow.co.uk>2015-06-23 21:25:33 +0100
commitee0e999936d743b62afa9b3ddb90aece9fbf0ac9 (patch)
tree022f180b22607611617700ceb74442ecd7305e8e
parentbb9bbe3b4074a21945c3d49238a75d44d6749045 (diff)
downloadvyatta-conntrack-ee0e999936d743b62afa9b3ddb90aece9fbf0ac9.tar.gz
vyatta-conntrack-ee0e999936d743b62afa9b3ddb90aece9fbf0ac9.zip
vyatta-conntrack: add port 1536 to the ports affected by sqlnet module
When the sqlnet conntrack module is enabled / disabled, ports 1521 and 1525 are inserted / removed from the conntrack helper chains but 1536 isn't; add this to the list of ports affected. Bug #412 http://bugzilla.vyos.net/show_bug.cgi?id=412
-rw-r--r--scripts/vyatta-cthelper.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vyatta-cthelper.pl b/scripts/vyatta-cthelper.pl
index 2b9cc6a..c7d2288 100644
--- a/scripts/vyatta-cthelper.pl
+++ b/scripts/vyatta-cthelper.pl
@@ -34,6 +34,7 @@ sub add_helper_to_chain {
if ($module eq 'sqlnet') {
run_cmd("$iptables_cmd -I VYATTA_CT_HELPER -t raw -p tcp --dport 1521 -j CT --helper tns");
run_cmd("$iptables_cmd -I VYATTA_CT_HELPER -t raw -p tcp --dport 1525 -j CT --helper tns");
+ run_cmd("$iptables_cmd -I VYATTA_CT_HELPER -t raw -p tcp --dport 1536 -j CT --helper tns");
} elsif ($module eq 'nfs') {
run_cmd(" $iptables_cmd -I VYATTA_CT_HELPER -t raw -p tcp --dport 111 -j CT --helper rpc");
run_cmd(" $iptables_cmd -I VYATTA_CT_HELPER -t raw -p udp --dport 111 -j CT --helper rpc");
@@ -47,6 +48,7 @@ sub delete_helper_from_chain {
if ($module eq 'sqlnet') {
run_cmd("$iptables_cmd -D VYATTA_CT_HELPER -t raw -p tcp --dport 1521 -j CT --helper tns");
run_cmd("$iptables_cmd -D VYATTA_CT_HELPER -t raw -p tcp --dport 1525 -j CT --helper tns");
+ run_cmd("$iptables_cmd -D VYATTA_CT_HELPER -t raw -p tcp --dport 1536 -j CT --helper tns");
} elsif ($module eq 'nfs') {
run_cmd("$iptables_cmd -D VYATTA_CT_HELPER -t raw -p tcp --dport 111 -j CT --helper rpc");
run_cmd("$iptables_cmd -D VYATTA_CT_HELPER -t raw -p udp --dport 111 -j CT --helper rpc");
@@ -56,7 +58,6 @@ sub delete_helper_from_chain {
# should disable the required helper module
sub disable_helper_module {
my ($module) = @_;
-
delete_helper_from_chain($module);
}