Difference between revisions of "BitTorrentBlockingIPs"
|Line 1:||Line 1:|
Revision as of 14:20, 16 January 2008
From: michaelmoorr Sent: Tuesday, May 20, 2003 12:23 PM Subject: [[BitTorrent]] Feature request hi! Due to traffic restrictions applied in our country, we would like to create a feature in bittorrent tracker that allowed only certain IP adresses to connect, (local adresses it is). We downloaded the source code, but we had some difficulties to understand it (first time with Python :P). We'd like to know if u could give us some hints in how to do it (i mean what part of the source should we change), or if there is a working java, c++, etc port of bittorrent.
Check tracker.py, around lines 207 - 210 to get an idea of how to reject certain IPs. Line numbers are for latest CVS version (afaik). (Ed. as of
If you were feeling tricky, you could also hook into geoip to check that people were connecting from the same country.
Use linux and use iptables.
iptables is used to construct firewalls. It could be used to allow specific IP's on specific ports easily enough. Drop all others.
Probably a lot more ways to do this but this will work
Setup some smart firewall rules to block external access. It doesn't have to be linux.
Back to BitTorrentFAQ