I have been successfully using a Raspberry Pi as a VPN, configured with Wireguard. The Pi was connected (wired) to a LAN port on a Cisco/Linksys EA3500 Wifi router. This routers WAN was connected to the sole ethernet port of the ISP-provided Hitron cable modem. I had to set up the port forwarding on the Cisco/Linksys router for the Wireguard service. The system worked well, albeit a little slow. For reasons of speed, I chose to replace the Cisco/Linksys wifi router with a Mikrotik hEX RB750Gr3 router. I was unprepared for the flexibility and programming options the Mikrotik offered. For example, the port forwarding in the Cisco/Linksys wifi router was simple: select the IP address of the Pi and set the desired port to forward. The Mikrotik router apparently needs to be set up with Firewall NAT and Filter rules. As a complete noob, I have been searching through this forum and found a couple of topics that seem related:
- Help port forwarding with Raspberry Pi OpenVPN PiVPN - #5 by successfulnothing
- Pivpn wireguard portforwarding problem
The current Filter rules for my Mikrotik are:
[code]
/ip firewall filter
action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
action=drop chain=input comment="defconf: drop all from WAN" in-interface=ether1
action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
action=accept chain=forward comment="defconf: accept established,related" connection-state=established,related
action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface=ether1
[//code]
Current NAT rules are:
[code]
/ip firewall nat
action=dst-nat chain=dstnat dst-address= dst-port=51820 protocol=udp to-addresses= to-ports=51820
[//code]
I still cannot contact the VPN outside of the LAN (nor inside, either). Have I misconfigured something? Are there filter/NAT rules that need to be added, changed, or removed? I would certainly appreciate an experience eye. Thank you in advance!