netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Two netwok cards to access the internet.
@ 2005-03-22 21:54 
  2005-03-22 22:24 ` Sertys
  0 siblings, 1 reply; 3+ messages in thread
From:  @ 2005-03-22 21:54 UTC (permalink / raw)
  To: netfilter

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

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

end of thread, other threads:[~2005-03-23  0:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-22 21:54 Two netwok cards to access the internet 
2005-03-22 22:24 ` Sertys
2005-03-23  0:51   ` Sebastiao Antonio Campos (GWA)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).