summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2012-05-23 14:24:40 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2012-05-25 15:26:07 +1000
commit1ba9fa2e48368af3907470381e6839bfcc24f71b (patch)
tree8ed360c1bb9be6d9af1e87fd628ad56a446b92b3
parente2831efd0c92c3702cd5dca03f32b5b9152aaa33 (diff)
downloadsamba-1ba9fa2e48368af3907470381e6839bfcc24f71b.tar.gz
samba-1ba9fa2e48368af3907470381e6839bfcc24f71b.tar.xz
samba-1ba9fa2e48368af3907470381e6839bfcc24f71b.zip
Eventscripts: Fix deprecated iptables ! usage
This currently causes warning in the logs. This change is not SLES10-compatible but we already have some other non-SLES10-compatible changes. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 7640352c6697f9d4e0d13afbc8523afc64e7d462)
-rwxr-xr-xctdb/config/events.d/11.natgw4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/config/events.d/11.natgw b/ctdb/config/events.d/11.natgw
index ba6d7a5fb1..509375231a 100755
--- a/ctdb/config/events.d/11.natgw
+++ b/ctdb/config/events.d/11.natgw
@@ -28,7 +28,7 @@ delete_all() {
# Delete the masquerading setup from a previous iteration where we
# were the NAT-GW
- iptables -D POSTROUTING -t nat -s $CTDB_NATGW_PRIVATE_NETWORK -d ! $CTDB_NATGW_PRIVATE_NETWORK -j MASQUERADE >/dev/null 2>/dev/null
+ iptables -D POSTROUTING -t nat -s $CTDB_NATGW_PRIVATE_NETWORK ! -d $CTDB_NATGW_PRIVATE_NETWORK -j MASQUERADE >/dev/null 2>/dev/null
# remove any iptables rule we may have on this address
iptables -D INPUT -p tcp --syn -d $_ip/32 -j REJECT 2>/dev/null
@@ -71,7 +71,7 @@ case "$1" in
if [ "$MYPNN" = "$NATGWMASTER" ]; then
# This is the first node, set it up as the NAT GW
echo 1 >/proc/sys/net/ipv4/ip_forward
- iptables -A POSTROUTING -t nat -s $CTDB_NATGW_PRIVATE_NETWORK -d ! $CTDB_NATGW_PRIVATE_NETWORK -j MASQUERADE
+ iptables -A POSTROUTING -t nat -s $CTDB_NATGW_PRIVATE_NETWORK ! -d $CTDB_NATGW_PRIVATE_NETWORK -j MASQUERADE
# block all incoming connections to the natgw address
CTDB_NATGW_PUBLIC_IP_HOST=`echo $CTDB_NATGW_PUBLIC_IP | sed -e "s/\/.*/\/32/"`