All of lore.kernel.org
 help / color / mirror / Atom feed
* client on local network
@ 2004-03-28  8:31 IT Clown
  2004-03-28  8:48 ` Antony Stone
  0 siblings, 1 reply; 6+ messages in thread
From: IT Clown @ 2004-03-28  8:31 UTC (permalink / raw)
  To: netfilter

Hi

i have setup a local network users iptables as follow to
access webpages:

*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:0]
-A INPUT -i lo -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A INPUT -i eth0 -p tcp -m multiport --sport 80,8080 -j
ACCEPT
-A INPUT -i eth0 -p tcp --sport 53 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m multiport --dport 80,8080 -j
ACCEPT
-A OUTPUT -o eth0 -p udp --dport 53 -j ACCEPT
COMMIT

I would like to know the way i set it up is it correct or
is there a better way.The client can browse.

What i dont really understand is the sport and the dport.
When i say: -A INPUT -i eth0 -p tcp -m multiport --sport
80,8080 -j ACCEPT. Does that mean any ip external and port
80,8080 from external?

-A OUTPUT -o eth0 -p tcp -m multiport --dport 80,8080 -j
ACCEPT. The output and dport is that arguemant for the
network client to go out onto port 80,8080?

The rules i have here i did with trile and error.

Regards
__________________________________________________________________________
http://www.webmail.co.za/dialup Webmail ISP - Cool Connection, Cool Price


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

end of thread, other threads:[~2004-03-28 11:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-28  8:31 client on local network IT Clown
2004-03-28  8:48 ` Antony Stone
2004-03-28 10:49   ` IT Clown
2004-03-28 11:02     ` Antony Stone
2004-03-28 11:13       ` Antony Stone
2004-03-28 11:36         ` IT Clown

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.