如何成功以openVPN從android手機連結Synology Diskstation

小弟杞人憂天,不知道哪一天PPTP, L2TP 會被大陸封鎖, 所以企圖以openVPN來連結Synology diskstation的VPN server, 當然PC是沒有問題的, 但是android 手機就沒有那麼容易做, 沒想到synology forum已經有人解決了這個問題,
以下是Petrovski 提出的解決方式, 小弟親自試了, 簡簡單單就成功了

小弟把它借花獻佛, 希望對某些人有幫助,

- Install VPN server package on your Diskstation using Synology's guide: http://www.synology.com/en-uk/support/t ... s/459#t3.2
- Enable the OpenVPN server using default settings
- Export the OpenVPN configuration provided by the button "Export configuration"
- Navigate to control panel > DSM Settings > tab "certificate" > "Export certificate"
- Make sure a Diskstation user has OpenVPN privileges (I created a dedicated user for this, but that's optional)
- Check the port forwarding and firewall settings on your DiskStation and router to make sure the UDP port 1194 is open
- From the exported OpenVPN configuration, open openvpn.ovpn with a text editor
- Edit the openvpn.ovpn file according to the readme.txt provided (remote settings, etc.)
- Edit openvpn.ovpn by adding three sections to it: <cert></cert>, <key></key>, <ca></ca>
- Unzip the archive with exported certificates from DSM settings
- Open the file server.crt with a text editor, copy the key found inside to the <cert> section in openvpn.ovpn
- Open the file ca.key with a text editor, copy the key found inside to the <key> section in openvpn.ovpn
- Open the file ca.crt with a text editor, copy the key found inside to the <ca> section in openvpn.ovpn
- The result will look like this:

<cert>
-----BEGIN CERTIFICATE-----
key string here
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN RSA PRIVATE KEY-----
key string here
-----END RSA PRIVATE KEY-----
</key>
<ca>
-----BEGIN CERTIFICATE-----
key string here
-----END CERTIFICATE-----
</ca>

- Save the file openvpn.ovpn
- Transfer it to the internal memory or sdcard of your phone
- Install the OpenVPN Connect app from the Google Play Store
- Open the app, touch the settings icon, choose Import > Import Profile from SD card
- Navigate to the file openvpn.ovpn, select it, touch Select
- Fill in the username and password of the Diskstation user with OpenVPN privileges (optionally save the password, less secure)
- Touch Connect
- You should now have a working VPN connection to your Diskstation!


祝大家新年快樂, 新年新成就
2015-02-27 20:57 發佈
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?