mylinuxnotes
Sunday, June 7, 2009
iptable examples
1) iptable rule to accept ssh
iptables -A INPUT -p tcp -i eth0 --dport 22 -m state --state NEW -j ACCEPT
2) iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
3)iptables -A INPUT -j LOG --log-prefix "FAIL!"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment