Iptables

From KeegansWiki
Revision as of 07:14, 25 October 2011 by Keegan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Enable logging

/sbin/iptables -A INPUT -m limit --limit 15/minute -j LOG --log-level 7 --log-prefix "Iptables Dropped: "
/sbin/iptables -A OUTPUT -m limit --limit 15/minute -j LOG --log-level 7 --log-prefix "Iptables Dropped: "

Allow all access from one IP

-A RH-Firewall-1-INPUT -s 10.93.122.33 -j ACCEPT