[wplug] iptable problems

Romano, Christopher cjr6 at exchange.cis.pitt.edu
Sun Dec 16 13:36:14 EST 2001


Sorry, I guess that I left out some important info.  On my firewall eth0
connects to my DSL modem and eth1 is connected to my switch.  I have three
other machines behind the firewall.  One of them is the one that runs
apache.



> #SSH 
> iptables -A INPUT -i ppp0 -p tcp --sport 22 -m state --state
NEW,ESTABLISHED 
> -j ACCEPT 

>You probably want --dport 22.  This rule accepts any connection 
>originating from port 22 on the remote machine connecting to any port 
>on the machine you're trying to protect. 

>-- 
>Robert Dale 

>wplug member since 1998 
I have this rule:
iptables -A OUTPUT -o ppp0 -p tcp --dport 22 -m state --state
NEW,ESTABLISHED -j ACCEPT


Chris



More information about the wplug mailing list