Skip to content

Script to rotate between Mullvad WireGuard servers at configurable intervals

License

Notifications You must be signed in to change notification settings

Evso1/MullvadVPN_Switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MullvadVPN_Switch

Automatically rotate between Mullvad WireGuard servers at configurable intervals. Perfect for advanced privacy users who want to avoid log-term IP association or simply test different exit locations.

#Features:

  • Connects to a new random Mullvad server every X seconds
  • Supports filtering: exclude specific countries
  • Logs connections with timestamp, public IP, and server name
  • Prevents multiple instances from running simultaneously
  • Gracefully handles 'Ctrl+C' shutdown and reconnects cleanly
  • Fetches real public IP after each connection

#Requirements:

  • Python 3.x
  • 'requests' library ('pip install requests')
  • Mullvad CLI installed and configured

#Usage:

  • Run normally with 'python3 mullvadSwitch.py'

  • Run with custom interval in seconds 'python3 mullvadSwitch.py --duration {X}'

  • Run with switch helper

    • ./runMullvad.sh start
    • ./runMullvad.sh stop
    • ./runMullvad.sh help

#Logging:

  • Logs are written in weekly files.
  • Error logs are stored in error.log
  • Full Mullvad Server list can be extracted by uncommenting the appropriate section in 'mullvadSwitch.py'.

#Debugging Tips:

About

Script to rotate between Mullvad WireGuard servers at configurable intervals

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published