From e9d04c5f419eaa0338a3beefba32c52be00242a8 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Fri, 8 Oct 2010 15:51:44 +1100 Subject: [PATCH] Spotted by rusty. Add a missing $ so we delete $_ip and not _ip --- config/events.d/11.natgw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/events.d/11.natgw b/config/events.d/11.natgw index f8892a9b..34aee19e 100755 --- a/config/events.d/11.natgw +++ b/config/events.d/11.natgw @@ -33,7 +33,7 @@ delete_all() { 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 + iptables -D INPUT -p tcp --syn -d $_ip/32 -j REJECT 2>/dev/null } case "$1" in -- 2.34.1