Vpn already connected with two mikrotik v7, but how to browse the internet with the public ip on the opposite side?

Hello friends! Despite being a beginner in vpn I already managed to connect two mikrotiks v7 with wireguard, cloud ddns activated, static routing and two different public ips on each mikrotik.
Everything is working normally with sharing local networks and folders, but when browsing the internet I would like to reverse the public ips.
Example: Mikrotik-1 in Brazil browsing internet with public ip of Mikrotik-2 in Portugal and vice versa. Can anyone give me a tip? I don’t have much experience but something tells me that
the solution may be in the routing table or PBR.

Basic summary of my vpn:
Mikrotik-1 local address 10.1.1.1/24 wireguard route 10.0.0.1/30
Mikrotik-2 local address 10.22.22.1/24 wireguard route 10.0.0.2/30

Any advice or help would be appreciated, thank you :slight_smile:

The worst case scenario is that you need two different wireguard interfaces… but only if we run into an overlap scenario.
So in summary you want lets say R1 (client) to handshake with R2 (server).
Then all users on R1 should go out R2 for internet and all R2 users should go out R1 for internet?

Seems like a simple enough case where each puts allowed IPs=0.0.0.0/0 ( only R1 settings need keep alive )
In Router 1 we need ip routes back for R2 subnets with interface=wg interface table=main
In Router2 we need ip routes back for R1 subnets with interface=wg interface table=main

Add at each router WG interface as a LAN llst member.
a. to ensure they can get DNS through the router they are going out
(input chain typical rules allow all LAN, or allow port 53 to LAN)
b. to ensure they get get out forward chain to WAN.
(forward chain allow all LAN to WAN).

++++++++++++++++++
As for routing typically without mangling just make a table for wg traffic, make an additional route for wg traffic (interface=wg) with the new table
and add a routing rule for that src-address=subnet action=lookup table=newtable.

https://forum.mikrotik.com/viewtopic.php?t=182340

Perfect explanation thank you very much!