artizan
New Around Here
Just finished installing Merlin firmware on my router.
I want to limit a certain torrenter on my network, googling suggests I limit the TCP/UDP sessions in IPTables.
Since i'm rather new to all this custom firmware stuff, I found some code that might help me with this:
I'm not sure where I need to put this code?
I want to limit a certain torrenter on my network, googling suggests I limit the TCP/UDP sessions in IPTables.
Since i'm rather new to all this custom firmware stuff, I found some code that might help me with this:
Code:
iptables -t filter -I FORWARD -s 192.168.1.0/24 -p tcp --syn -m connlimit --connlimit-above 350 -j DROP
iptables -t filter -I FORWARD -s 192.168.1.0/24 -p ! tcp -m connlimit --connlimit-above 250 -j DROP
iptables -t filter -I FORWARD -s 192.168.1.0/24 -p udp -m limit --limit 20/sec --limit-burst 30 j ACCEPT
I'm not sure where I need to put this code?