I am trying to configure psad
to stop port scanning and other attacks.
Currently I have following rules set for my firewall which drops all incoming connection except port 22,80,443 and 3306.
-A INPUT -j DROP
-A FORWARD -j DROP
I want to use "psad". Major requirement mentioned by "psad" is " iptables policy to be compatible with psad is simply that iptables logs packets"
iptables -A INPUT -j LOG
iptables -A FORWARD -j LOG
So how do I configure my firewall rules?
Should I first log them and then drop them?
-A INPUT -j LOG -A FORWARD -j LOG -A INPUT -j DROP -A FORWARD -j DROP
Should I not use drop at all? I am a bit skeptical of not dropping.