Not possible since torrents can be encrypted.
Sent from my LG-D802 using Tapatalk
That's not necessarily true. You could technically implement a firewall that has a whitelist of allowed outbound services and drop everything else.
Any idea how to?
GUEST_IF="wl0.1"
iptables -I FORWARD -i $GUEST_IF -j DROP
iptables -I FORWARD -i $GUEST_IF -p tcp -m multiport --dports http,https,imap,smtp,pop3,sftp,ftp,imaps -j ACCEPT
The following illustrates how outbound services allowed on Guest 2.4GHz SSID #1 can be limited to a whitelist:
Code:GUEST_IF="wl0.1" iptables -I FORWARD -i $GUEST_IF -j DROP iptables -I FORWARD -i $GUEST_IF -p tcp -m multiport --dports http,https,imap,smtp,pop3,sftp,ftp,imaps -j ACCEPT
torrents use the torrent protocol that is UDP based. Its easier to do this using layer 3 but on layer 2 you would need a special router for that such as from mikrotik which you can tag packets from layer 2 coming from an interface and than pass them to layer 3 firewall to filter. This sort of filtering requires the traffic going through the CPU. I havent seen a layer 2 firewall from ubiquiti yet.
So even if torrents were encrypted it would still be using the same protocol and would require the router to recognise it. encrypting torrents is only so no one knows what you're sharing and probably a way against some network based malware injection but it doesnt help if someone on the torrent network is a tracker or giving an infected file.
So would you be able to assist me in blocking torrents somehow? Thanks for the assistance so farblocking everything except those 2 will block torrents unless the torrent is using a http proxy. A lot of things are important for the internet to function and use UDP. NTP and DNS are the important ones.
I am using merlin firmware but do not know where to start with ip tables. Looking for guidanceI cannot help you with blocking, if you use an asus router you can try RMerlin's firmware and some IPTable examples. If you were using mikrotik i could help you block torrents coming from wifi only.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!