Skip to content

Instantly share code, notes, and snippets.

@chhetripradeep
Last active January 29, 2018 11:26
Show Gist options
  • Save chhetripradeep/70ecc2d8c9b30481b0831f87a9bf00d0 to your computer and use it in GitHub Desktop.
Save chhetripradeep/70ecc2d8c9b30481b0831f87a9bf00d0 to your computer and use it in GitHub Desktop.
OpenVPN Instructions

Windows

  1. Download & install the Windows OpenVPN Client

  2. Extract the configuration (sent to you over email) inside C:\Program Files\OpenVPN\config directory

  3. Run Command Prompt as Administrator.

  4. Execute following command in the prompt

    C:\Program Files\TAP-Windows\bin\addtap.bat
  5. Run OpenVPN Client as Administrator.

  6. There will be a small icon on botton right of your screen. Right-Click the icon and connect to the pentesting environment.

Linux

  1. Install openvpn package

    sudo apt-get install openvpn

    or

    sudo yum install openvpn
  2. Extract the configuration (sent to you over email) inside /etc/openvpn directory using following command.

    sudo tar xvzf file.tar.gz  -C /etc/openvpn
  3. Edit /etc/default/openvpn. Uncomment this:

    AUTOSTART="all"
  4. Run the following command to apply the above configuration change.

    sudo systemctl daemon-reload
  5. Restart the openvpn service. Depending upon the init system you are using, either of this should work.

    sudo service openvpn restart

    or

    sudo systemctl restart openvpn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment