LVS_DR 中 squid 不能连接!!(已解决)

LB
eth0: 211.123.23.10
eth0:0 (VIP) 202.121.17.16

LD
eth0: 202.121.17.17
lo:0 202.121.17.16

ldirectord.cf配置如下

checktimeout=3
checkinterval=11
fallback=127.0.0.1:80
autoreload=yes
logfile="/var/log/ldirectord.log"
#logfile="local0"
quiescent=yes

# A sample virual with a fallback that will override the gobal setting
virtual=202.121.17.16:80
real=202.121.17.17:80 gate
fallback=127.0.0.1:80 gate
service=http
request="real.html"
receive="OK"
virtualhost=202.121.17.17
scheduler=rr
#persistent=600
#netmask=255.255.255.255
protocol=tcp
ipvsadm -lnc
pro expire state source virtual destination
TCP 00:47 SYN_RECV 211.123.23.18:2504 202.121.17.16:80 202.121.17.17:80
TCP 00:41 SYN_RECV 211.123.23.18:2501 202.121.17.16:80 202.121.17.17:80

realserver中的squid监听在80上
若停掉realserver中的squid ,同时在realserver中开启httpd服务,则 ipvsadm -lnc连接正常。
也就是说现在realserver上的squid不能通过 VIP来访问?

原因是不能指定IP监听

Forums:

我现在也存在上面说的问题,但是我通过域名监听还是不可以
我的ldirectord.cf的配置文件如下
checktimeout=20
checkinterval=5
autoreload=yes
quiescent=no
virtual=10.0.0.119:80
real=squid19.xxxxx.com:80 gate 1
service=http
checkport=80
protocol=tcp
scheduler=wrr
request = "live.jsp"
receive = "true"
checktype=negotiate

我在lvs服务器上直接 wget http://squid19.xxxxx.com/live.jsp是可以取回live.jsp的
看squid的访问日志,那边收到的还是对http://10.0.0.19/live.jsp的请求

randomness