Giter Site home page Giter Site logo

openvpn-docker-upatras's Introduction

OpenVPN-docker-UPatras

OpenVPN client connected to UPatras VPN.

Instructions

  • Download UPatras.ovpn from Mussa

  • Edit line auth-user-pass in UPatras.ovpn to auth-user-pass /etc/openvpn/creds.txt

  • Set your UPatras username and password in creds.txt as in the example file.

  • Build the docker image:

docker build . -t vpn_image
  • Run the container:
docker run -it --cap-add=NET_ADMIN --device /dev/net/tun --dns 150.140.129.30 --name openvpn_container vpn_image openvpn /etc/openvpn/UPatras.ovpn

If everything works as expected you should see Initialization Sequence Completed in your terminal.

To verify your container is connected to the internet, open a new terminal on the host machine and get your container's public IP:

docker exec -it openvpn_container curl ipinfo.io/ip && echo

Stop and remove one-liner may come in handy:

docker stop openvpn_container && docker rm openvpn_container

openvpn-docker-upatras's People

Contributors

orestispanago avatar

Watchers

 avatar  avatar

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.