Nat port forwarding - nonstatic public ip


#1

Is there a way to specify just to use the WAN port as the destination address when setting port forwarding rules? The guide I was following shows the following

PORT FORWARDING
Port forward involves translation of a port. Based on the example below traffic destined to 172.16.130.32 on tcp port 8080 will be translated to an IP of 192.168.130.32, port 80.
set nat destination rule 33 destination address ‘172.16.130.32’
set nat destination rule 33 destination port ‘8080’
set nat destination rule 33 inbound-interface ‘eth0’
set nat destination rule 33 protocol ‘tcp’
set nat destination rule 33 translation port ‘80’
set nat destination rule 33 translation address ‘192.168.130.32’

But that specifies a static public IP, for use at home I would not want to redo all the port forwarding rules when I was given a different IP. Is there a way to assign it to the wan address so it would dynamically change? I am use to pfsense where I would just specify to use that.


#2

try without this(just not set it on rule or delete):
set nat destination rule 33 destination address ‘172.16.130.32’