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

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск

Доступная цена

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

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

# iptables -A FORWARD -m string --algo bm --string "BitTorrent" -j DROP
# iptables -A FORWARD -m string --algo bm --string "BitTorrent protocol" -j DROP
# iptables -A FORWARD -m string --algo bm --string "peer_id=" -j DROP
# iptables -A FORWARD -m string --algo bm --string ".torrent" -j DROP
# iptables -A FORWARD -m string --algo bm --string "announce.php?passkey=" -j DROP
# iptables -A FORWARD -m string --algo bm --string "torrent" -j DROP
# iptables -A FORWARD -m string --algo bm --string "announce" -j DROP
# iptables -A FORWARD -m string --algo bm --string "info_hash" -j DROP