2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Last updated at Posted at 2019-10-27

OpenVPNでのクライアントのIP固定化を行う設定について記載。

  • クライアント別の設定ディレクトリからの設定の読み込みを有効にする
$ vim /etc/openvpn/server.conf
    client-config-dir ccd
  • クライアント名ごとに下記のファイルを作成する
$ vim /etc/openvpn/ccd/client1

    # 実行コマンド クライアント固定IPアドレス サーバ固定IPアドレスの順に記載
    ifconfig-push 10.10.0.22 10.10.0.23


※ 同様にクライアントごとに同じ形式のファイルを用意する。

$ vim /etc/openvpn/ccd/client2

    ifconfig-push 10.10.0.26 10.10.0.27

systemctl start openvpn@server.service

etc

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?