Skip to main content

Connect to VPN

Project description

Automated VPN rotation and connection system built in Python using WireGuard. The script dynamically switches VPN configurations, modifies routing rules for specific websites, and cycles through multiple VPN configs for anonymity and access control. It supports both targeted (website-specific) and global VPN connections, along with basic file manipulation for configuration handling.

Installation:

pip install free_python_vpn

1 - Install WireGuard (required): Download and install from: https://www.wireguard.com/install/ 2 - Ensure it is installed at:C:\Program Files\WireGuard\wireguard.exe 3 - Prepare VPN config files: Place .conf files inside a folder (e.g., configs/) 4 - Create an index file 5 - Import: import free_python_vpn

connect_vpn(websites, index_file, vpn_folder, temp_file, temp_file_name) Connects to a VPN while routing only specific websites through it.

free_python_vpn.connect_vpn( ["google.com", "youtube.com"], List of ips you want the vpn to work on "index.txt", .txt file to keep track of wich vpns used "vpn_folder", folder with .conf vpn files (get free from proton website: https://account.protonvpn.com/downloads) "temp.conf", Temporary .conf file "temp" Name of temporary .conf file )

connect_vpn_global(websites, index_file, vpn_folder, temp_file, temp_file_name) Connects to a VPN globally (all traffic routed).

free_python_vpn.connect_vpn_global( [], "index.txt", .txt file to keep track of wich vpns used "vpn_folder" folder with .conf vpn files (get free from proton website: https://account.protonvpn.com/downloads) "temp.conf", Temporary .conf file "temp" Name of temporary .conf file )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

free_python_vpn-1.0.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

free_python_vpn-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file free_python_vpn-1.0.0.tar.gz.

File metadata

  • Download URL: free_python_vpn-1.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for free_python_vpn-1.0.0.tar.gz
Algorithm Hash digest
SHA256 373c04bfaf9543b813d1a8bd85457ab99ea6f8e107f9c64d9ec0fccecadefead
MD5 caff6830abac30932ac65ab2f34c3875
BLAKE2b-256 2093024641f49e741fc9662e59aa90ca8413bae1bd7190b3f99bfc5749a5af7e

See more details on using hashes here.

File details

Details for the file free_python_vpn-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for free_python_vpn-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df8f4f747c79965645fe1362e5a6e56a9969865e74c118b0c5d36c6a728fdb5b
MD5 795281457f1b4160954fefefdfabcb86
BLAKE2b-256 8799c2057dd79b4014e5cb75258eb4299b14e2453ac65c70f338a9e4bbe8da10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page