如题,如果真是这样的话,用什么方法才能使得用户只能访问VIP而不能访问RIP呢?用路由器或者防火墙的话这本身就是一个瓶颈
wensong
周四, 2006-05-18 14:37
Permalink
未必是这样的。VIP和RIP不一定是一个网段的。
我们可以手册中的通过直接路由实现虚拟服务器(VS/DR)的图片。负载调度器只要有一个网口和真实服务器是通过不分段的网络连接起来就可以。真实服务器可以通过自己的路由器将响应报文发送给客户。
michael
周六, 2006-05-20 08:02
非常感谢章博士!我的LVS/DR已经初步建立起来了(在VMware虚拟平台上) 拓扑:
| |----LB | | | |----RS1 | | | |----RS2 | | | |----CLIENT |
以下是我的配置,供大家参考: LB: eth0-->192.168.100.1/24 lo:1-->192.168.200.1/32 #echo 1 >/proc/sys/net/ipv4/conf/all/send_redirects #echo 1 >/proc/sys/net/ipv4/conf/default/send_redirects #echo 1 >/proc/sys/net/ipv4/conf/eth0/send_redirects #echo 1 >/proc/sys/net/ipv4/conf/lo/send_redirects #echo 0 > /proc/sys/net/ipv4/ip_forward #ipvsadm -A -t 192.168.200.1:80 #ipvsadm -a -t 192.168.200.1:80 -r 192.168.100.3:80 -g #ipvsadm -a -t 192.168.200.1:80 -r 192.168.100.4:80 -g RS1: eth0-->192.168.100.3/24 lo:1-->192.168.200.1/32 #echo 1 > /proc/sys/net/ipv4/conf/all/hidden #echo 1 > /proc/sys/net/ipv4/conf/default/hidden #echo 1 > /proc/sys/net/ipv4/conf/eth0/hidden #echo 1 > /proc/sys/net/ipv4/conf/lo/hidden #echo 0 > /proc/sys/net/ipv4/ip_forward #route add default eth0 RS2: eth0-->192.168.100.4/24 lo:1-->192.168.200.1/32 #echo 1 > /proc/sys/net/ipv4/conf/all/hidden #echo 1 > /proc/sys/net/ipv4/conf/default/hidden #echo 1 > /proc/sys/net/ipv4/conf/eth0/hidden #echo 1 > /proc/sys/net/ipv4/conf/lo/hidden #echo 0 > /proc/sys/net/ipv4/ip_forward #route add default eth0 CLIENT: eth0-->192.168.200.254/24 gw-->192.168.200.1
其他说明: 1.这个实验环境是在VMware上建立起来的,下一步还要在真实环境下进一步验证; 2.这个系统中没有HA,下一步试验HA; 3.相关软件 Linux Kernelhttp://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.10.tar.bz2 Arp hidden 补丁(patch 到上面这个Kernel)http://www.ssi.bg/~ja/hidden-2.6.9-1.diff IPVSADMhttp://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.24.tar.gz 请大家多多指教!
51099
周二, 2006-05-23 02:03
这样的话,如果输出数据过大,会不会导致出口路由成为瓶颈.
Anonymous (没有被验证)
周五, 2013-10-18 05:51
cheap fast online car insurance
周六, 2013-11-02 06:24
Of the panoply of website I've pored over this has the most vearticy.
周六, 2013-11-09 10:26
casino games car insurance free quotes dicsount auto insurance best credit cards affordable car insurance quote info
周一, 2013-12-16 17:58
buy auto insurance how to short term car insurance for vehicle insurance for free online slots buy chep car insurance quote insurance arizona auto
周五, 2013-12-20 10:23
cheap insurance quotes auto insurance quotes classic car insurance ny state insureyourcaronline.com online poker bonus generic cialis online
周六, 2013-12-21 20:29
auto insurance quotes riverside car insurance auto insurance maif lowest car insurance cheap insurance
周五, 2014-01-10 10:56
CAR INSURANC www.mymedsaccess.com cheap motor insurance for women where to buy reasonable priced health insurance car insurance free quotes
周二, 2014-03-04 07:18
Great aritlce, thank you again for writing.
nianzong
周二, 2019-07-16 09:09
如此畸形的拓扑都不知道你想干啥...LVS/DR的最大优势是什么好好想想
There are currently 0 users online.
wensong
周四, 2006-05-18 14:37
Permalink
未必是这样的。VIP和RIP不一定是一个网段的。
我们可以手册中的通过直接路由实现虚拟服务器(VS/DR)的图片。负载调度器只要有一个网口和真实服务器是通过不分段的网络连接起来就可以。真实服务器可以通过自己的路由器将响应报文发送给客户。
michael
周六, 2006-05-20 08:02
Permalink
谢谢章博士
非常感谢章博士!我的LVS/DR已经初步建立起来了(在VMware虚拟平台上)
拓扑:
|
|----LB
|
|
|
|----RS1
|
|
|
|----RS2
|
|
|
|----CLIENT
|
以下是我的配置,供大家参考:
LB:
eth0-->192.168.100.1/24
lo:1-->192.168.200.1/32
#echo 1 >/proc/sys/net/ipv4/conf/all/send_redirects
#echo 1 >/proc/sys/net/ipv4/conf/default/send_redirects
#echo 1 >/proc/sys/net/ipv4/conf/eth0/send_redirects
#echo 1 >/proc/sys/net/ipv4/conf/lo/send_redirects
#echo 0 > /proc/sys/net/ipv4/ip_forward
#ipvsadm -A -t 192.168.200.1:80
#ipvsadm -a -t 192.168.200.1:80 -r 192.168.100.3:80 -g
#ipvsadm -a -t 192.168.200.1:80 -r 192.168.100.4:80 -g
RS1:
eth0-->192.168.100.3/24
lo:1-->192.168.200.1/32
#echo 1 > /proc/sys/net/ipv4/conf/all/hidden
#echo 1 > /proc/sys/net/ipv4/conf/default/hidden
#echo 1 > /proc/sys/net/ipv4/conf/eth0/hidden
#echo 1 > /proc/sys/net/ipv4/conf/lo/hidden
#echo 0 > /proc/sys/net/ipv4/ip_forward
#route add default eth0
RS2:
eth0-->192.168.100.4/24
lo:1-->192.168.200.1/32
#echo 1 > /proc/sys/net/ipv4/conf/all/hidden
#echo 1 > /proc/sys/net/ipv4/conf/default/hidden
#echo 1 > /proc/sys/net/ipv4/conf/eth0/hidden
#echo 1 > /proc/sys/net/ipv4/conf/lo/hidden
#echo 0 > /proc/sys/net/ipv4/ip_forward
#route add default eth0
CLIENT:
eth0-->192.168.200.254/24
gw-->192.168.200.1
其他说明:
1.这个实验环境是在VMware上建立起来的,下一步还要在真实环境下进一步验证;
2.这个系统中没有HA,下一步试验HA;
3.相关软件
Linux Kernel
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.10.tar.bz2
Arp hidden 补丁(patch 到上面这个Kernel)
http://www.ssi.bg/~ja/hidden-2.6.9-1.diff
IPVSADM
http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.24.tar.gz
请大家多多指教!
51099
周二, 2006-05-23 02:03
Permalink
这样的话,如果输出数
这样的话,如果输出数据过大,会不会导致出口路由成为瓶颈.
Anonymous (没有被验证)
周五, 2013-10-18 05:51
Permalink
XhNdVCUbhggIQcK
cheap fast online car insurance
Anonymous (没有被验证)
周六, 2013-11-02 06:24
Permalink
rJsAfuLLrEuD
Of the panoply of website I've pored over this has the most vearticy.
Anonymous (没有被验证)
周六, 2013-11-09 10:26
Permalink
zwNsxlghAuoPYbGuqgQ
casino games car insurance free quotes dicsount auto insurance best credit cards affordable car insurance quote info
Anonymous (没有被验证)
周一, 2013-12-16 17:58
Permalink
HUlhAdRorHMpuB
buy auto insurance how to short term car insurance for vehicle insurance for free online slots buy chep car insurance quote insurance arizona auto
Anonymous (没有被验证)
周五, 2013-12-20 10:23
Permalink
eFuDexkvtWRlNByeP
cheap insurance quotes auto insurance quotes classic car insurance ny state insureyourcaronline.com online poker bonus generic cialis online
Anonymous (没有被验证)
周六, 2013-12-21 20:29
Permalink
ZtUGrCDCwiMU
auto insurance quotes riverside car insurance auto insurance maif lowest car insurance cheap insurance
Anonymous (没有被验证)
周五, 2014-01-10 10:56
Permalink
AJMiabeVOkXHruQ
CAR INSURANC www.mymedsaccess.com cheap motor insurance for women where to buy reasonable priced health insurance car insurance free quotes
Anonymous (没有被验证)
周二, 2014-03-04 07:18
Permalink
KgWjYzbNTdH
Great aritlce, thank you again for writing.
nianzong
周二, 2019-07-16 09:09
Permalink
如此畸形的拓扑都不知道你想干啥...LVS
如此畸形的拓扑都不知道你想干啥...LVS/DR的最大优势是什么好好想想