_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW1000 Series User Manual
Issue: 2.3
Page 315 of 463
uci set firewall.@zone[1].masq=1
uci set firewall.@zone[1].mtu_fix=1
uci set firewall.@zone[1].log=1
uci set firewall.@zone[1].log_limit=5
31.3.3
Inter-zone forwarding
By default, all inter-zone instances are named ‘forwarding’; instances are identified by
@forwarding
then the forwarding position in the package as a number. For example, for
the first forwarding in the package using UCI:
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src=lan
Or using package options:
config forwarding
option src 'lan'
To enable forwarding of traffic from WAN to LAN, enter:
uci add firewall forwarding
uci set firewall.@forwarding[1].dest=wan
uci set firewall.@forwarding[1].src=lan
31.3.4
Firewall port forwards
By default, all port forward instances are named ‘redirect’; instances are identified by
@redirect
then the redirect position in the package as a number. For example, for the
first redirect in the package using UCI:
firewall.@redirect[0]=redirect
firewall.@redirect[0].name=Forward
Or using package options:
config redirect
option name 'Forward'
To set port forwarding rules, enter:
uci add firewall redirect
uci set firewall.@redirect[1].name=Forward
uci set firewall.@redirect[1].proto=tcp
uci set firewall.@redirect[1].src=wan # <- zone names