Skip to content

Instantly share code, notes, and snippets.

@aaerofeev
Created February 27, 2017 04:34
Show Gist options
  • Save aaerofeev/18e2fb748a38f9e80261f4e7a07fed5d to your computer and use it in GitHub Desktop.
Save aaerofeev/18e2fb748a38f9e80261f4e7a07fed5d to your computer and use it in GitHub Desktop.
Работа с iptables
# Блокируем 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