Droczy forumowicze. Zapewne każdy z was boryka sie z problemem obcięcia p2p. Nie jest to idealny pomysł (bo lepsze rozwiazanie to niceshaper i kolejkowanie łącza) ale.... (znów z pytaniem... a czy da sie....

)
Blokowanie programów p2p v.1
1. Cel
Zablokowanie programów p2p.
2. Działanie
Wykorzystujemy iptables, netfilter latke patch-o-matic o nazwie string i kernel 2.4.2x
3. Użycie
iptables -A FORWARD -d 217.116.226.0/24 -j DROP
#Kaza
iptables -A FORWARD -p TCP -m string --string "X-Kazaa-" -j REJECT --reject-with tcp-reset
iptables -A FORWARD -p UDP -m string --string "KaZaA" -j DROP
iptables -A FORWARD -p UDP -m string --string "fileshare" -j DROP
#Gnutella
iptables -A FORWARD -p TCP -m string --string "GNUTELLA CONNECT/" -j REJECT --reject-with tcp-reset
iptables -A FORWARD -p TCP -m string --string "urn:sha1:" -j REJECT --reject-with tcp-reset
iptables -A FORWARD -p TCP -m string --string "GET /get/" -j REJECT --reject-with tcp-reset
iptables -A FORWARD -p TCP -m string --string "GET /uri-res/" -j REJECT --reject-with tcp-reset
#FileNavigator/Swaptor
iptables -A FORWARD -d cache.filenavigator.com -j DROP
#Blubster
iptables -A FORWARD -p UDP --dport 41170 -j DROP
#GoBoogy
iptables -A FORWARD -p TCP -m string --string "<peerplat>" -j REJECT --reject-with tcp-reset
iptables -A FORWARD -p TCP -m string --string "GET /getfilebyhash.cgi?" -j REJECT --reject-with tcp-reset
iptables -A FORWARD -p TCP -m string --string "GET /queue_register.cgi?" -j REJECT --reject-with tcp-reset
iptables -A FORWARD -p TCP -m string --string "GET /getupdowninfo.cgi?" -j REJECT --reject-with tcp-reset
#Soulseek
iptables -A FORWARD -d server.slsk.org -j DROP
#BitTorrent
iptables -A FORWARD -p TCP -m string --string "BitTorrent protocol" -j REJECT --reject-with tcp-reset
... powiedzcie mi... jak!
Jak zainstallować ten patch o -matic.. ?! Czy to wogóle realne na nnd? Próował ktoś już tego?
P.S Jeśli ten temat był już gdzies poruszony to przepraszam ale szukałem.
[/b]