<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
That will help, but realistically you're going to have to block every
"high port" to stop P2P through that method.<br>
<br>
The only way to effectively block P2P is to do packet sniffing and
analysis.. and that's just one big hassle.<br>
<br>
My belief is this is usually the wrong way to tackle the problem,
looking for a technical solution to a human resource problem.<br>
User education (and LARTing if necessary) is the key. Using software
like Cacti to monitor and graph per-port traffic stats, identify the
largest bandwidth users and then focus on them and find out just why
they're using up so much bandwidth.<br>
It's remarkable just how soon the problem all goes away after you find
just one or two individuals who are abusing the network infrastructure
and explain to them what the disciplinary procedures are (or enact if
it's appropriate and you have concrete evidence.) The message soon
spreads!<br>
<br>
Paul<br>
<br>
On 06/04/2010 05:03 AM, Greyson Farias wrote:
<blockquote
cite="mid:AANLkTildGUf64qfoL6ZH5RyujZb_mfC1_N34Txt-u5t_@mail.gmail.com"
type="cite">Hello, <br>
<br>
You can use these iptables rules, because I don't like, don't use and I
don't wanna learn ufw. hehehehehe <br>
<br>
# Block P2P connections<br>
iptables -A FORWARD -p tcp --dport 1214:1215 -j DROP<br>
iptables -A FORWARD -p udp --dport 1214:1215 -j DROP<br>
iptables -A FORWARD -p tcp --dport 1981 -j DROP<br>
iptables -A FORWARD -p udp --dport 1981 -j DROP<br>
iptables -A FORWARD -p tcp --dport 2037 -j DROP<br>
iptables -A FORWARD -p udp --dport 2037 -j DROP<br>
iptables -A FORWARD -p tcp --dport 3501 -j DROP<br>
iptables -A FORWARD -p udp --dport 3501 -j DROP<br>
iptables -A FORWARD -p tcp --dport 3531 -j DROP<br>
iptables -A FORWARD -p udp --dport 3531 -j DROP<br>
iptables -A FORWARD -p tcp --dport 3587 -j DROP<br>
iptables -A FORWARD -p udp --dport 3587 -j DROP<br>
iptables -A FORWARD -p tcp --dport 3955 -j DROP<br>
iptables -A FORWARD -p udp --dport 3955 -j DROP<br>
iptables -A FORWARD -p tcp --dport 4242 -j DROP<br>
iptables -A FORWARD -p udp --dport 4242 -j DROP<br>
iptables -A FORWARD -p tcp --dport 4661:4672 -j DROP<br>
iptables -A FORWARD -p udp --dport 4661:4672 -j DROP<br>
iptables -A FORWARD -p tcp --dport 4688 -j DROP<br>
iptables -A FORWARD -p udp --dport 4688 -j DROP<br>
iptables -A FORWARD -p tcp --dport 5121 -j DROP<br>
iptables -A FORWARD -p udp --dport 5121 -j DROP<br>
iptables -A FORWARD -p tcp --dport 5662 -j DROP<br>
iptables -A FORWARD -p udp --dport 5662 -j DROP<br>
iptables -A FORWARD -p tcp --dport 6085:6086 -j DROP<br>
iptables -A FORWARD -p udp --dport 6085:6086 -j DROP<br>
iptables -A FORWARD -p tcp --dport 6346:6347 -j DROP<br>
iptables -A FORWARD -p udp --dport 6346:6347 -j DROP<br>
iptables -A FORWARD -p tcp --dport 6699 -j DROP<br>
iptables -A FORWARD -p udp --dport 6699 -j DROP<br>
iptables -A FORWARD -p udp --dport 6881:6889 -j DROP<br>
iptables -A FORWARD -p tcp --dport 6881:6889 -j DROP<br>
iptables -A FORWARD -p tcp --dport 8473 -j DROP<br>
iptables -A FORWARD -p udp --dport 8473 -j DROP <br>
<br>
<span class="gI"></span><br>
<br>
<div class="gmail_quote">2010/6/4 Kaushal Shriyan <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:kaushalshriyan@gmail.com">kaushalshriyan@gmail.com</a>></span><br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
is there a howto for blocking p2p traffic on ubuntu 10.04 server ?<br>
<br>
Thanks,<br>
<font color="#888888"><br>
Kaushal<br>
</font><br>
--<br>
ubuntu-server mailing list<br>
<a moz-do-not-send="true"
href="mailto:ubuntu-server@lists.ubuntu.com">ubuntu-server@lists.ubuntu.com</a><br>
<a moz-do-not-send="true"
href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-server"
target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-server</a><br>
More info: <a moz-do-not-send="true"
href="https://wiki.ubuntu.com/ServerTeam" target="_blank">https://wiki.ubuntu.com/ServerTeam</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Greyson Farias<br>
Técnico em Informática - CREA/AC 9329TD<br>
Ubuntu user<br>
Eu prefiro receber documentos em ODF.<br>
<a moz-do-not-send="true" href="http://ubuntu.com/download/getubuntu">http://ubuntu.com/download/getubuntu</a><br>
Blog Ubuntu Acre: <a moz-do-not-send="true" href="http://ubuntu-ac.org">http://ubuntu-ac.org</a><br>
</blockquote>
<br>
</body>
</html>