LoginSignup
8
8

More than 5 years have passed since last update.

Ubuntu 12.04にOpenVPNクライアント環境を構築する

Posted at

普通はLinuxをVPNサーバにすると思いますが、たまにクライアントにしたくなるのでメモ。
やっぱりUbuntuは色々パッケージがあるので楽ですね。

1.インストール

Bash
$ sudo apt-get install openvpn
$ sudo apt-get install tunneldigger

2.設定

Bash
$ sudo cp -p /usr/share/doc/openvpn/examples/sample-config-files/client.conf /etc/openvpn/
$ sudo vi /etc/openvpn/client.conf
  # 以下のように修正する。
  remote vpn.server.example.com 1194
  cert user.crt
  key user.key

  # 以下の行をコメントアウトする
  ns-cert-type server
  tls-auth ta.key 1

3.起動

Bash
$ sudo /etc/init.d/openvpn start

参考

8
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
8
8