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

iptables rule for sshd



I am running sshd on my Debian machine with iptables. I want it to accept ssh connections from outside. I added this rule and it doesn’t work.

 

Iptables –A INPUT –p tcp –sport ssh –j ACCEPT

 

Why do you think its not able to match this rule? When I turn off the firewall, I am able to ssh to it from itself. But when I turn on the firewall, it doesn’t work.

 

Any ideas?

 

Regards,

 

Nabil.

DISCLAIMER:
Bu elektronik posta ve ekleri, sadece yukarida ismi yazili alicinin dikkatine gonderilmistir. Mesajin muhatabi degilseniz, icerigini ve varsa ekindeki dosyalari kimseye aktarmayiniz ya da kopyalamayiniz. Boyle bir durumda gondereni uyarip, mesaji imha ediniz. KUVEYT TURK E.F.K. A.S bu e-postanin ve eklerinin icerdigi bilgilerin size degisiklige ugrayarak ulasmasindan veya gec ulasmasindan, butunlugunun ve gizliliginin korunamamasindan veya icerigine guvenilerek yapilacak islemlerden dolayi sorumlu tutulamaz.
This e-mail & its content have been sent to the attention of the receiver named above. If you are not the intended recipient (or have received this e-mail in error), Please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Kuwait Turkish Evkaf Finance House shall not be held liable for the arrival of this e-mail & its content as modified or late, the protection of integrity and secrecy and shall not be liable to any person who acts or omits to do anything in reliance upon it.


Reply to: