IPTables if you want to log all traffic, simply place these rules at the first on in each chain. all log messages will be stored in syslog iptables -A INPUT -j LOG...
there is a package named “iptables-persistent” that will automatically load firewall rules on startup, these rules must be saved in a File, /etc/iptables/rules.v4 for IPv4 and /etc/iptables/rules.v6 for IPv6. Installation apt-get install iptables-persistent...