How to Configure OpenVPN Client in Centos 7


Package :-

yum install openvpn -y

1. Create an OVPN file in Client Machine :-

vim client.ovpn
client
dev tun
proto udp
remote 13.232.251.207 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
tls-auth ta.key 1
cipher AES-256-CBC
#comp-lzo
verb 3
<ca>
copy and past here ca.crt file from server side
</ca>
<cert>
copy and past here client.crt from server side.
</cert>
<key>
copu and past here client.key from server side.
</key>
<tls-auth
copy and past here ta.key from server side.
</tls-auth>

2. Also Download form Server side these files ca.crt client.key client.crt and ta.key :-
vim client.ovpn
ca ca.crt
ca ca.crt
cert client.crt
key client.key
tls-auth ta.key 1

Note :- if you don't Use 1 first step so please Use 2 Step and download there files Same location which you run client.ovpn file.

Check Your Internet IP Address in Google.

3. Run the Command in Client Machine :-
openvpn --config client.ovpn

Verity the ip OpenVPN Server IP Address in Google.




4. If you want to Run this command in Backgroup :-
nohup openvpn --config client.ovpn &


How to Configure OpenVPN Client in Centos 7 How to Configure OpenVPN Client in Centos 7 Reviewed by Unknown on September 10, 2018 Rating: 5

No comments:

Scribe

http://feeds.feedburner.com/LinuxAndAws
Powered by Blogger.
X

Get Updates On

Linux Tutorial

AWS Tutorial

Devops Tutorial

We are going to send you our resources for free. To collect your copy at first, join our mailing list. So don't miss any updates, stay connected!