--- Ina Patricia Lopez <[EMAIL PROTECTED]> wrote:
> hi!
>    been trying to block all packets going into my
> web server except
> http and dns traffic, but my code seems to be
> blocking them all.
> 
> /sbin/ipchains -A input -s 0.0.0.0/0 -d x.x.x.2 -p
> 80 -j ACCEPT
> /sbin/ipchains -A input -s 0.0.0.0/0 -d x.x.x.2 -p
> 53 -j ACCEPT
> /sbin/ipchains -A input -s 0.0.0.0/0 -j DENY
> 
> where:
>      x.x.x.1  is my linux firewall  
>      x.x.x.2  is my webserver
> 
> tama po ba yung code ko?
> 
yup tama yung code mo but you have to rearrange it.
you must DENY first then ACCEPT.
your last command should be the first.



=====
Victor Michael D. Blancas


_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to