first of all I'm not expert!
I have a VPS (Windows server 2008 on hetzner Datacenter) and in my VPS server I've configured an OpenVPN server. My clients can connect to the server but their traffic don't go through OpenVPN server and their public IP address is still their ISP public address.
I've added these directive one by one, but nothing worked:
Code: Select all
#no success with this:
push "redirect-gateway def1"
#and no success with this:
push "redirect-gateway local def1"
#and no success with this:
push "dhcp-option DNS 10.10.10.1"
#and no success with this:
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 4.2.2.4"
push "route 10.1.1.0 255.255.255.0"
here is server configuration:
Code: Select all
dev-node "VPNServer"
mode server
port 443
proto tcp4-server
dev tun
tls-server
tls-auth "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ta.key" 0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\VPNServer.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\VPNServer.key"
dh "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\dh2048.pem"
server 10.10.10.0 255.255.255.0
client-to-client
keepalive 10 120
cipher AES-128-CBC
persist-key
persist-tun
client-config-dir "C:\\Program Files\\OpenVPN\\config"
verb 3
route-delay 5
route-method exe
Code: Select all
tls-client
tls-auth "C:\\Program Files\\OpenVPN\\config\\ta.key" 1
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\client1.crt"
key "C:\\Program Files\\OpenVPN\\config\\client1.key"
client
dev tun
proto tcp
remote MY_SERVER_PUBLIC_IP_ADDRESS
resolv-retry infinite
remote-random
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ping 15
ping-restart 0
ping-timer-rem
reneg-sec 0
remote-cert-tls server
verb 3
pull
fast-io
cipher AES-256-CBC