> So, for example, say VIP is 10.2.2.38
> VIP_NETWORK is 10.2.2.0
> VIP_NETWORK_GATEWAY is 10.2.2.1 (probably)
>
> ip route flush table 42
> ip route add table 42 to 10.2.2.0/24 dev eth0 advmss 1440
> ip route add table 42 to default via 10.2.2.1 advmss 1440
> ip rule add from VIP table 42 priority 42
> ip route flush cache
Based on the instructions above and my interpretation I tried the
following without success.
tunl0/ VIP --- 10.2.2.38
REAL_SERVER_NET --- 10.0.1.0/26
REAL_SERVER_GW --- 10.0.1.1
REAL_SERVER_IP --- 10.0.1.2
This is the proposed setup.
LVS Real Server
------------------------
-----------------------------
| LVS | | IP
10.0.0.2/26 |
| VIP=10.2.2.38 | -------------------------> | tunl0 10.2.2.28/32 |
------------------------ | GW
10.0.1.1 |
------------------------------
ip route flush table 42
ip route add table 42 to REAL_SERVER_NET dev eth0 advmss 1420
ip route add table 42 to default via REAL_SERVER_GW advmss 1420
ip rule add from VIP table 42 priority 42
ip route flush cache
Also tried this on the Real Server without any luck.
iptables -A OUTPUT -s VIP -p tcp -m tcp --tcp-flags SYN,RST,ACK
SYN,ACK -j TCPMSS --set-mss 1440
Thanks.
Sameer
|