To: netfilter@lists.netfilter.org
Subject: Two netwok cards to access the internet.
Date: Tue, 22 Mar 2005 18:54:26 -0300 [thread overview]
Message-ID: <010801c52f29$bb2cd7d0$280211ac@PIVT> (raw)
Hi!
I have the following:
A RedHat 9.0 with 3 Network cards: One we use in local network (eth1) and the other (eth0 and eth2) to access the internet.
I'd like to separate the traffic. In the eth0 use only with the e-mail server (pop, smtp, 1723, 1701 and protocol 47) and the eht0 with others traffis (http, https, msn....).
I tried
iptables -t nat -A POSTROUTING -o eth2 -s 172.17.1.8 -j MASQUERADE (--this ip addrs is pop and smtp server)
iptables -t nat -A POSTROUTING -o eth0 -s 172.17.0.0/16 -j MASQUERADE
But when I did this I could not access the port 1723, 1701 and protocol 47 using the eth2.
I tried too use only iptables -t nat -A POSTROUTING -o eth2 -s 172.17.0.0/16 -j MASQUERADE
And I got the same prob.
If I use iptables -t nat -A POSTROUTING -s 172.17.0.0/16 -j MASQUERADE
I will get a success access. Only when I use iptables -t nat -A POSTROUTING -s 172.17.0.0/16 -j MASQUERADE (without -o eth2 or -o eth0).
Who could help me?
Thanks
Sebastião Antônio Campos
Infojoi Computadores Ltda
Joinville -SC - R. Iririú, 3587
Cml. (47) 437-0796 - Cel. (47) 9927-5349
tiao@infojoi.com.br
http://www.lupusnet.com.br
next reply other threads:[~2005-03-22 21:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-22 21:54 [this message]
2005-03-22 22:24 ` Two netwok cards to access the internet Sertys
2005-03-23 0:51 ` Sebastiao Antonio Campos (GWA)
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='010801c52f29$bb2cd7d0$280211ac@PIVT' \
--to=netfilter@lists.netfilter.org \
--cc=sa.campos@datasulsp.com.br \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox