On Thu, 17 May 2001, Ina Patricia Lopez 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
Replace last line with:
/sbin/ipchains -A input -s 0.0.0.0/0 -d x.x.x.2 -j DENY
>
> where:
> x.x.x.1 is my linux firewall
> x.x.x.2 is my webserver
>
> tama po ba yung code ko?
>
> thanks
> ina
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> _
> 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]
>
--
Cristian Paslaru
http://devel.iasi.ro
_
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]