client on local network

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux