GithubHelp home page GithubHelp logo

docker-openvpn-dual's Introduction

docker openvpn dual stack (4to6, 6to4, ipv6 nat support)

What

I have some machines under three types of network environment.

  • Home: broadband with an ipv4 private address and an ipv6 (public) address
  • Office: only ipv4 private address
  • Cloud: both ipv4 public address and ipv6 (public) address

How can I access home from office?

We can deploy an openvpn server on cloud machine as a jumper.

How To

1. clone source code

git clone https://github.com/ssst0n3/docker-openvpn-dual.git
cd docker-openvpn-dual

2. setup openvpn

docker build -t openvpn .
docker run --rm -v openvpn-ipv6-data:/etc/openvpn openvpn setup

3. run openvpn server

docker run --net host --privileged -tid -v openvpn-ipv6-data:/etc/openvpn --name openvpn --restart always openvpn run

4. generate client config

CLIENTNAME=clientname
SERVER_ADDRESS=1.1.1.1
PASS=password
docker run --rm -v openvpn-ipv6-data:/etc/openvpn openvpn client $CLIENTNAME $SERVER_ADDRESS $PASS> $CLIENTNAME.ovpn

tested on

Reference

docker-openvpn-dual's People

Contributors

ssst0n3 avatar

Watchers

 avatar

docker-openvpn-dual's Issues

use AES-256-GCM instead of AES-256-CBC

2023-12-18 03:58:34 jumper-openvpn_st0n3_yoga920_kali_20231218/139.159.170.10:58062 PUSH: No common cipher between server and client. Server data-ciphers: 'AES-256-CBC', client supported ciphers 'AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305'

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.