Yes, it is possible to configure both port forwarding and VPN ‘Road Warrior’ on OptiWize with SD-WAN active, even when using a private network. Here are the details:
- Port Forwarding: When you activate SD-WAN, you are assigned a public IP directly on the MikroTik. This public IP can be used to reach your MikroTik and configure port forwarding. You can do this manually or by using an OptiWize template. Here is an example of how to configure port forwarding:
/ip firewall nat add action=dst-nat chain=dstnat dst-address=<<IP-PUBBLICO-SDWAN>> protocol=tcp \ to-addresses=<<IP-PRIVATO>> to-ports=<<PORTA>> place-before=0For example, if the SD-WAN IP assigned was 45.18.183.20 and you wanted to reach a Linux server in SSH on your LAN with IP 192.168.88.2, you could add this rule:
/ip firewall nat add action=dst-nat chain=dstnat dst-address=45.18.183.20 protocol=tcp \ to-addresses=192.168.88.2 to-ports=22 place-before=0- VPN ‘Road Warrior’: The SD-WAN tunnels for each gateway are already configured as Wireguard in ‘Road Warrior’ mode. This means you can establish VPN connections on-demand from any location.
NB: SD-WAN over Wireguard reduces MTU packets to 1420, so the Wireguard server should have MTU set to 1340 for optimal operation.
In summary, the SD-WAN service can be regarded as an additional dedicated connection with a static IP, configured directly on the RouterBoard. This allows features such as port forwarding and NAT 1:1 to be used without any problems.