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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file free_python_vpn-1.0.2.tar.gz.
File metadata
- Download URL: free_python_vpn-1.0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bda4420c97f6ab57f7ae77f81b543759217659be38e3ba1b3dd05dbbd59a1b6
|
|
| MD5 |
1d57ae53762d5093f3772a38a523c5a4
|
|
| BLAKE2b-256 |
b48620e0d66cd17559f59b7da5c526b8c7d89e333ca25e8d6d74452d450ee3ed
|
File details
Details for the file free_python_vpn-1.0.2-py3-none-any.whl.
File metadata
- Download URL: free_python_vpn-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
525afa34e4251b50a4ee1e5c4bad0389df86581cc3cfe4646ee91e043726bfdf
|
|
| MD5 |
14d41491d4ce766e876c6fc69db80de2
|
|
| BLAKE2b-256 |
588ce850f7b1b20af95a5b145e822c92a4939c8663449b2d03133b71f7673576
|