troubleshooting Question

OpenVPN and Windows client ip config

Avatar of adminpeter
adminpeter asked on
Linux Networking
1 Comment1 Solution514 ViewsLast Modified:
Hi,

I'm running a new openvpn server. Server and client connect and ping, no problem. But i cannot figure out the default gateway option. I want to route all traffic of win client thru the OpenVPN server.

If i configure with  push "redirect-gateway"

The ip config in the client gets this way: IP 10.8.0.6 default gw 10.8.0.5

I was expecting IP 10.8.0.4 default gw 10.8.0.1

What is making this 10.8.0.5 gw address ?

Thank you, Peter.

# client.log
Thu Dec 14 11:21:00 2006 TEST ROUTES: 0/0 succeeded len=2 ret=0 a=0 u/d=down
Thu Dec 14 11:21:00 2006 Route: Waiting for TUN/TAP interface to come up...
Thu Dec 14 11:21:02 2006 TEST ROUTES: 0/0 succeeded len=2 ret=0 a=0 u/d=down
Thu Dec 14 11:21:02 2006 Route: Waiting for TUN/TAP interface to come up...
Thu Dec 14 11:21:03 2006 TEST ROUTES: 3/3 succeeded len=2 ret=1 a=0 u/d=up
Thu Dec 14 11:21:03 2006 route ADD 192.9.250.8 MASK 255.255.255.255 192.9.250.2
Thu Dec 14 11:21:03 2006 Route addition via IPAPI succeeded
Thu Dec 14 11:21:03 2006 route DELETE 0.0.0.0 MASK 0.0.0.0 192.9.250.2
Thu Dec 14 11:21:03 2006 Route deletion via IPAPI succeeded
Thu Dec 14 11:21:03 2006 route ADD 0.0.0.0 MASK 0.0.0.0 10.8.0.5
Thu Dec 14 11:21:03 2006 Route addition via IPAPI succeeded
Thu Dec 14 11:21:03 2006 route ADD 192.168.10.0 MASK 255.255.255.0 10.8.0.5
Thu Dec 14 11:21:03 2006 Route addition via IPAPI succeeded
Thu Dec 14 11:21:03 2006 route ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.5
Thu Dec 14 11:21:03 2006 Route addition via IPAPI succeeded
Thu Dec 14 11:21:03 2006 Initialization Sequence Completed



# server.log
Thu Dec 14 12:34:59 2006 OpenVPN 2.0 i386-pc-linux [SSL] [LZO] [EPOLL] built on Apr  6 2006
Thu Dec 14 12:34:59 2006 Diffie-Hellman initialized with 1024 bit key
Thu Dec 14 12:34:59 2006 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Dec 14 12:34:59 2006 TUN/TAP device tun0 opened
Thu Dec 14 12:34:59 2006 /sbin/ifconfig tun0 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
Thu Dec 14 12:34:59 2006 /sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.2
Thu Dec 14 12:34:59 2006 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:23 ET:0 EL:0 AF:3/1 ]
Thu Dec 14 12:34:59 2006 GID set to nogroup
Thu Dec 14 12:34:59 2006 UID set to nobody
Thu Dec 14 12:34:59 2006 UDPv4 link local (bound): [undef]:1194
Thu Dec 14 12:34:59 2006 UDPv4 link remote: [undef]
Thu Dec 14 12:34:59 2006 MULTI: multi_init called, r=256 v=256
Thu Dec 14 12:34:59 2006 IFCONFIG POOL: base=10.8.0.4 size=62
Thu Dec 14 12:34:59 2006 Initialization Sequence Completed
ASKER CERTIFIED SOLUTION
Arty Nopius
system engineer
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros