I have setup a site2site vpn with wireguard and everything work smoothly. Both side can ping and all the traffic is routed without problem.
I want to route my internet traffic from a device in my LAN through a wireguard site2site VPN tunnel without success. I want that this device will use the remote gateway internet connection instead of my local LAN
My actual configuration is:
Router Mikrotik (Wireguard server): 192.168.1.1 / (WG address 172.16.11.1)
Wireguard peer in my remote site: WG 172.16.11.254 - 10.1.0.254 (Remote LAN address)
Device to route is: 192.168.1.100
On the WG peer I add the masquerade rule (enp0s3 is my ethernet card with internet outbound capabilities):
I configured a mangle to mark my traffic from 192.168.1.100 and a route policy that take this traffic on a secondary route table and route it through the interface of the tunnel. I can ping my remote devices, but the 0.0.0.0/0 traffic is not routed into the tunnel (the traceroute command output is attached)
Could you help me please?
Thanks
You’d need to convert rules to iptables, which is not difficult, because it’s pretty much the same thing (RouterOS is based on Linux), only syntax is slightly different.