Controlling BitTorrent on a specific IP
Hello,
I'm having trouble controlling p2p usage [mostly BitTorrent] over my network - one of my flatmates, who has no concept of QoS or bandwidth limiting is torrenting all the time now. This is causing problems despite my all my traffic shaping. The problem is with one specific user - I'd rather not apply any restrictions to any other users at the moment. To fix the problem I'd like to block everything and allow only specific services [ssh, SSL, http, etc] on that IP. I tried this [adapted from another thread] on my own computer... Code:
#!/bin/bash This is what I tried Code:
iptables -A INPUT -s 10.0.0.5 -j DROP Could anyone give me some idea as to what I should try next. Thanks! Kat |
well...
1) sounds like a caring sharing household! 2) what is your network topology? you can only affect traffic if it passes through your machine as a route or bridge. if it's all your desktops and an adsl router, then you're out of luck. |
I torrent a lot myself so like to keep things limited! :)
OK network topology... Linux Router, eth0 --> Modem --> Internet eth1 --> LAN [10.0.0.x] eth2 --> WLAN [10.0.1.x] So I'd like to control all traffic on eth0. |
sorry, you've tried this on your own machine only? well when it's on a router, you'd use the FORWARD chain only and it should work fine to my (less than ideal iptables) knowledge.
|
I've tried the first script on my machine and the 2nd on my server.
I suspected I might need the FORWARD chain only - I'll give it a go when nobody else is using the net! Thanks for your help. :) |
Well after trying that on my own IP I haven't had much luck - I can still torrent! Here is the first part of my network setup script.. [I won't post all of it because it is rather long]
Code:
#!/bin/bash |
All times are GMT -5. The time now is 11:40 PM. |