Hi,
Already using cacti and mrtg for bw monitoring.
Maybe I can block bittorent announcers in some way ?
Main Topics
Browse All TopicsHello,
I run a VPN service, I have OpenVPN and PPTP.
Because of to much abuse from our hosting provider, we have to block P2P and Bittorent for our clients.
VPN servers are running as gateway.
Iptables rules for NAT:
SNAT all -- 192.168.0.0/24 anywhere to:IP_ADDRESS #PPTP
SNAT all -- 10.8.0.0/24 anywhere to:IP_ADDRESS #OpenVPN
I already blocked port 6969 and install IPP2P module for iptables but it's not working good.
I need a 99% solution.
Please recommend me something.
Also please recommend me something for VPN bandwidth monitoring on Linux.
P.S. OS: Ubuntu 8.10, 2.6.27-7-server SMP
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Yes of you block the trackers the clients dont knnow where to fetch the next block.
The problem is there are a lot of them and they are changing too, also modern P2P exchange this information amongst each other too.. so if there is one other P2P client found this will defeat your barier.
If you need to block P2P you should considder thinking about blocking every thing and then allow all access that is required. At least it will be less maintenance. As HTML can also be used as a channel for retrieving information you might need to have a HTTP proxy too with filtering capabilities.
Anyway it will become a lot of work for maintenance.
As noci suggests - good firewall policy blocks everything outbound then permits on a business case only basis....
IE...permit outbound http, https, from all clients (80,443) and permit 25 from your mailserver only. If you can , run a proxy and permit http outbound only through this (such as Squid).
This will not only help with P2P but will also help with other issues, such as viruses and malware....
Roachy1979,
Squid is not a solution as we give our client unique dedicated IP address.
Also permitting only http, https.. is not a good solution for my as there are many online games, online tv software, other.. which use some nonstandard ports.
Maybe someone used this on Ubuntu http://l7-filter.sourcefor
I don't have any personal experience with it, but http://www.lowth.com/rope/
What is suggested above about closing off everything outbound and using a proxy is a good idea. Do your customers really care what their source address is when they are browsing websites? Most ISPs have transparent proxies in place anyway, so if you're not proxying their connection, chances are someone further up the chain more than likely is..
Take a look at MasterShaper for blocking P2P applications such as Bittorrent.
www.mastershaper.org
MasterShaper is a network traffic shaper which provides a Web Interface for Quality of Servcie (QoS) functions of newer Linux 2.4- & 2.6-Kernel-Series.
It targets to let users learn and use the traffic shaping mechanism. This should be possible for everyone who has no deeper knowledge of Linux and the difficult syntax of the tc commands from the iproute2 package.
It provides a Web Interface which lets you define bandwidth pipes and filters (based on IP, MAC, ports, protocols, ipp2p, layer7-filter, ...). It also draws some graphs about the current bandwidth usage and distribution. There is no more need for any shell access or privileged users.
Business Accounts
Answer for Membership
by: nociPosted on 2009-10-02 at 04:37:05ID: 25476876
bandwidth monitoring:
/
MRTG http://oss.oetiker.ch/mrtg
CACTI http://www.cacti.net/
for p2p blockage you will have a problem..., it can use almost any port, many technologies etc.
To what extent is it possible to use a proxy for html access? only allow mailout from a mailserver and so on i.e. use whitelisting in your Firewall.
Then the number of open ports is limited.
If possible limit UPNP control of a modem (to allow specific port forwading to a client).