General discussion

Locked

Linux Guru help

By thinknologist ·
I was doing a personalized firewall and I came up with this command through a book.


iptables --flush
iptables --flush -t nat
iptables -A OUTPUT -j ACCEPT -o lo
iptables -A INPUT -j ACCEPT -i lo
iptables -A INPUT -i ppp0 -j DROP
iptables -A OUTPUT -o ppp0 -j DROP

I have no problem executing the previous codes but with the codes below, it prompted an error.


iptables -A OUTPUT -m state -state NEW, RELATED, ESTABLISHED -j ACCEPT
iptables -A INPUT -m state --state RELATED, ESTABLISHED -j ACCEPT

Error:
Bad Argument 'NEW,'

I am asking the Linux gurus to comment on this code. WHAT COULD THE PROBLEM WITH THE COMMAND. I have followed carefully the book but still it prompted me an error. I am stucked here and need help.

Thanks.

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to IT Employment Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums