Firewall
Port forwarding rules
LR54 User Guide
855
2. At the command line, type
config
to enter configuration mode:
> config
(config)>
3. At the config prompt, type:
(config)> add firewall dnat end
(config firewall dnat 0)>
Port forwarding rules are enabled by default. To disable the rule:
(config firewall dnat 0)> enable false
(config firewall dnat 0)>
4. Set the network interface for the rule.
(config firewall dnat 0)> interface
(config firewall dnat 0)>
Network connections will only be forwarded if their destination address matches the IP
address of this network interface.
a. Use the
?
to determine available interfaces:
(config firewall dnat 0)> interface ?
Interface: Network connections will only be forwarded if their
destination address matches the IP address of this network interface.
Format:
defaultip
defaultlinklocal
lan1
lan_hotspot
loopback
wan1
wwan
Current value:
(config firewall dnat 0)> interface
b. Set the interface. For example:
(config firewall dnat 0)> interface wan1
(config firewall dnat 0)>
5. Set the IP version. Allowed values are
ipv4
and
ipv6
. The default is
ipv4
.
(config firewall dnat 0)> ip_version ipv6
(config firewall dnat 0)>
6. Set the public-facing port number that network connections must use for their traffic to be
forwarded.