OVH Server CSF ip Deny Has No Effect
Posted: 10 Jul 2014, 19:53
when i run the iptables test i get this:
esting ip_tables/iptable_filter...OK
Testing ipt_LOG...OK
Testing ipt_multiport/xt_multiport...OK
Testing ipt_REJECT...OK
Testing ipt_state/xt_state...OK
Testing ipt_limit/xt_limit...OK
Testing ipt_recent...OK
Testing xt_connlimit...FAILED [Error: iptables: Protocol wrong type for socket.] - Required for CONNLIMIT feature
Testing ipt_owner/xt_owner...OK
Testing iptable_nat/ipt_REDIRECT...OK
Testing iptable_nat/ipt_DNAT...OK
RESULT: csf will function on this server but some features will not work due to some missing iptables modules [1]
and when try to block an ip
Adding 101.173.42.156 to csf.deny and iptables DROP...
DROP all opt -- in !lo out * 101.173.42.156 -> 0.0.0.0/0
DROP all opt -- in * out !lo 0.0.0.0/0 -> 101.173.42.156
and when i try to go to my site from that ip its not blocked
also i get these errors when i restart iptables
service iptables restart
Opening /proc/modules: No such file or directory
iptables: Setting chains to policy ACCEPT: raw nat mangle f[ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
i heard some where that i should delete the iptables config and rules from /etc/sysconfig
but that did not seem to fix the issue either
port blocking works fine on csf but not ip blocking
esting ip_tables/iptable_filter...OK
Testing ipt_LOG...OK
Testing ipt_multiport/xt_multiport...OK
Testing ipt_REJECT...OK
Testing ipt_state/xt_state...OK
Testing ipt_limit/xt_limit...OK
Testing ipt_recent...OK
Testing xt_connlimit...FAILED [Error: iptables: Protocol wrong type for socket.] - Required for CONNLIMIT feature
Testing ipt_owner/xt_owner...OK
Testing iptable_nat/ipt_REDIRECT...OK
Testing iptable_nat/ipt_DNAT...OK
RESULT: csf will function on this server but some features will not work due to some missing iptables modules [1]
and when try to block an ip
Adding 101.173.42.156 to csf.deny and iptables DROP...
DROP all opt -- in !lo out * 101.173.42.156 -> 0.0.0.0/0
DROP all opt -- in * out !lo 0.0.0.0/0 -> 101.173.42.156
and when i try to go to my site from that ip its not blocked
also i get these errors when i restart iptables
service iptables restart
Opening /proc/modules: No such file or directory
iptables: Setting chains to policy ACCEPT: raw nat mangle f[ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
grep: /proc/modules: No such file or directory
i heard some where that i should delete the iptables config and rules from /etc/sysconfig
but that did not seem to fix the issue either
port blocking works fine on csf but not ip blocking