All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] 2 internet connection problem :(
@ 2005-04-26 15:49 Stanislav Nedelchev
  2005-04-27  5:44 ` Taylor, Grant
  0 siblings, 1 reply; 2+ messages in thread
From: Stanislav Nedelchev @ 2005-04-26 15:49 UTC (permalink / raw)
  To: lartc

 ------------------
---------| 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@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-27  5:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-26 15:49 [LARTC] 2 internet connection problem :( Stanislav Nedelchev
2005-04-27  5:44 ` Taylor, Grant

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.