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

Re: What is the best way to turn off the iptables



>
> You could always flush/remove all the rules.  But my suggestion is to
> understand why it is blocking you.
> You could do that by
> iptables -L -vn
> this prints the packets stats against each rule.
> Another handy tool is netcat.  Combining both of these you could easily
> debug iptables scenario.
> For example to see your loopback scenario do the following in two shells
>
> shell1: nc -l -p 5000 # listen on port 5000
> shell2: echo 'hello' | nc 127.0.0.1 5000 #send something to loopback port
> 5000
> The message should be printed on shell1 and if you type something on shell1
> it should come back to shell2 also.
>
> If it is coming or not, analyze the packet stats, see it is increased
> against which rule.

$ echo 'hello' | nc 127.0.0.1 5000
(UNKNOWN) [127.0.0.1] 5000 (?) : Connection timed out

I don't know how to analy/follow the packet states.

Thanks,
>


Reply to: