2 internet connection problem :(

Linux Advanced Routing and Traffic Control

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

 



 ------------------
---------| external ip eth0 | ----------
       --------------------------           |
|---------------------------
                                            |  -------| Internal IP eth1    |
       --------------------------           |
|--------------------------
---------| external Ip eth2 | ----------
       --------------------------

i want to put web and ftp traffic to eth2 and all other traffic to eth0
is it possible can anybody help me to do that

here is my config
iptables -t nat -A POSTROUTING -o eth2 -s 192.168.0.0/0 -d !
192.168.0.0/16 -p tcp --dport 80 -j SNAT --Extermal IP on Eth2
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/0 -d !
192.168.0.0/16 -j  SNAT --External IP on Eth0

213.32.208.248    0.0.0.0                255.255.255.248 U     0
0        0 eth0
213.32.208.248    0.0.0.0               255.255.255.248 U     0      0
     0 ipsec0
192.168.5.0         213.32.208.249  255.255.255.0   UG    0      0
 0 ipsec0
217.10.130.0        0.0.0.0              255.255.255.0   U     0
0        0 eth2
192.168.128.0      213.32.208.249  255.255.255.0   UG    0      0
0 ipsec0
192.168.0.0         0.0.0.0               255.255.255.0   U     0
0        0 eth1
192.168.32.0      213.32.208.249    255.255.240.0   UG    0      0
 0 ipsec0
127.0.0.0            0.0.0.0               255.0.0.0       U     0
0        0 lo
0.0.0.0              213.32.208.249     0.0.0.0         UG    1      0
     0 eth0
0.0.0.0               217.10.130.1        0.0.0.0         UG    2
0        0 eth2

Thanks is Advance
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux