OpenVPN server setup help

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
archonixm
OpenVpn Newbie
Posts: 1
Joined: Thu Mar 22, 2012 4:28 pm

OpenVPN server setup help

Post by archonixm » Thu Mar 22, 2012 4:31 pm

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

blaser
OpenVpn Newbie
Posts: 16
Joined: Fri Mar 23, 2012 8:04 pm

Re: OpenVPN server setup help

Post by blaser » Sun Mar 25, 2012 7:50 pm

Is your client windows 7 XP?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN server setup help

Post by janjust » Sun Mar 25, 2012 10:49 pm

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.

Post Reply