From: Stanislav Nedelchev <stanislav.nedelchev@gmail.com>
To: lartc@vger.kernel.org
Subject: [LARTC] 2 internet connection problem :(
Date: Tue, 26 Apr 2005 15:49:24 +0000 [thread overview]
Message-ID: <4858177605042608493eebe967@mail.gmail.com> (raw)
------------------
---------| 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
next reply other threads:[~2005-04-26 15:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-26 15:49 Stanislav Nedelchev [this message]
2005-04-27 5:44 ` [LARTC] 2 internet connection problem :( Taylor, Grant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4858177605042608493eebe967@mail.gmail.com \
--to=stanislav.nedelchev@gmail.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.