Hi have installed openvpn on a centos 7 vps. its working fine from android client. but when i tried to connect from a windows 7 client, its all ok, connected,ip changed.but after few seconds, ip is back to real one. i suffer this problem from last 2-3months. i tried so many solution. but nothing worked. my vpn is ok. while i tried from android, its connected and ip changed to vpn. But problem is in windows 7 gui.
here is server.conf
Code: Select all
port 17600
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
tls-auth ta.key 0
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10000000 120000000
cipher AES-256-CBC
comp-lzo
user nobody
group nobody
persist-key
persist-tun
Code: Select all
client
dev tun
proto udp
sndbuf 0
rcvbuf 0
remote 104.152.190.126 17600
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
comp-lzo
setenv opt block-outside-dns
key-direction 1
verb 3
redirect-gateway def1
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<cert>
</cert>
<key>
</key>
<tls-auth>
</tls-auth>