RE: problem with 2 NAT and 2 ROUTE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I have a problem with mi linux BOX
> .
> Eth0 =  192.168.0.254  (RED A)
> Eth1 =  200.69.123.177/130  (LINK A)
> Eth2 =  192.168.0.100  (RED B)
> Eth3 =  192.168.1.1 para el PPPOE
> ppp0=  DynamicIP (LINK B)
> -------------------------------------------------------------------
> DEFAULT ROUTE
> 200.69.123.178 (LINKA)
> ppp0 (cdo establece el PPPOE)
> -------------------------------------------------------------------
> IPTABLES  NAT RULES
> iptables -t nat -A POSTROUTING -s 192.168.0.0/255.255.255.128 -o ppp0 -j MASQU
ERADE
> iptables -t nat -A POSTROUTING -s 192.168.0.128/255.255.255.128 -o eth1 -j MAS
QUERADE
>
> -------------------------------------------------------------------
>
> My problem is the only NAT works is the NAT with march with de default route..
>
> Can any one helme?

you need to add a policy route thats routes traffic from 192.168.0.128/25 via the eth1 (ppp1, maybe?) interface.

have a look at:

http://lartc.org/howto/lartc.rpdb.html

-j



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux