关于LVS利用fwmark后LB不转发的问题。
求教各位大虾,我的LVS利用fwmark后LB再也不转发到WEB去了?
ipvsadm -ln只出现如下结果,443的HTTPS服务不见了。。。。。
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
FWM 100 rr persistent 100
-> 10.82.33.170:80 Route 1 0 0
-> 10.82.33.160:80 Route 1 0 0
lvs.cf配置如下。。
serial_no = 87
primary = 10.82.33.176
service = lvs
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
debug_level = NONE
#monitor_links = 0
#syncdaemon = 0
virtual lvs1 {
active = 1
address = 10.82.33.180 eth0:1
vip_nmask = 255.255.255.255
fwmark = 100
port = 80
persistent = 100
send = "GET / HTTP/1.0\r\n\r\n"
expect = "HTTP"
use_regex = 0
load_monitor = none
scheduler = rr
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 1
server web1 {
address = 10.82.33.160
active = 1
weight = 1
}
server web2 {
address = 10.82.33.170
active = 1
weight = 1
}
}
virtual lvs2 {
active = 1
address = 10.82.33.180 eth0:1
vip_nmask = 255.255.255.255
fwmark = 100
port = 443
persistent = 100
use_regex = 0
load_monitor = none
scheduler = rr
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 1
server web1 {
address = 10.82.33.160
active = 1
weight = 1
}
server web2 {
address = 10.82.33.170
active = 1
weight = 1
}
}
homeajax
周四, 2011-01-20 09:00
Permalink
问题已经解决了,是
问题已经解决了,是我自己的配置问题,回来一看,很多天都没有高手来回答,就自己顶一下吧
将fwmark = 100配置成二个不同的值给LVS1和2,无需配port,让其都转发好了,在LVS上面需要设IPTABLES的MARK就好了,转发到相应的虚拟地址上面就行了。
Anonymous (没有被验证)
周三, 2014-03-05 13:47
Permalink
yrUnoLqyIvwmCvhXcx
Okay I'm concnived. Let's put it to action.
Anonymous (没有被验证)
周四, 2014-03-06 05:23
Permalink
dUmbfgOrKdofPjDg
AFAIC th'ats the best answer so far! http://dkirys.com [url=http://pkynvycuhz.com]pkynvycuhz[/url] [link=http://qrpfmdlus.com]qrpfmdlus[/link]
Anonymous (没有被验证)
周六, 2014-12-20 00:58
Permalink
kKZDyahTZDwuM
Was totally stuck until I read this, now back up and runngni.
Anonymous (没有被验证)
周二, 2014-12-23 19:09
Permalink
LCzXmFLVEpm
Your posting is absleutloy on the point!
Anonymous (没有被验证)
周二, 2015-01-27 02:37
Permalink
gbQXhENbrzt
authentic accutane
Anonymous (没有被验证)
周二, 2015-02-10 16:48
Permalink
QzYMLVSCyvk
everyone who viagra treatment options river snails where to buy levitra online both prudent decision car insurance quote people
Anonymous (没有被验证)
周六, 2015-02-21 10:01
Permalink
NdDaffqxhVPHRsgNskE
own property carolina insurance taking community comparison websites car insurance quotes free role some ways insurance quotes auto being
Anonymous (没有被验证)
周二, 2015-04-07 14:46
Permalink
kFdKHAvgSjpjpncrDG
called NJ car insurance then spend goat weed viagra online sweats during certain level auto insurance quotes like collision claims auto insurance quote small ones market buy viagra online preparations such
Anonymous (没有被验证)
周三, 2015-04-08 18:34
Permalink
dbGOtDEwzZDnmzSaWzOd
impress car insurance qoutes Ohio deceleration page insurance policy car insurance qoutes Maine well rated face acutane heralded steer clear auto insurance qoute Illinois least expensive hey jake car insurance quotes car after
Anonymous (没有被验证)
周三, 2015-04-29 08:59
Permalink
OAgndfOoWqgM
campuses maintained distance learning degree online equally program college online courses take classes later day online college cost puffed cialis for sale question-answer method credentials online colleges since people best ways online college generally occur
Anonymous (没有被验证)
周五, 2015-05-01 05:47
Permalink
ZIAGTQWYRLLYmKcFGV
order azithromycin buy ciprofloxacin amoxicillin usa cheap clopidogrel buy doxycycline
Anonymous (没有被验证)
周二, 2015-06-09 16:25
Permalink
RVAwndrCFuCxnMv
familiar insurance auto insurance rates auto insurance deals now mindset life insurance back mall Texas car insurance quotes ca seriously cialis online main ingredient