NOTE: How to connect to OpenVPN with Linux
簡單直白的說,就是在linux上純指令執行vpn XD
基於抽票需求(演唱會,在日本;一個喜歡添加諸多限制的島國),會擋境外IP Address的情況下,
只剩下"翻牆"一途了
Step 1: Download configuration from VPN Gate
首先,前往VPN Gate下載configuration(副檔名.ovpn)
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
網頁下拉之後,OpenVPN
那一行,點選需求的國家vpn下載,檔案範例如下:
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
Step 2: Command line
先安裝openvpn
Command: sudo apt install openvpn
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
請在執行sudo su
,su
指令或是切換到root
帳號後再使用以下指令,不然會跳出權限不足
在.ovpn
檔案的相同路徑下執行以下指令:
openvpn --config <filename>.ovpn
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
只要看到以下reply message,就表示成功連線
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
使用指令ip addr
也可以發現,多一組for vpn的虛擬網卡
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
如要停止,按下Ctrl+c
即可
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
Ref.
VPN Gate