Spot the error !!

Shane Chen shane@knowplace.org
Tue, 24 Jul 2001 22:20:52 -0700


Gareth Hastings wrote:
> Can someone tell me why this line doesn't work
> 
> /sbin/iptables -A INPUT -i eth1 -m state --state NEW --dport 22 -j
> ACCEPT

No protocol.  Since IP itself doesn't have ports, you need to specific a
protocol for port 22.  I assume you're probably trying for ssh (TCP).

Shane