作業日記@HatenaBlog

各種の作業メモ

OpenVPNを利用したPIA

PIA純正アプリ

インストール時にエラー発生

WARNING: By default, this session does not use any encryption whatsoever. Please do not use it to send sensitive data unless you are sure your connection is secure (by using an encryption plugin, for instance).
  1. PIA managerが非英語環境でインストールできない(ruby周りで異常)
    https://www.privateinternetaccess.com/forum/discussion/27085/ruby-exe-problem
  2. PIA公式サイトを確認するとOpenVPNを使うよう指示あり
    https://www.privateinternetaccess.com/pages/client-support/windows-openvpn
  3. 新たにOpenVPN GUIをDL、インストールした
    Installer (64-bit), Windows Vista and later
    https://swupdate.openvpn.org/community/releases/openvpn-install-2.3.18-I602-x86_64.exe
  4. PIA接続用のOpenVPN設定ファイルをDL、展開した(上記2.の公式サイト指示)
    https://www.privateinternetaccess.com/openvpn/openvpn.zip
  5. サクラエディタGrep置換を使って *.ovpn ファイル中のauth-user-pass の行を
    auth-user-pass auth.txt へ一括置換した
    https://faq.interlink.or.jp/faq2/View/wcDisplayContent.aspx?id=857
    http://proengineer.internous.co.jp/content/columnfeature/5438
  6. さらに *.ovpn ファイルの最下行に auth-nocache を追加した
    (置換前) disable-occ
    (置換後) disable-occ\nauth-nocache
    Grep置換は正規表現で実行すること(改行コードは LF )
  7. PIA接続用のユーザ名、パスワードを記述した auth.txt ファイルを作成した
  8. OpenVPNの設定フォルダに auth.txt をコピーした
    コピー先 C:\Program Files\OpenVPN\config\
  9. OpenVPNの設定フォルダに *.ovpn ほか全ファイルをコピーした
    コピー先 C:\Program Files\OpenVPN\config\
  10. 完了