Iptables - как заблокировать исходящие соединения для всех на 80 порт, кроме одного IP

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Iptables - как заблокировать исходящие соединения для всех на 80 порт, кроме одного IP

# iptables -A INPUT -p tcp --dport 80 -s expect_IP -j ACCEPT
# iptables -A INPUT -p tcp --dport 80 -j DROP