Re: ssh rule

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

 



Britto <britto_antony@xxxxxxxxx> writes:

> Hi 
> 
> Can you pls anyone help me correct it if i am wrong. I
> have the following entries in the iptables 
> 
> iptables -P INPUT DROP
> iptables -P OUTPUT DROP
> iptables -P FORWARD DROP
> iptables -A INPUT -p tcp --dport 22 -j ACCEPT
> 
> but still i can not do ssh to linux box from the PC
> which is sitting in the internal network.

How do you think the server's response to your login attempts will
find the way back to you when you tell it to drop all output traffic?

Hint: Check out the ESTABLISHED and RELATED states. When you
understand what they do, use them in your output rules.

-- 
Bjørn




[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