https://github.com/taext/reconnect_mullvad
Mullvad VPN periodic IP switcher (Linux CLI)
https://github.com/taext/reconnect_mullvad
Last synced: about 1 year ago
JSON representation
Mullvad VPN periodic IP switcher (Linux CLI)
- Host: GitHub
- URL: https://github.com/taext/reconnect_mullvad
- Owner: taext
- Created: 2024-07-01T21:47:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-10T13:24:47.000Z (almost 2 years ago)
- Last Synced: 2025-02-01T11:35:13.434Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## userguide v0.11
View the command-line help with option `-h`
```python
reconnect_mullvad -h
```
usage: reconnect_mullvad [-h] [-c COUNTRIES] [-a ALERT] time_in_minutes
Waits for n minutes and then changes Mullvad IP, optionally also country. Ctrl-C to
change now and restart timer, Ctrl-C twice to exit.
positional arguments:
time_in_minutes time to wait in minutes
options:
-h, --help show this help message and exit
-c COUNTRIES, --countries COUNTRIES
a string of 2-character country codes to randomly alternate
between
-a ALERT, --alert ALERT
alert n seconds before changing IP
###
reconnect_mullvad needs a wait time in minutes argument, here 15 minutes to renew IP (within same country):
```python
reconnect_mullvad 15
```
Connected to de-fra-wg-103 in Frankfurt, Germany
Your connection appears to be from: Germany, Frankfurt. IPv4: 146.70.117.240
Waiting 15 minutes ▣▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢ 3%
###
add `--countries` option to input a string of two-character country codes to alternate between:
```python
reconnect_mullvad 15 --countries "de se no"
```
Connected to se-sto-wg-014 in Stockholm, Sweden
Your connection appears to be from: Sweden, Stockholm. IPv4: 185.195.233.215
Waiting 15 minutes ▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢▢ 1%
###
### Note that Ctrl-C has been over-loaded 😃
While the timer is active and counting down, press Ctrl-C once to change IP now and reset timer, Ctrl-C twice to exit.