inbound SSH not working

Justin Michael jmichael@fiber-city.com
Sat, 1 Dec 2001 21:47:21 -0500


On Tue, Nov 27, 2001 at 08:19:26PM -0500, Matt Harrell wrote:
> Hello,
> 
> I recently started from scratch to try to simplify my iptables rules 
> (iptables 1.2.4).  I had used an example I found on the Internet and 
> customized it to my setup, but it was very complex.  I decided to bite the 
> bullet and really learn how iptables work.  So, I did, and for the most part, 
> I've got everything working well.  However, one thing that does not work is 
> inbound SSH access to my Linux firewall.  I have this rule:
> 
> $IPTABLES -A INPUT -s ###.###.###.###/24 -m state --state NEW -p tcp --dport 
> 22 -j ACCEPT
> 
> where ###.###.###.###/24 is my work subnet.  This rule used to work with my 
> old iptables setup.  Now, I get nothing.  What else would I need to allow 
> inbound SSH to my external NIC?  Thanks.

how about:

$IPTABLES -I OUTPUT -d ###.###.###.###/24 -m state --state ESTABLISHED \
-p tcp --sport 22 -j ACCEPT

--j