Security – How To Set iptables log rules for PSAD with UFW

iptablespsadSecurityufw

For PSAD to work, I need to add the following iptables rules and enable packet logging :

iptables -A INPUT -j LOG
iptables -A FORWARD -j LOG
ip6tables -A INPUT -j LOG
ip6tables -A FORWARD -j LOG

I use UFW on my system. So, how can I add these rules with UFW?

Best Answer

You just enable logging.

sudo ufw logging on
Related Topic