I have installed a VPN server on my VPS and this is the server.conf file:
Code: Select all
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
I have noticed that the IP I get from OpenVPN is internal (10.x.x.x), even though I connect to an real IP address (VPS server).
If needed, here is the client conf file:
Code: Select all
client
dev tun
proto udp
remote x.x.x.x (example) 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
comp-lzo
verb 3
redirect-gateway def1
Thank you.