If this works, I am buying a router for OpenWRT - prioritized wireguard tunnels?

Hello!​

Can the WireGuard client in OpenWRT prioritize using VPN tunnel #1 whenever it's online?​

For example:​

  • If VPN tunnel #1 goes offline, it fails over to VPN tunnel #2.​
  • But will it automatically switch back to VPN tunnel #1 when it's back online?​

Do I need a custom script to achieve this behavior?​
Maybe its possible with the 2x WAN ports?

**I'm considering purchasing a Flint 2 router, but only if this functionality is possible with OpenWRT. I don't want to order the router and risk losing even more money if it can't meet my needs.

I have allready tested this with dd-wrt and asuswrt-merlin and it didnt work.
Thank you for your assistance!

(To moderator: Yes, the last post was a missunderstanding i tought ddwrt and OpenWRT was same for a time, lol sorry). :face_with_peeking_eye:


EDIT:
I just orderd the Flint 2 router and will try it out when it deliveres.
The functions I needed in OpenWRT to be able to run a 24/7 VPN router was:
Failover = If #1 VPN tunnel goes offline use #2 tunnel.
Fallback = Prioritize #1 VPN tunnel, allways jump to #1 when it comes back online, even when using #2.
Killswitch = Never use normal internet connection, allways use VPN tunnels.

mwan3 package ?

2 Likes

Some people told me it needs custom script, are you sure it works with mwan3? :open_mouth:

I mean the router will have 2x WAN-ports maybe that could help it.. hmm

who are "some people" ?

if you're talking about physical ports, then no, it won't.

1 Like

I wrote about custom script - but also edited my answer to include mwan3 as an option

1 Like

A reference (for others):

1 Like

it's already at the bottom of the 1st post in this thread (I missed it too).

2 Likes

Yea, I saw it's been edited too, but it links to _bernd's post. Thanks.

1 Like

Oh, amazing. Then i am trusting you guys and ordering the Flint 2 in Europe :wink: couldnt find a more priceworthy alternative in Europe with at least 1GB ram.

I tought 2x physical WAN ports would help solve this issue even easier but you are saying it will not help i just need to use mwan3?

Thank you very much and sorry for all missunderstand if it has been any.

yeah mwan3 works just fine with both physical ports or virtual (like wireguard)

1 Like

T-56 from wifilinks in NL.

1 Like

Thank you but I just orderd the GL.iNet GL-MT6000 (Flint 2) -_-

I also edited my first post with this:
The functions I needed in OpenWRT to be able to run a 24/7 VPN router was:
Failover = If #1 VPN tunnel goes offline use #2 tunnel.
Fallback = Prioritize #1 VPN tunnel, allways jump to #1 when it comes back online, even when using #2.
Killswitch = Never use normal internet connection, allways use VPN tunnels.

Yeah, that's like 2.5x the money, for an 8GB eMMC.
Flashing is easier though.

1 Like

I know but its to late now, what can I do. Just let it burn. :joy:
Its also a bigger heat sink in the price :stuck_out_tongue_winking_eye:

I will let you guys know when I get it, thank you all!

Cancel ? :slight_smile:

1 Like

No, its ok. Maybe more people are using flint2 so I can get more help, i am a newbie so if its even 5min easier its good.

Wish you all the best, bye for now.

1 Like