| ||||
| ||||
| Question: iptables Block bittorent 100% |
# Algo string $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
$IPTABLES -A FORWARD -m string --algo bm --string "/default.ida?" -j DROP #codered virus
$IPTABLES -A FORWARD -m string --algo bm --string ".exe?/c+dir" -j DROP #nimda virus
$IPTABLES -A FORWARD -m string --algo bm --string ".exe?/c_tftp" -j DROP #nimda virus
# bittorrent key
$IPTABLES -A FORWARD -m string --string "peer_id" --algo kmp --to 65535 -j DROP
$IPTABLES -A FORWARD -m string --string "BitTorrent" --algo kmp --to 65535 -j DROP
$IPTABLES -A FORWARD -m string --string "BitTorrent protocol" --algo kmp --to 65535 -j DROP
$IPTABLES -A FORWARD -m string --string "bittorrent-announce" --algo kmp --to 65535 -j DROP
$IPTABLES -A FORWARD -m string --string "announce.php?passkey=" --algo kmp --to 65535 -j DROP
# DHT keyword
$IPTABLES -A FORWARD -m string --string "info_hash" --algo kmp --to 65535 -j DROP
$IPTABLES -A FORWARD -m string --string "get_peers" --algo kmp --to 65535 -j DROP
$IPTABLES -A FORWARD -m string --string "announce" --algo kmp --to 65535 -j DROP
$IPTABLES -A FORWARD -m string --string "announce_peers" --algo kmp --to 65535 -j DROP
refer : http://www.linuxthai.org/forum/index.php?topic=3884.0 by: EasyZone วันที่ 6/9/2553 - 17:04:00 |