How n4v33nb0s3/vpn_switcher works
This repository contains three successive standalone VPN-switcher scripts; the README presents V3 as the current service. Its user-to-result workflow configures NordVPN, selects a P2P country, disconnects and reconnects, verifies the connection, then waits to switch again or retries failures. The V3 implementation was not sampled, so its documented stages are mapped to its exact file path and those relationships cite the README. V1 and V2 are shown as earlier standalone implementations, not as dependencies of V3.
Main entry points: vpn_switcherV3.py V3 service loop · vpn_switcher.py Earlier switcher · vpn_switcherV2.py Torrent-aware switcher
Components 14
Current switcher
- V3 service loop
vpn_switcherV3.py - VPN configuration
vpn_switcherV3.py - P2P country list
vpn_switcherV3.py - Connection switch
vpn_switcherV3.py - Status verification
vpn_switcherV3.py - Switch timing
vpn_switcherV3.py - Failure backoff
vpn_switcherV3.py - Stop cleanup
vpn_switcherV3.py - Journal logging
vpn_switcherV3.py
Earlier scripts
- Earlier switcher
vpn_switcher.py - Torrent-aware switcher
vpn_switcherV2.py
External interfaces
- NordVPN CLI
- systemd journal
Other components
- Operator / systemd
Connections 15
- Operator / systemd → V3 service loop: starts service
README.md - V3 service loop → VPN configuration: configures
README.md - V3 service loop → P2P country list: selects country
README.md - V3 service loop → Connection switch: runs switch
README.md - Connection switch → NordVPN CLI: disconnects / connects
README.md - V3 service loop → Status verification: checks status
README.md - V3 service loop → Switch timing: waits to switch
README.md - V3 service loop → Failure backoff: backs off on failure
README.md - V3 service loop → Stop cleanup: disconnects on stop
README.md - V3 service loop → Journal logging: logs events
README.md - Journal logging → systemd journal: writes entries
README.md - Earlier switcher → NordVPN CLI: runs CLI commands
vpn_switcher.py - Torrent-aware switcher → NordVPN CLI: runs CLI commands
vpn_switcherV2.py - Earlier switcher → Earlier switcher: loops and retries
vpn_switcher.py - Torrent-aware switcher → Torrent-aware switcher: checks torrent activity
vpn_switcherV2.py