OpenWrt Forum Archive

Topic: Can I forward range of port via LuCI?

The content of this topic has been archived on 7 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,
Is there any option to forward range of ports?
Thanks.

I can only tell you how to do that via command line, add the section to your firewall like this:

vi /etc/config/firewall
config 'redirect'
    option 'name' 'ftp'
    option 'src' 'wan'
    option 'proto' 'tcp'
    option 'src_dport' '50000-50100'
    option 'dest_ip' '192.168.100.11'
    option 'dest_port' '50000-50100'
    option 'target' 'DNAT'
    option 'dest' 'lan'

Yes, enter the ports in the form "123-456"

The discussion might have continued from here.