From 293a3f115829f79a9c7a88a062698cdd0cadcc09 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Thu, 19 Mar 2009 10:17:44 +1100 Subject: update the natgw eventscript and documentation (This used to be ctdb commit 95d8ddbc2dd0b159e8df003502c3c336668d2c41) --- ctdb/config/events.d/11.natgw | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ctdb/config') 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 ;; -- cgit