wg block/unblock torrent
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
iptables -I FORWARD -p tcp -m ipp2p --bit -j DROP
|
||||
iptables -I FORWARD -p udp -m ipp2p --bit -j DROP
|
||||
iptables -I FORWARD -m string --algo bm --string "BitTorrent" -j DROP
|
||||
iptables -I FORWARD -m string --algo bm --string "BitTorrent protocol" -j DROP
|
||||
iptables -I FORWARD -m string --algo bm --string "peer_id=" -j DROP
|
||||
iptables -I FORWARD -m string --algo bm --string ".torrent" -j DROP
|
||||
iptables -I FORWARD -m string --algo bm --string "announce.php?passkey=" -j DROP
|
||||
iptables -I FORWARD -m string --algo bm --string "torrent" -j DROP
|
||||
iptables -I FORWARD -m string --algo bm --string "announce" -j DROP
|
||||
iptables -I FORWARD -m string --algo bm --string "info_hash" -j DROP
|
||||
iptables -I OUTPUT -p tcp -m ipp2p --bit -j DROP
|
||||
iptables -I OUTPUT -p udp -m ipp2p --bit -j DROP
|
||||
+4
-1
@@ -5,7 +5,10 @@ apt install -y \
|
||||
gnupg \
|
||||
lsb-release \
|
||||
make \
|
||||
git
|
||||
git \
|
||||
iptables \
|
||||
xtables-addons-common \
|
||||
xtables-addons-dkms
|
||||
mkdir -p /etc/apt/keyrings
|
||||
curl -fsSL https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/gpg | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
|
||||
echo \
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
iptables -D FORWARD -p tcp -m ipp2p --bit -j DROP
|
||||
iptables -D FORWARD -p udp -m ipp2p --bit -j DROP
|
||||
iptables -D FORWARD -m string --algo bm --string "BitTorrent" -j DROP
|
||||
iptables -D FORWARD -m string --algo bm --string "BitTorrent protocol" -j DROP
|
||||
iptables -D FORWARD -m string --algo bm --string "peer_id=" -j DROP
|
||||
iptables -D FORWARD -m string --algo bm --string ".torrent" -j DROP
|
||||
iptables -D FORWARD -m string --algo bm --string "announce.php?passkey=" -j DROP
|
||||
iptables -D FORWARD -m string --algo bm --string "torrent" -j DROP
|
||||
iptables -D FORWARD -m string --algo bm --string "announce" -j DROP
|
||||
iptables -D FORWARD -m string --algo bm --string "info_hash" -j DROP
|
||||
iptables -D OUTPUT -p tcp -m ipp2p --bit -j DROP
|
||||
iptables -D OUTPUT -p udp -m ipp2p --bit -j DROP
|
||||
Reference in New Issue
Block a user