Created
February 27, 2017 04:34
-
-
Save aaerofeev/18e2fb748a38f9e80261f4e7a07fed5d to your computer and use it in GitHub Desktop.
Работа с iptables
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
# Блокируем ip | |
iptables -A INPUT -s 93.171.208.11 -j DROP | |
# Логируем блокированный порт | |
iptables -A INPUT -p tcp --destination-port 25 -j LOG --log-prefix "ALIENS FROM NETWORK: " --log-level 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment