Jump to content
Not connected, Your IP: 3.16.137.229
Sign in to follow this  
zimbabwe

WireGuard/AmneziaWG server auto-switch script (for Linux)

Recommended Posts

Here is the script/systemd service that I use on my own home server:
https://github.com/zimbabwe303/WireGuard-rotate-AirVPN

By default it is set up for use with AmneziaWG but it is very easy to switch to the standard WireGuard client, just change the following variables at the beginning of wg_rotate.sh:

wg_quick=wg-quick
wg=wg
amnezia_ENABLE=0
Basically it is able to go through a randomized list of servers completely automatically, either by timer or by an external trigger (the trigger is a file created either manually or by a cronjob). It connects to a server, tests the connectivity and moves to another one if this one is down or unstable. You don't need to create the full list of servers yourself, just the short list with wildcards (e.g. AirVPN_wg/AirVPN_AT-*_UDP-47107*.conf).

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...