News:

RAID is not a replacement for a backup! Here's why.

Main Menu

blocking an outbound port range

Started by buff a muff, August 23, 2013, 04:51:36 PM

Previous topic - Next topic

buff a muff

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 ??

buff a muff


joma90

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
Units I own: TS-XL, TS-WXL, LS-WVL, TS-RXL,  TS5400, TS-RVHL,

I don't work for Buffalo but i do love there products enough to help people

buff a muff

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 ? 

joma90

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.
Units I own: TS-XL, TS-WXL, LS-WVL, TS-RXL,  TS5400, TS-RVHL,

I don't work for Buffalo but i do love there products enough to help people

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 5: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default), StopForumSpam.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 200 (show)
Files included: 35 - 1354KB. (show)
Memory used: 973KB.
Tokens: post-login.
Queries used: 15.

[Show Queries]