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
			
									
									
						OpenVPN server setup help
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
- 
				blaser
- OpenVpn Newbie
- Posts: 16
- Joined: Fri Mar 23, 2012 8:04 pm
Re: OpenVPN server setup help
Is your client windows 7 XP?
			
									
									
						- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: OpenVPN server setup help
you're using
after the client has connected.
			
									
									
						this means the default GW is not overridden but new routes are added; post the client config file and post the output ofpush "redirect-gateway def1"
Code: Select all
netstat -rn
