Two gateways

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

 



I have setup 2 DSL outgoing connections for my LAN. I split the traffic according form the source IP.
My network setup is


				---------dsl1 xxx.xxx.xxx.xxx
192.168.0.0/24 LAN------
				---------dsl2 yyy.yyy.yyy.yyy
				
My rules are 

iptables -t nat -A POSTROUTING -s 192.168.0.128/25 -d 0/0 -j SNAT --to xxx.xxx.xxx.xxx
iptables -t nat -A POSTROUTING -s 192.168.0.128/25 -d 0/0 -j SNAT --to yyy.yyy.yyy.yyy

My default gateway is xxx.xxx.xxx.xxx

The nat rule that uses my default gateway has no problem.

How can I set a route rule to send the traffic form yyy.yyy.yyy.yyy out, or I don?t know if I?m using the incorrect iptable command. Sorry I?m a newbie

[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