[CentOS] how to get iptables rule to log actions?
rudiahlers at gmail.com
Mon Apr 6 11:06:47 UTC 2009
I need to block access to an external IP address, on CentOS 5 with
iptables, but can't seem to get it right.
I have the following options in /etc/sysconfig/iptables:
-A RH-Firewall-1-OUTPUT -d 22.214.171.124 -j LOG
-A RH-Firewall-1-OUTPUT -d 126.96.36.199 - j DROP
But when I restart iptables, I get the following errors:
Flushing firewall rules: [OK]
Setting chains to policy ACCEPT: filter [OK]
Unloading iptables modules: [OK]
Applying iptables firewall rules: iptables-restore v1.3.5: Couldn't
load target: 'RH-Firewall-1-OUTPUT':/lib/iptables/libipt_RH-Firewall-1-OUTPUT.so:
cannot open shared object file: no such file or directory.
So, how can I block & log all outgoing traffic to this IP?
The server is off line, and I only have remote access via KVM-over-IP to it.
More information about the CentOS