The following Iptables rules will block all Torrent traffic on your server:
Log all torrent blocked traffic:
iptables -N LOG > /dev/null 2> /dev/nulliptables -F LOG iptables -A LOG -j LOG --log-prefix "LOG"iptables -A LOG -j DROPTorrent block rules:
iptables -A FORWARD -m string --algo bm --string "BitTorrent" -j LOGiptables -A FORWARD -m string --algo bm --string "BitTorrent protocol" -j LOGiptables -A FORWARD -m string --algo bm --string "peer_id=" -j LOGiptables -A FORWARD -m string --algo bm --string ".torrent" -j LOGiptables -A FORWARD -m string --algo bm --string "announce.php?passkey=" -j LOG iptables -A FORWARD -m string --algo bm --string "torrent" -j LOGiptables -A FORWARD -m string --algo bm --string "announce" -j LOGiptables -A FORWARD -m string --algo bm --string "info_hash" -j LOG
No comments:
Post a Comment