is there a way to block users on pfsense-firewall level from using torrents?
Thnaks in advance
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
The short answer is no.
The long answer is that Torrent traffic isn't easily characterizable. I have yet to see a deep packet inspection program that can accurately identify torrent traffic.
If you are concerned that your users are saturating your link with Torrent traffic while other users are trying to do simple things like check e-mails, you should probably consider limiting the amount of simultaneous connections a user can have. Torrents work based off of having many simultaneous connections work together. If you limit the amount connections, you can limit the speed of the torrent and thus, the amount of bandwidth the torrent consumes.
As Seanny123 correctly states, one method is to limit the number of concurrent connections per user.
You could also limit the number of outgoing ports, so only fx. port 21,80,443,25,110 etc is allowed - and then open up on request if users have a good reason.
That is how I do it when I got a lot of users on a limited WAN connection, and it works.