Disable upload and download, allow web browsing only.

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
dragonmax
Posts: 7
Joined: Sun Jul 31, 2016 10:26 pm

Disable upload and download, allow web browsing only.

Post by dragonmax »

Limit upload and download speed without slowing browsing speed with iptables

Hello,
I was searching for a way in order to disable downloading and uploading without slowing down browsing speed with iptables (Just for fun and for testing). If this way worked please add it as a new feature in the upcoming version

iptables -I INPUT -p tcp --dport 80 -m length --length 900:65535 -j DROP

iptables -I OUTPUT -p tcp --dport 80 -m length --length 900:65535 -j DROP

iptables -I FORWARD -p tcp --dport 80 -m length --length 900:65535 -j DROP

please tell me if these rules worked for you and please tell me if you noticed anything slowing down or changed

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Disable upload and download, allow web browsing only.

Post by Lantis »

You can create the exact same effect using QOS.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

dragonmax
Posts: 7
Joined: Sun Jul 31, 2016 10:26 pm

Re: Disable upload and download, allow web browsing only.

Post by dragonmax »

Qos will slow down web browsing :?

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Disable upload and download, allow web browsing only.

Post by Lantis »

How will it do that?
Provide me proof and testing that someone should use your method rather than 2 simple QOS rules.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

dragonmax
Posts: 7
Joined: Sun Jul 31, 2016 10:26 pm

Re: Disable upload and download, allow web browsing only.

Post by dragonmax »

I uploaded a file to the router and tried to download it via browser and download speed was to slow, also when I try to download files from internet I get 1kb/s but browsing is working normal :D

b17gsr
Posts: 54
Joined: Tue Dec 08, 2015 10:58 pm
Location: Canada

Re: Disable upload and download, allow web browsing only.

Post by b17gsr »

I have my QOS configured to throttle Netflix and webpage access works a lot better.
Linksys WRT3200ACM on 1.10.x
D-Link DIR-890L/R access point with blah stock firmware
--- Retired ---
TP-LINK Archer C7 v2 on 1.9.2

Post Reply