5
4

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.

Raspberry PiをVPNGateプロクシにする(Wifi APルータ)

Last updated at Posted at 2016-06-09

概要

環境

  • Raspberry Pi 3
  • (追記) Raspberry Pi 2 + USB WiFiドングル(RTL8188CUS)
    =>hostapdの差し替えとhostapd.confの書き換え その他参照

手順

  1. WifiAPを作る。[メモ] Raspberry Pi 3で、Wi-Fi アクセスポイントルータ

  2. sudo apt-get install openvpn -y

  3. ラズパイにログイン、スクリプト取得・起動。(セッションが切れてもいいように、byobuとか使うといいかも)

    コマンドラインにこぴぺ(初回)

wget https://raw.githubusercontent.com/mt08xx/vgc/master/vgc -O ./vgc
wget https://raw.githubusercontent.com/mt08xx/vgc/master/chif -O ./chif
chmod +x vgc chif
./chif tun0; ./vgc update; ./chif eth0


    ```txt:コマンドラインにこぴぺ(2回目以降)
./chif tun0; ./vgc update; ./chif eth0
  1. サーバ一覧が出てくるので、よさそうなやつの番号を覚えて、qを押して、番号入力[Enter]キー。
  2. VPNGateへうまくつながったら、WindowsとかスマホでらずぱいのAPに接続
  3. http://ifconfig.me などでIP確認 (% curl ifconfig.me)
  4. Ctrl+C で切断

その他

  • chifvgcに取り込もうかと..
  • PATHの通ったとこにコマンドをおくのがいいですね.
5
4
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
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?