Re: iptables syntax problems
As was pointed out, $IPADDR, not $IPADRR, and -d not -D for the
others.
I think you need a space before the '\', also it's --dport, not
-dport, and --sport vs. -sport.
> #both rules have a syntax error of Bad arguement '22'
> #iptables -A OUTPUT -o $INTERNET -p tcp \
> # -s $IPADDR --sport $SSH_PORTS\
> # -dport 22 -j ACCEPT
> #iptables -A INPUT -i $INTERNET -p tcp ! --syn \
> # -sport 22 \
> # -d $IPADDR --dport $SSH_PORTS -j ACCEPT
> -Ross
Cheers,
--
Lance Levsen,
Systems Administrator,
PWGroup - Saskatoon
--
To UNSUBSCRIBE, email to debian-firewall-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: