try turning logging on... so you can see what's dropped...
/sbin/ipchains -A input -p tcp -s 0.0.0.0/0 -d x.x.x.2 80 -l -j ACCEPT
/sbin/ipchains -A input -p tcp -s 0.0.0.0/0 -d x.x.x.2 53 -l -j ACCEPT
/sbin/ipchains -A input -p udp -s 0.0.0.0/0 -d x.x.x.2 53 -l -j ACCEPT
/sbin/ipchains -A input -s 0.0.0.0/0 -l -j DENY
take note of the -l's
then look at the logs ... they're usually written at
/var/log/messages
hth,
-mark
On Sat, 19 May 2001, Rebecca wrote:
> still no luck with the code below. cant access x.x.x.2
> cant access the website.
>
> btw, i execute the code below from the command line, after that i get
> disconnected and i try to access url x.x.x.2 from another PC but cant.
>
>
> thanks.
> ina
> On Fri, 18 May 2001, fooler wrote:
>
> >
> > the proper code for ipchains for your needs:
> >
> > /sbin/ipchains -A input -p tcp -s 0.0.0.0/0 -d x.x.x.2 80 -j ACCEPT
> > /sbin/ipchains -A input -p tcp -s 0.0.0.0/0 -d x.x.x.2 53 -j ACCEPT
> > /sbin/ipchains -A input -p udp -s 0.0.0.0/0 -d x.x.x.2 53 -j ACCEPT
> > /sbin/ipchains -A input -s 0.0.0.0/0 -j DENY
> >
> > fooler.
_
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]