summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2012-07-17 20:10:11 +1000
committerAmitay Isaacs <amitay@gmail.com>2012-07-26 21:14:58 +1000
commit31bdf919337b8aebb40fcf9c52175946d8ea301f (patch)
treec93085c8e61d19bed058f90ccec32b64ecd8aa16
parent05359689f68221933976aff8b6839c09b5130382 (diff)
downloadsamba-31bdf919337b8aebb40fcf9c52175946d8ea301f.tar.gz
samba-31bdf919337b8aebb40fcf9c52175946d8ea301f.tar.xz
samba-31bdf919337b8aebb40fcf9c52175946d8ea301f.zip
Eventscripts: Update/remove stale comments in 11.natgw
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 5d713d5e5be67f5914a661694c15d938bd67dea3)
-rwxr-xr-xctdb/config/events.d/11.natgw9
1 files changed, 2 insertions, 7 deletions
diff --git a/ctdb/config/events.d/11.natgw b/ctdb/config/events.d/11.natgw
index dae16dba6d..36b6e0ab30 100755
--- a/ctdb/config/events.d/11.natgw
+++ b/ctdb/config/events.d/11.natgw
@@ -56,7 +56,7 @@ case "$1" in
delete_all
if [ "$mypnn" = "$natgwmaster" ]; then
- # This is the first node, set it up as the NAT GW
+ # This is 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
@@ -68,12 +68,7 @@ case "$1" in
ip addr add $CTDB_NATGW_PUBLIC_IP dev $CTDB_NATGW_PUBLIC_IFACE
ip route add 0.0.0.0/0 via $CTDB_NATGW_DEFAULT_GATEWAY >/dev/null 2>/dev/null
else
- # This is not the NAT-GW
- # Assign the public ip to the private interface and make
- # sure we dont respond to ARPs.
- # We do this so that the ip address will exist on a
- # non-loopback interface so that samba may send it along in the
- # KDC requests.
+ # This is NOT the NAT GW
ip route add 0.0.0.0/0 via $natgwip metric 10
# Make sure winbindd does not stay bound to this address
# if we are no longer natgwmaster