git.samba.org
/
metze
/
ctdb
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7e91ae
)
Spotted by rusty.
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Fri, 8 Oct 2010 04:51:44 +0000
(15:51 +1100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Fri, 8 Oct 2010 04:53:36 +0000
(15:53 +1100)
Add a missing $
so we delete $_ip and not _ip
config/events.d/11.natgw
patch
|
blob
|
history
diff --git
a/config/events.d/11.natgw
b/config/events.d/11.natgw
index f8892a9babed121317a1b2ce8a284c86b49d0d81..34aee19e21e79090bc80e71065bb0f2357220ae5 100755
(executable)
--- 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