Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks for proving my point...you cannot block torrents with Squid. You're doing a redirect with iptables, which is not the same thing. Also, you can still download torrents with what you have stated above. Torrents are specifically designed to be hard to block, which is why layer seven filters exist, and which is why even ISP's have a hard time blocking/tracking them.
There are IPtables rules you can use with regex'es to TRY to block things, but even they don't work.
see if you will not use this command:
#iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
and manually feed proxy settings in client browser than only browser will be able to use internet and torrent programs will not get internet.
Again, no. You are NOT using squid to block torrents, rather an IP tables rule. And again, you can run a torrent client and simply put the proxy port in, and bypass it, since by using your rules, all you're doing is a redirect. You're not blocking the ports used by torrent clients.
Again, no. You are NOT using squid to block torrents, rather an IP tables rule. And again, you can run a torrent client and simply put the proxy port in, and bypass it, since by using your rules, all you're doing is a redirect. You're not blocking the ports used by torrent clients.
First of all I am using squid to provide internet on limited ports. (ok)
Than I agree that any one can run a torrent client and simply put the proxy port in, and bypass it. But if you will use delay pools than torrent download speed can be limited.
I suggest you try it practically. Than give me your feedback.
First of all I am using squid to provide internet on limited ports. (ok)
Than I agree that any one can run a torrent client and simply put the proxy port in, and bypass it. But if you will use delay pools than torrent download speed can be limited.
I suggest you try it practically. Than give me your feedback.
I suggest you read the question, and read what you just posted. The OP posted that they want to BLOCK (that is TOTALLY STOP) torrent downloading. You CANNOT DO THAT WITH SQUID, PERIOD. You even then follow up by saying you KNOW it won't work, and the best your solution can do is limit the SPEED of downloading, providing that they do it through a web browser. Again, your 'solution' lets a torrent client BYPASS squid totally...and if you bypass squid, how exactly would the squid rules apply to that download????
I HAVE tried what you posted, a good while back, and so I KNOW it doesn't work.
First try it. See if torrent downloading speed is reduced beacuse of delay pools.
Practically testing is far better than Arguments.
And if you read what I posted before, I HAVE TRIED IT, and it doesn't work. Again, if you bypass Squid, the squid rules don't apply.
And again, you have not addressed the OP's question. They want to BLOCK...not 'slow down'...torrent downloads. Your 'solution', does NOT BLOCK IT, so it DOES NOT WORK.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.