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.1.tar.gz (3.5 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.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: free_python_vpn-1.0.1.tar.gz
  • Upload date:
  • Size: 3.5 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.1.tar.gz
Algorithm Hash digest
SHA256 f7ba1a39c4346097cef48d2ad527c89bfe14f0954bd1f2291a3c91f71ac68d98
MD5 e122d755ec9b6c88297c3e7e4901a1fd
BLAKE2b-256 e9189d8e04f6e27f8e479a06616d8364362ecaf0b8415cbfede9c1aa6e9fa578

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for free_python_vpn-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b12323e6fd2e248b58e0a88f3ea8a695b6667e9865ed07a850dab9d7118bfb1
MD5 ad9fe66c7ded7d475e71849decefdc1f
BLAKE2b-256 81b774942abf17e2ada132147c1088ccf9df0fce76c46766253e498666c2eaae

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