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

Re: iptables rule for sshd



NabilM@kuveytturk.com.tr wrote:
> Iptables -A INPUT -p tcp -sport ssh -j ACCEPT

try

iptables -A INPUT -i eth0 -p tcp --dport 22 \
         -m state --state NEW -j ACCEPT

cheers,
Sam
-- 
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/

Attachment: pgpBch7HBkHrM.pgp
Description: PGP signature


Reply to: