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: from free_python_vpn.free_python_vpn 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.3.tar.gz (3.6 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.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: free_python_vpn-1.0.3.tar.gz
  • Upload date:
  • Size: 3.6 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.3.tar.gz
Algorithm Hash digest
SHA256 60892a96a518fed20f87d22a603fc3f6776830d12683bb1ff83da40acc40f52f
MD5 7367e5e4dba50f3e0777c7ff96e04c07
BLAKE2b-256 4ff98dd8d51f0a91ae9aa1708318c53333e10275c54e61ed1319fa8161c858fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for free_python_vpn-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6bef1a6f26483564e384e3265e6cb9a370b27fa850f9dc6be60dda17d99b1350
MD5 bd6466eb83fa1617d3aaac52b37596f2
BLAKE2b-256 2b2509fa5e710fe545141f93cc3a0508c456c2fe012b179aa102d9998a71e101

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