summaryrefslogtreecommitdiffstats
path: root/ctdb/config
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2009-03-19 10:17:44 +1100
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2009-03-19 10:17:44 +1100
commit293a3f115829f79a9c7a88a062698cdd0cadcc09 (patch)
tree03d95b7b55e30d5c0b9c20e210c459251d0f6fe1 /ctdb/config
parent9bf792d70449717b7241c41d3d18d6da008b3490 (diff)
downloadsamba-293a3f115829f79a9c7a88a062698cdd0cadcc09.tar.gz
samba-293a3f115829f79a9c7a88a062698cdd0cadcc09.tar.xz
samba-293a3f115829f79a9c7a88a062698cdd0cadcc09.zip
update the natgw eventscript and documentation
(This used to be ctdb commit 95d8ddbc2dd0b159e8df003502c3c336668d2c41)
Diffstat (limited to 'ctdb/config')
-rw-r--r--ctdb/config/events.d/11.natgw7
1 files changed, 6 insertions, 1 deletions
diff --git a/ctdb/config/events.d/11.natgw b/ctdb/config/events.d/11.natgw
index 3f2c2c2958..254a8c1e87 100644
--- a/ctdb/config/events.d/11.natgw
+++ b/ctdb/config/events.d/11.natgw
@@ -51,7 +51,12 @@ case $cmd in
# 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.
- ip addr add $NATGW_PUBLIC_IP_HOST dev $NATGW_PRIVATE_IFACE
+
+ # Set the scope up as host and make sure we dont respond to ARP
+ # for this ip
+ echo 3 > /proc/sys/net/ipv4/conf/all/arp_ignore
+ ip addr add $NATGW_PUBLIC_IP_HOST dev $NATGW_PRIVATE_IFACE scope host
+
ip route add 0.0.0.0/0 via $FIRSTIP metric 10
fi
;;