LoginSignup
4
8

More than 5 years have passed since last update.

OpenVPNでのクライアントのIP固定化

Last updated at Posted at 2018-03-18

OpenVPNでのクライアントのIP固定化

  1. クライアント別の設定ファイルを読み込むディレクトリを指定
$ view /etc/openvpn/server.conf
client-config-dir ccd

※ 上記の設定の場合 /etc/openvpn/ccd配下にあるファイルを読み込みます。
  1. クライアント名ごとに下記のファイルを作成する
$ view /etc/openvpn/ccd/client_name
ifconfig-push 10.10.0.22 10.10.0.23

※ コマンド クライアントのアドレス サーバのアドレス の順に記載する
※ アドレスは4づつずらす、つまり、次のクライアントに割り当てるIPアドレスは10.10.0.26

4
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
8