Iptables - как заблокировать torrrent трафик

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Версия от 10:23, 22 февраля 2021; Admin iph (обсуждение | вклад) (Новая страница: «=== Iptables - как заблокировать torrrent трафик === Правила iptables для блокировки torrent трафика: # iptabl...»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к:навигация, поиск

Iptables - как заблокировать torrrent трафик

Правила iptables для блокировки torrent трафика:

# iptables -I FORWARD 1 -m string --string "BitTorrent" --algo bm --to 65535 -j DROP
# iptables -I FORWARD 1 -m string --string "BitTorrent protocol" --algo bm --to 65535 -j DROP
# iptables -I FORWARD 1 -m string --string "peer_id=" --algo bm --to 65535 -j DROP
# iptables -I FORWARD 1 -m string --string ".torrent" --algo bm --to 65535 -j DROP
# iptables -I FORWARD 1 -m string --string "announce.php?passkey=" --algo bm --to 65535 -j DROP
# iptables -I FORWARD 1 -m string --string "torrent" --algo bm --to 65535 -j DROP
# iptables -I FORWARD 1 -m string --string "announce" --algo bm --to 65535 -j DROP
# iptables -I FORWARD 1 -m string --string "info_hash" --algo bm --to 65535 -j DROP
# service iptables save