Page 1 of 1

OpenVPN server setup help

Posted: Thu Mar 22, 2012 4:31 pm
by archonixm
Currently i have 1 ethernet connecting to a router

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::6481:e
IPv4 Address. . . . . . . . . . . : 192.168.0.10
Subnet Mask . . . . . . . . . . . : 255.255.255.
Default Gateway . . . . . . . . . : 192.168.0.20

So my gateway is 192.168.0.20

Now my server config is

port 43334

proto tcp

dev tap

#dev-node OpenVPN

server 10.10.99.0 255.255.255.0 #192.168.0.50 192.168.0.60 #you may choose any subnet. 10.0.0.x is used for this example.

#push "route-gateway 192.168.0.20"

ca ca.crt #certs are optional. you may choose to go with keys or passwords instead.

cert server.crt

key server.key

dh dh1024.pem

push "redirect-gateway def1"

push "dhcp-option DNS 8.8.8.8"

#the following commands are optional

keepalive 10 120

comp-lzo

persist-key

persist-tun

verb 4

ifconfig-pool-persist ipp.txt

#status openvpn-status.log


I want my client to pass all internet and everything through the VPN server/ The problem is when the client connecting to the server, it still using the default router. And from log i can see that the route has been set to 10.10.99.1

Re: OpenVPN server setup help

Posted: Sun Mar 25, 2012 7:50 pm
by blaser
Is your client windows 7 XP?

Re: OpenVPN server setup help

Posted: Sun Mar 25, 2012 10:49 pm
by janjust
you're using
push "redirect-gateway def1"
this means the default GW is not overridden but new routes are added; post the client config file and post the output of

Code: Select all

netstat -rn
after the client has connected.