Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Router: Linksys E2500 Firmware: DD-WRT v24-sp2 (03/25/13) big

What I want to do:

Conditionally forward incoming IPs for a range of ports to a specific DHCP address on my network.

What I've done:

  1. Tried enabling port forwarding from the GUI for the range but was unable to work in any additional logic to iptables to limit incoming connections.
  2. Tried disabling all port forwarding in the GUI (individual and range forwarding) and adding manual entries.

I thought the most promising attempt would be with the following logic, but it's still failing:

  • Disable all port forwarding in the GUI.
  • iptables -A FORWARD -p tcp -s $incoming_ip -d $dhcp_ip --dport 25025:25050 -j ACCEPT

I've looked over the DD-WRT forums endlessly, searched this site, and have been scouring the web and I can't figure this out. Please Help!

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.