Web Hosting Talk







View Full Version : Iptables errors


golfer
11-26-2003, 09:03 PM
I keep getting the error messages when trying to execute my iptables script. Here is where the error occurs...

/sbin/iptables -A OUTPUT -o eth0 -s $server_ips -p tcp -m state --state NEW --sport $UNPRIVPORTS --dport 22 -j ACCEPT

I get the following errors...

line 563: ACCEPT: command not found
Unknown arg `-j'

I am on RH 9, using the iptables version that came with it.

rghf
11-26-2003, 09:22 PM
if its coming up withc command not found then something weird is going on in your shell. Try

iptables -A INPUT -d 0/0 -j ACCEPT

Very simple rule. See if that helps

Rus