Buffalo Forums

Products => Storage => Topic started by: buff a muff on August 23, 2013, 04:51:36 PM

Title: blocking an outbound port range
Post by: buff a muff on August 23, 2013, 04:51:36 PM
HELLLOOOO,

On WHP 300N , using the professional DD-WRT config, how can I block an outbound LAN to WAN port range like 444-65535 ??/ 

I tried but have not been able to configure it for this need. Is there a proprietary code in the professional software that disallows this ??
Title: Re: blocking an outbound port range
Post by: buff a muff on October 26, 2013, 05:02:50 PM
Still need help here !!
Title: Re: blocking an outbound port range
Post by: joma90 on October 27, 2013, 08:58:31 PM
As far as i know i don't remember seeing anything that has to do with port blocking on the UI in the routers. You have to do commands to do port blocking.

The command you will do is "iptables -I FORWARD 1 -p tcp --dport 444:65535 -j DROP"

Reference:
http://www.dd-wrt.com/wiki/index.php/Port_Blocking
Title: Re: blocking an outbound port range
Post by: buff a muff on November 01, 2013, 12:00:03 PM
Quote from: joma90 on October 27, 2013, 08:58:31 PM
As far as i know i don't remember seeing anything that has to do with port blocking on the UI in the routers. You have to do commands to do port blocking.

The command you will do is "iptables -I FORWARD 1 -p tcp --dport 444:65535 -j DROP"

Reference:
http://www.dd-wrt.com/wiki/index.php/Port_Blocking

Thanks so much for the response. A couple of questions come up.
1) Instead of FORWARD, could OUTPUT be used ?
2) Instead of --dport, could --sport be used ? Since the ports I seek to block are LAN to WAN.
3) If wanting to drop a range of udp ports say 444:65535; would the comand be; 
iptables -I FORWARD 2 -p udp --dport 444:65535 -j DROP ? 
Title: Re: blocking an outbound port range
Post by: joma90 on November 01, 2013, 09:44:14 PM
Thats a question i wouldn't be able to answer as i am not that technical in DD-WRT. I would post on the DD-WRT forum that question. Gui wise i can help you. command wise i wont be much help.
Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 65 (show)
Files included: 27 - 1055KB. (show)
Memory used: 733KB.
Tokens: post-login.
Queries used: 10.

[Show Queries]