it is easy to set the NAT when the WAN IP is static, but how to set it if it is dynamic? for example, the WAN is a PPPoE client.
thanks for any help.
chain=srcnat action=masquerade src-address=192.168.10.0/24 out-interface=ADSL
chain=dstnat to-address=[local ip] to-ports=[the local ip port] protocol=tcp dst-address=[the static WAN IP] dst-port=6911
0 chain=srcnat action=masquerade src-address=192.168.10.0/24 out-interface=ADSL
1 chain=dstnat action=dst-nat to-addresses=192.168.10.5 to-ports=22 protocol=tcp in-interface=ADSL dst-port=2222
2 chain=dstnat action=dst-nat to-addresses=192.168.10.5 to-ports=33600-33605 protocol=tcp in-interface=ADSL
dst-port=33600-33604
3 chain=dstnat action=dst-nat to-addresses=192.168.10.5 to-ports=1194 protocol=udp in-interface=ADSL dst-port=1194
add chain=prerouting dst-address=10.111.0.0/24 action=accept in-interface=Local
add chain=prerouting dst-address=10.112.0.0/24 action=accept in-interface=Local