Skip to contentSkip to conversation

ssh rule

DISCUSSION Britto 2 participants 2 messages Jan 13, 2006

lore
Share & tools
lore

Britto

author
#0 lore raw

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.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#1 lore raw
Quoted 5 lines · Britto

Hi

Can you pls anyone help me correct it if i am wrong. I have the following entries in the iptables

Quoted 7 lines

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.

Signature · 1 line
Bjørn