Hi! I have set up a OpenVPN server on a VPS running CentOS 6.5 x64.
I can connect to the server, but I cannot access any website after.
Here is my
client config:
client
dev tun
proto udp
remote 89.33.242.15 53
resolv-retry infinite
nobind
<ca>
-----BEGIN CERTIFICATE-----
LETTERS AND NUMBERS HERE...
-----END CERTIFICATE-----
</ca>
<key>
-----BEGIN PRIVATE KEY-----
LETTERS AND NUMBERS HERE AGAIN...
-----END PRIVATE KEY-----
</key>
<cert>
Certificate:
BLAH BLAH BLAH
-----BEGIN CERTIFICATE-----
LETTERS AND WORDS. GO ON...
-----END CERTIFICATE-----
</cert>
tun-mtu 1500
persist-key
persist-tun
persist-remote-ip
redirect-gateway
route-delay 2
pull
fast-io
verb 3
Server config:
local 89.33.242.15
port 53
proto udp
mode server
### network options
dev tun
tun-mtu 1500
push "tun-mtu 1500"
tun-mtu-extra 32
fragment 1300
mssfix
### Certificate and key files
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "explicit-exit-notify 3"
### (optional) compression (Can be slow)
comp-lzo no
push "comp-lzo no"
fast-io
keepalive 30 180
persist-key
persist-tun
persist-remote-ip
ifconfig-pool-persist ipp.txt
log-append /var/log/openvpn/openvpn.log
status /var/log/openvpn-status.log
verb 3
Any response would be appreciated. This was my first experience when I tried to install/configure OpenVPN. 😃
Best Regards,
Cristian Silaghi