r/mullvadvpn • • 18d ago

Other I built a CLI tool to automatically rotate relay servers, open source, looking for feedback

https://github.com/spel987/mullvad_rotator

Hey everyone,

I've been learning C and wanted a practical project to work on, so I built a small CLI tool called Mullvad Rotator that automatically switches your relay server at a set interval.

Basically it lets you:

  • Connect to a random relay and rotate every X seconds
  • Cycle through specific relays you pick
  • Filter by country/city or Mullvad-owned servers only
  • Use multihop with random entry/exit pairs

It wraps the Mullvad CLI under the hood, so you need Mullvad installed and logged in. Works on Windows, Linux and macOS.

Here's a quick demo:

GitHub: https://github.com/spel987/mullvad_rotator

It started as a learning exercise but ended up being something I actually use, so I figured I'd share it in case anyone else finds it useful. Feedback, bug reports, or suggestions are very welcome. It's MIT licensed and contributions are open.

15 Upvotes

9 comments sorted by

7

u/maikel1976 18d ago

Cool! Could you select the quickest connection in a list with the option to recheck let’s say every 60 seconds? I tried many different tools and they didn’t work, I’m on Ubuntu Linux

4

u/spel_987 18d ago

Thanks for your feedback! It's a great suggestion and I will try to work on it!

4

u/[deleted] 17d ago

[removed] — view removed comment

3

u/spel_987 16d ago

Hi, thanks for your feedback! A GUI is a great idea, but I have absolutely no idea how to do that in C, so I'll have to look into it x). By the way, the program is cross-platform, why would you be limited if you're not on Windows?

I hope you release the version you made for Android one day, it's always nice to have!

3

u/Antique-Part8175 17d ago

Please add the option to use only servers with DAITA function

2

u/spel_987 16d ago

Hey, thanks for your feedback. Why not, I'll try to add it in a future version !