Giter VIP home page Giter VIP logo

docker-openvpn's Introduction

DockerでOpenVPNを作る

これは何

OpenVPNのコンテナを作るDockerfileです。以下のような動作をします。

  • 初回起動時にeasy-rsaでCA証明書とサーバー証明書を作成
  • デフォルトでは1194/udpで待ち受けるOpenVPNを起動
  • 都度スクリプト経由でクライアント用証明書とconfigサンプルを生成
    • configサンプルはOpenVPN Connectで使う前提です。他のクライアントでは設定が不足している可能性があります。

インストール方法

docker-compose用ファイルを用意してあるため、それを実行してください。

# 適当な作業フォルダを作成
mkdir ~/openvpn
cd ~/openvpn
# compose用ファイルをダウンロードして適宜編集
curl --output docker-compose.yml https://raw.githubusercontent.com/maeda577/docker-openvpn/main/docker-compose.yml

# コンテナ群の起動
docker-compose up --detach
# クライアント用証明書の生成とサンプルconfig表示
docker-compose exec openvpn generate-client.sh <任意のクライアント名(例: iphone)>

docker-openvpn's People

Contributors

maeda577 avatar

Watchers

 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.