【OpenVPN】クライアントのIPを固定化する

サーバ側の設定
クライアントの設定ファイルを有効にする設定。
/etc/openvpn/server.conf
1 |
client-config-dir /etc/openvpn/ccd |
クライアント側の設定
/etc/openvpn/ccd/compute
tunのパターン。一つ目はクライアント、2つ目はサーバ。
1 |
ifconfig-push 10.8.0.1 10.8.0.2 |