Hi everybody, sorry to descend upon you all and disturb your peace again.
On a post elsewhere I mentioned that I was having difficulties with OSSEC and decided to give up trying to sort it out opting to use Fail2Ban as used on another box.
Before I went ahead all gung-ho I decided to take a look around to see that all was ok. That was when the panic started.
When I run iptables -L I get what looks like thousands of lines which I guess are left over by OSSEC (happy to be corrected).
Here is the output of iptables -L
target prot opt source destination
DROP all -- host-2-60-41-171.pppoe.omsknet.ru anywhere
DROP all -- 175.106.48.52 anywhere
DROP all -- 41.216.48.37 anywhere
hundreds of lines snipped out
DROP all -- bd3f8342.virtua.com.br anywhere
ACCEPT udp -- anywhere anywhere udp dpt:ftp-data
ACCEPT udp -- anywhere anywhere udp dpt:ftp
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:dnp
ACCEPT tcp -- anywhere anywhere tcp dpt:ndmp
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:imaps
ACCEPT tcp -- anywhere anywhere tcp dpt:imap
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3s
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp-data
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT all -- anywhere anywhere
Hundreds more snipped
Chain FORWARD (policy ACCEPT)
target prot opt source destination
DROP all -- smtp-9.star.net.uk anywhere
DROP all -- pingability.com anywhere
DROP all -- 58.187.110.134 anywhere
DROP all -- c94b0e05.virtua.com.br anywhere
Hundreds more snipped
DROP all -- localhost anywhere
DROP all -- 187-35-231-149.dsl.telesp.net.br anywhere
ACCEPT all -- anywhere anywhere
DROP all -- 41.230.20.248 anywhere
Hundreds more snipped
This is obviously wrong and when I was reading trying to solve my OSSEC problem I found a post in these illustrious forums which mentioned thousands of log lines in iptables (was discussing a different issue) but for the life of me I can’t find it now.
So, onto the point of all this which is probably quite obvious I guess. How do I go about cleaning all that mess up?
I have Googled but can’t find a trusted reply.
Again, thanks for reading and any suggestions/pointers you might be able to offer.
Tim
Operating system CentOS Linux 5.7
Webmin version 1.562
Virtualmin version 3.88 Pro