[HOW TO] Import VPN to Ubuntu/ CentOS/ Fedora

Yesterday I created a VPS in di****o****. All is well.
Now my client access to VPN which was created in VPS to go out of company.

How to import vpn to ubuntu/ fedora client? Here I show you.

You must be get the client.ovpn file from your administrator.Do it follows:

1. Go your home directory (e.g. /home/rocky, create vpn folder)
2. copy the client.ovpn to /home/rocky/vpn
3. copy the file client.ovpn to client.ovpn.orig
4. create 4 files as below:
  • ca.crt: copy the text between <ca> </ca> from client.ovpn
  • client.crt: copy the text between <cert> </cert>
    from client.ovpn
  • client.key: copy the text between <key> </key>
    from client.ovpn
  • ta.key: copy the text between <tls-auth> </tls-auth>
    from client.ovpn
5. modify the client.ovpn file
Find ## --BEGIN RSA SIGNATURE-- , add the text below and save.

ca ca.crt
cert client.crt
key client.key
tls-auth ta.key

6. Go to Configure the Network Manager, click VPN tab and click Import and select client.ovpn file


7. Password with Certificates (TLS)
8. Click on Advanced -> TLS Authentication Tab
9. Key Direction must be set based on the key direction in your client.ovpn file
10. Open the client.ovpn file and search for "key-direction" and note the number that mine is key-direction 1


11. Put this number in the Key Direction field in the TLS Authentication Tab
12. Save & connect to enjoy :)

Refer: https://naveensnayak.wordpress.com/2013/03/04/ubuntu-openvpn-with-ovpn-file/

Thank you for reading this article, please a comment if you are interested.

Tiến Phan - R0039

Knowledge is Endless

Sharing for Success

0 nhận xét:

Post a Comment