All of lore.kernel.org
 help / color / mirror / Atom feed
* How to do nat filtering in 1.4.3.2
@ 2009-04-22 21:48 Jorge Bastos
  2009-04-22 21:59 ` Leonardo Rodrigues
  0 siblings, 1 reply; 5+ messages in thread
From: Jorge Bastos @ 2009-04-22 21:48 UTC (permalink / raw)
  To: netfilter

Hi people,

Before in 1.4.2 and older, I used to do some filtering in the nat table,
and I saw a warning about that feature going to be disabled, and saw that
in 1.4.3.2 already is.

In 1.4.2:
--
The "nat" table is not intended for filtering, hence the use of DROP is
deprecated and will permanently be disabled in the next iptables release.
Please adjust your scripts.
--

In 1.4.3.2:
--
iptables -t nat -A PREROUTING -p tcp --dport 1863 -j ACCEPT # msn iptables
-t nat -A PREROUTING -p tcp --dport 5900 -j ACCEPT # vnc iptables -t nat
-I PREROUTING -d 193.164.158.105 -j DROP iptables -t nat -A PREROUTING -j
DROP iptables v1.4.3.2:
The "nat" table is not intended for filtering, the use of DROP is
therefore inhibited.
--

I use this, to allow the users that are using my linux machine, action as
a router, to connect to the outside world only to the ports I want, and
block some stuff.
How to do this now on?

Thanks,
Jorge,



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

end of thread, other threads:[~2009-04-22 22:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-22 21:48 How to do nat filtering in 1.4.3.2 Jorge Bastos
2009-04-22 21:59 ` Leonardo Rodrigues
2009-04-22 22:18   ` Jorge Bastos
2009-04-22 22:22     ` Leonardo Rodrigues
2009-04-22 22:26       ` Jorge Bastos

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.