Community discussions

MikroTik App
 
serambca
just joined
Topic Author
Posts: 3
Joined: Mon Jun 24, 2024 5:58 pm

BGP over WireGuard with default routes

Wed Jul 24, 2024 1:03 pm

Good morning everyone,
I would like to share with you a problem that I am having with BGP.

The actual situation:
- SiteB and SiteC connect to Site A (main site) with WireGuard.
- Configured BGP well in 3 sites and in all the routes are propagated without any problem.
- All sites use mark-routing to use Wireguard connection. At this point the default gw in each site is 0.0.0.0/0 across the Wireguard Tunnel and Wireguard Table that I created. ALL TRAFFIC goes perfectly to main site (SiteA) and exit to Internet by default gw.

The new situation:
- In BGP I enabled that propagate source origin and showed well the new default gw in the SiteB and SIteC (appears in main table).
- The SiteB and SiteC goes to Internet across their default gw (their router) instead go to siteA and exit from it default gateway.

The default gw to Internet have distance 2.
The default gw to Internet across BGP is 200.

If I remove the default local gw. I lost all access, so it's necessary.

I know that I need to play with mark-routes but I can't found any solution. Any ideas to solve it?

Best regards!
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 21398
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: BGP over WireGuard with default routes

Wed Jul 24, 2024 10:27 pm

Dont understand what your are trying to express, perhaps a diagram??
 
serambca
just joined
Topic Author
Posts: 3
Joined: Mon Jun 24, 2024 5:58 pm

Re: BGP over WireGuard with default routes

Thu Jul 25, 2024 12:42 am

Good night,

I will upload a diagram as soon as possible!. Of course!.

While I do it, I want to clarify that I have working Wireguard. Over Wireguard, I need to mark routes that will out of my lan to go across the tunnel to the main Site and from there, go to Internet.
Well. When I configure BGP the routes are propagated fine in the 3 sites, but the default route fail if I propagate by BGP.

I need to configure better the mark of the packets to out in Site B and Site C to default gateway that stay in Site A.
I hope now is more clarify.
Best regads!!

Who is online

Users browsing this forum: No registered users and 4 guests