summaryrefslogtreecommitdiff
path: root/ctdb/config/events.d/11.natgw
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2012-07-17 15:26:16 +1000
committerAmitay Isaacs <amitay@gmail.com>2012-07-26 21:14:57 +1000
commit573fb0497a0dd253a1c08fb4d72387c90861ded1 (patch)
tree859a3357535726b976ff74c51164791463d87d0e /ctdb/config/events.d/11.natgw
parentc0b7fbf2a42cc601923349baf8904fc9ca2deb10 (diff)
downloadsamba-573fb0497a0dd253a1c08fb4d72387c90861ded1.tar.gz
Eventscripts: remove redundant firewall rules from 11.natgw
aeb70c7e7822854eb87873a5c7783e27e6e72318 said it moved these but it redundantly duplicated them instead. That commit also fixed the problem because it moved the rules after delete_all() not out of the startup event as claimed. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 07149edaecb3caa672163e5a3b89715557d5205a)
Diffstat (limited to 'ctdb/config/events.d/11.natgw')
-rwxr-xr-xctdb/config/events.d/11.natgw7
1 files changed, 0 insertions, 7 deletions
diff --git a/ctdb/config/events.d/11.natgw b/ctdb/config/events.d/11.natgw
index f6164cf88bd..6a0fa39d112 100755
--- a/ctdb/config/events.d/11.natgw
+++ b/ctdb/config/events.d/11.natgw
@@ -54,13 +54,6 @@ case "$1" in
NATGWMASTER=`ctdb natgwlist | head -1 | sed -e "s/ .*//"`
NATGWIP=`ctdb natgwlist | head -1 | sed -e "s/^[^ ]* *//"`
- CTDB_NATGW_PUBLIC_IP_HOST=`echo $CTDB_NATGW_PUBLIC_IP | sed -e "s/\/.*/\/32/"`
-
- # block all incoming connections to the natgw address
- iptables -D INPUT -p tcp --syn -d $CTDB_NATGW_PUBLIC_IP_HOST -j REJECT 2>/dev/null
- iptables -I INPUT -p tcp --syn -d $CTDB_NATGW_PUBLIC_IP_HOST -j REJECT 2>/dev/null
-
-
if [ "$NATGWMASTER" = "-1" ]; then
echo "There is no NATGW master node"
exit 1