Created
June 4, 2020 23:29
-
-
Save davidcorbin/0f4f5a8eef15de8320bf839066d5002b to your computer and use it in GitHub Desktop.
IPTables log dropped (logs go to /var/logs/kern.log)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo iptables -N LOGGING | |
sudo iptables -A INPUT -j LOGGING | |
sudo iptables -A OUTPUT -j LOGGING | |
sudo iptables -A LOGGING -m limit --limit 2/min -j LOG --log-prefix "IPTables-Dropped: " --log-level 4 | |
sudo iptables -A LOGGING -j DROP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment