- 论坛徽章:
- 0
|
回复 #16 miaoer 的帖子
HA 也需要 LOAD BALANCE 也是需要的
Let us forget (HA 也需要) for a moment, focus on (LOAD BALANCE 也是需要的) using LVS
Server A 与My Server 之间 -- real server vs LVS
Server B 与 My Server 之间 -- real server vs LVS
let us use a similar example, ftp (active and passive) from redhat Document about firewall mark
/etc/vsftpd.conf
pasv_min_port=10000
pasv_max_port=20000
pasv_address=n.n.n.n
You must able to set up a UDP port range for your application, right?
/sbin/iptables -t nat -A POSTROUTING -p tcp -s n.n.n.0/24 --sport 20 -j
MASQUERADE
/sbin/iptables -t mangle -A PREROUTING -p tcp -d n.n.n.n/32 --dport 21 -j MARK
--set-mark 21
/sbin/iptables -t mangle -A PREROUTING -p tcp -d n.n.n.n/32 --dport
10000:20000 -j MARK --set-mark 21
Does it make any sense? anyone, please comment!
[ 本帖最后由 gl00ad 于 2008-10-28 01:19 编辑 ] |
|