[luci] Port forwarding

forum-2008 at email.de forum-2008 at email.de
Fr Aug 15 20:19:18 CEST 2008


If I add a Port forwarding rule I get the following error if I restart the UCI firewall. I would like to forward port 81 to port 80 on the router.

##### /etc/init.d/firewall restart

Loading defaults
Loading synflood protection
Loading zones
Loading rules
Loading forwarding
Loading redirects
iptables v1.4.0: Unknown arg `--dport'
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.4.0: Unknown arg `--dport'
Try `iptables -h' or 'iptables --help' for more information.
Loading includes


##### /etc/config/firewall

config 'defaults'
        option 'syn_flood' '1'
        option 'input' 'DROP'
        option 'output' 'ACCEPT'
        option 'forward' 'DROP'

config 'zone'
        option 'name' 'lan'
        option 'input' 'ACCEPT'
        option 'output' 'ACCEPT'
        option 'forward' 'DROP'

config 'zone'
        option 'name' 'wan'
        option 'input' 'DROP'
        option 'output' 'ACCEPT'
        option 'forward' 'DROP'
        option 'masq' '1'

config 'forwarding'
        option 'src' 'lan'
        option 'dest' 'wan'

config 'redirect'
        option 'src' 'wan'
        option '_name' 'HTTP'
        option 'proto' 'tcp'
        option 'src_dport' '81'
        option 'dest_ip' '192.168.178.3'
        option 'dest_port' '80'


More information about the luci mailing list