Giter VIP home page Giter VIP logo

tytan-codes / simplevpn Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 8 KB

The VPN Connect script simplifies OpenVPN connections and offers a user-friendly interface

License: MIT License

Python 100.00%
collaborate communityexchange dashlane ghdesktop github github-codespaces github-pages jetbrains learn microsoft microsoftvisualstudio student-vscode termius travis openvpn openvpn-client openvpn-configuration openvpn-server tytancodes

simplevpn's Introduction

simpleVPN ๐Ÿš€

This script allows you to easily connect to and disconnect from an OpenVPN server using a YAML configuration file.

Prerequisites

  • Python 3.x installed
  • pyyaml module installed (pip install pyyaml)
  • sudo access to run the script with administrative privileges

Installation

  1. Clone the repository or download the vpn_connect.py script to your local machine.

  2. Install the required Python module:

    pip install pyyaml

Usage

  1. Create a YAML configuration file with the VPN details.

    Example YAML file (vpn_config.yml):

    USA:
      path to file: /home/user/vpns/usa.ovpn
      username: 118fcg0b10999b742796q7fd0551b77d
      password: 0000000021dbc5ce8b4555d92d6wsc5f7a38079836e7e986

    Make sure to replace the placeholders with the actual values of your VPN configuration.

  2. To connect to the VPN:

    python vpn.py vpn_config.yml connect

    The script will read the configuration file and establish the VPN connection in the background.

  3. To disconnect from the VPN:

    python vpn_connect.py disconnect

    The script will terminate the OpenVPN connection.

Troubleshooting

  • If you encounter any errors while running the script, please ensure that you have the necessary permissions to run the script with sudo.

  • Double-check your YAML configuration file for any formatting issues. Ensure that the indentation is done using tabs (not spaces) consistently.

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

simplevpn's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

simplevpn's Issues

Issue Template:

Issue Description

[Provide a brief description of the issue or feature request]

Expected Behavior

[Describe what you expected to happen]

Current Behavior

[Describe what is currently happening]

Steps to Reproduce (for bugs)

[Outline the steps to reproduce the issue]

  1. Step 1
  2. Step 2
  3. Step 3

Screenshots (if applicable)

[Add any relevant screenshots that can help illustrate the issue]

Environment (if applicable)

  • Operating System: [e.g., Windows 10, macOS Mojave]
  • Python Version: [e.g., Python 3.9.2]
  • Other relevant information about the environment

Additional Information

[Add any additional context, details, or notes about the issue]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.