mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
use scope host when adding the interface to loopback so we dont respond to ARPs for this ip
(This used to be ctdb commit fcd6226a6c00cf657532aa76804bfe029df21ba6)
This commit is contained in:
parent
016b37f1e2
commit
be7137faa9
@ -28,6 +28,13 @@ delete_all() {
|
||||
}
|
||||
|
||||
case $cmd in
|
||||
startup)
|
||||
# do not respond to ARPs that are for ip addresses with scope 'host'
|
||||
echo 3 > /proc/sys/net/ipv4/conf/all/arp_ignore
|
||||
# do not send out arp requests from loopback addresses
|
||||
echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce
|
||||
;;
|
||||
|
||||
recovered)
|
||||
MYPNN=`ctdb pnn | cut -d: -f2`
|
||||
NATGWMASTER=`ctdb natgwlist | head -1`
|
||||
@ -50,7 +57,7 @@ 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 $CTDB_NATGW_PUBLIC_IP_HOST dev lo
|
||||
ip addr add $CTDB_NATGW_PUBLIC_IP_HOST dev lo scope host
|
||||
ip route add 0.0.0.0/0 via $NATGWIP metric 10
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user