
		rafaelgrinder
		
		(usa openSUSE)
		
		Enviado em 21/02/2016 - 17:56h 
		A questão é que quando defino uma regra p/ que o IP "X"  vá para a tabela de "Load Balance" o host tem muita perca de pacote e não estabelece uma conexão...
esse é o cenário:
--------------------------------------
servidor VBOX:
eth0: 10.0.2.15/24          (NAT)
eth1: 192.168.5.150/24  (BRIDGE)
eth2: 172.16.0.1/28         (LAN)
eth3: 192.168.56.101/24 (host_only)
rota default = 10.0.2.2
gw rede bridge = 192.168.5.254
------------------------------------------
host CLIENTE:
IP: 172.16.0.2/28
------------------------------------------
ROTEAMENTO:
250     NAT
251     BRIDGE      "conteúdo do /etc/iproute2/rt_tables"
50       LB
ip route add 10.0.2.0/24 dev eth0 src 10.0.2.15 table NAT
ip route add default via 10.0.2.2 dev eth0 table NAT
---
ip route add 192.168.5.0/24 dev eth1 src 192.168.5.150 table BRIDGE 
ip route add default via 192.168.5.254 dev eth1 table BRIDGE
---
ip route add default scope global table LB nexthop dev eth0 via 10.0.2.2 weight 1 nexthop dev eth1 via 192.168.5.254 weight 1
---
POLÍTICAS DE ROTEAMENTO:
ip rule add from 10.0.2.15 table NAT
ip rule add from 192.168.5.150 table BRIDGE
ip rule add from 172.16.0.2 table LB (ESSA É A REGRA QUE CAUSA MUITA PERCA DE PACOTE!!!!!)
---
TABELAS:
NAT;
default via 10.0.2.2 dev eth0 
10.0.2.0/24 dev eth0  scope link  src 10.0.2.15
BRIDGE;
default via 192.168.5.254 dev eth1 
192.168.5.0/24 dev eth1  scope link  src 192.168.5.150
LB;
default 
        nexthop via 10.0.2.2  dev eth0 weight 1
        nexthop via 192.168.5.254  dev eth1 weight 1
MAIN;
10.0.2.0/24 dev eth0  proto kernel  scope link  src 10.0.2.15 
172.16.0.0/29 dev eth2  proto kernel  scope link  src 172.16.0.1 
192.168.5.0/24 dev eth1  proto kernel  scope link  src 192.168.5.150 
192.168.56.0/24 dev eth3  proto kernel  scope link  src 192.168.56.101