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?
You just enable logging.
sudo ufw logging on
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.