Server-client confiuration issue in opevpn
Posted: Mon Apr 13, 2020 10:58 am
Hi Team,
I'm new to openvpn and i want to set-up openvpn.
Here is my configuration and question:
Note : Both mobile have different internet connection . 1st one have JIO and 2nd have Airtel.
Now, in laptop where my Openvpn server is running I got IP address like 192.168.72.xx and the client means on PC i got 192.168.60.xx. also VPN tunnel is set on 10.8.0.0.
I got the pubilc IP of server by tying what is my IP in google. I added this in client.conf but not bale to connect to openvpn server.
Can anyone help me ? what is that I'm doing wrong here ??
port 1194
proto tcp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn//keys/server.crt
key /etc/openvpn/keys/server.key # This file should be kept secret
dh /etc/openvpn/keys/dh2048.pem
# Network topology
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 "
push "dhcp-option DNS 10.8.0.1"
client-to-client
keepalive 60 120
cipher AES-256-CBC # AES
auth SHA256
comp-lzo no
max-clients 100
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 6
client
dev tun
proto tcp
remote 150.129.140.205 1194 tcp-client
remote-random
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/gama.crt
key /etc/openvpn/keys/gama.key
remote-cert-tls server
cipher AES-256-CBC
auth SHA256
topology subnet
pull
comp-lzo no
route-delay 4
verb 6
Can anyone help me ? what is that I'm doing wrong here ??
Regards,
Hitendra Prajapati
I'm new to openvpn and i want to set-up openvpn.
Here is my configuration and question:
Note : Both mobile have different internet connection . 1st one have JIO and 2nd have Airtel.
Now, in laptop where my Openvpn server is running I got IP address like 192.168.72.xx and the client means on PC i got 192.168.60.xx. also VPN tunnel is set on 10.8.0.0.
I got the pubilc IP of server by tying what is my IP in google. I added this in client.conf but not bale to connect to openvpn server.
Can anyone help me ? what is that I'm doing wrong here ??
Server config
port 1194
proto tcp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn//keys/server.crt
key /etc/openvpn/keys/server.key # This file should be kept secret
dh /etc/openvpn/keys/dh2048.pem
# Network topology
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 "
push "dhcp-option DNS 10.8.0.1"
client-to-client
keepalive 60 120
cipher AES-256-CBC # AES
auth SHA256
comp-lzo no
max-clients 100
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 6
Client config
client
dev tun
proto tcp
remote 150.129.140.205 1194 tcp-client
remote-random
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/gama.crt
key /etc/openvpn/keys/gama.key
remote-cert-tls server
cipher AES-256-CBC
auth SHA256
topology subnet
pull
comp-lzo no
route-delay 4
verb 6
Can anyone help me ? what is that I'm doing wrong here ??
Regards,
Hitendra Prajapati