limit TCP/UDP port used on outgoing masquarading/nat

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking
Author Message
hhandresen
DD-WRT Novice


Joined: 03 Sep 2012
Posts: 1

PostPosted: Thu May 16, 2013 12:24    Post subject: limit TCP/UDP port used on outgoing masquarading/nat Reply with quote
Hi,

For some reason Indian ISP do not allow me to use port over ~40000, so how do I limit the port used for TCP/UDP to eg. 5000-25000 ?

There is a menu option i web-gui administration/management

IP-Filter....

TCP Congestion Control
Maximum Ports (Default: 4096, Range: 256 - 4096)
TCP Timeout (in seconds) (Default: 3600, Range: 1 - 86400)
UDP Timeout (in seconds) (Default: 120, Range: 1 - 86400)

But I'm not able to set UDP port any were.

Please advice.


-------

Something like this

http://www.linuxtopia.org/Linux_Firewall_iptables/x4401.html
Sponsor
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 8034

PostPosted: Thu May 16, 2013 22:16    Post subject: Reply with quote
The ISP limits which ports, the source ports or destination ports?

Those settings in the GUI are NOT for controlling the port range. They’re for controlling the QUANTITY of connections allowed, and HOW LONG before they should be considered orphaned. It's primarily used by ppl heavily into torrents, which tend to create many connections that end up orphaned, and thus drain router resources.

Beware, you can only control source ports, not destination ports (which is why I asked). You can add the necessary iptables rules directly in the GUI using the router's firewall script. You can test it beforehand using telnet and the command line.

Frankly, I suspect the ISP is limiting INBOUND ports, iow, which ports you can use for remote access back to your network. At least that would make more sense. And if that's the case, you simply don't use those ports for your port forwarding.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum