Windwos 7 OpenVPN client against DD-WRT OpenVPN server

How to customize and extend your OpenVPN installation.

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

Post Reply
neoncek
OpenVpn Newbie
Posts: 3
Joined: Wed Nov 06, 2013 1:38 pm

Windwos 7 OpenVPN client against DD-WRT OpenVPN server

Post by neoncek » Thu Nov 07, 2013 12:55 pm

Hello all,

I didn`t find any other topic for issue I have with OpenVPn client v1.5.6 in Windows7 64b.
Firstly I would like to show you OpenVPN server configuration in DD-WRT router firmware:

Image

client-config-dir /tmp/openvpn/ccd

Code: Select all

mkdir -p /tmp/openvpn/ccd

echo "iroute 172.16.1.0 255.255.255.0" > /tmp/openvpn/ccd/client1
echo "push route 172.16.2.0 255.255.255.0" >> /tmp/openvpn/ccd/client1
Client configuration "client2.ovpn"

Code: Select all

client
proto tcp
remote =IP_OpenVPN_server=
port 3389
dev tun
nobind
pull
comp-lzo
ca ca.crt
cert client2.crt
key client2.key
OpenVPN client
Image

NIC status
Image

Issue description
I am not sure if my client configuration is right, but I can establish VPN connection with following issues:
1. Client assigned IP address from OpenVPN Client should be 10.10.10.3, but as you can see in NIC status, where is 10.10.10.3 IP assigned?
2. Pushed routes from server are in client routing table (RT) using IF 10.10.10.3 but 10.10.10.0/24 network is missing in RT, thats why default route match - wrong routing.

My temporary solution
After OpenVPN client2 initiation, I need to manually set up IP address (each time of OVPN reconnecting) to 10.10.10.3/24 and add desired routes towards 10.10.10.1 (IP of tunel on OpenVPN server).

May I kindly ask you how my client2.ovpn file should look if I want to establish OpenVPN connection without any other manual setup? Thanks in advance for replies.

neoncek
OpenVpn Newbie
Posts: 3
Joined: Wed Nov 06, 2013 1:38 pm

Re: Windwos 7 OpenVPN client against DD-WRT OpenVPN server

Post by neoncek » Thu Nov 07, 2013 10:12 pm

Actually, both options are functional, but it doesn`t resolve my issue with IP address assignment.

neoncek
OpenVpn Newbie
Posts: 3
Joined: Wed Nov 06, 2013 1:38 pm

Re: Windwos 7 OpenVPN client against DD-WRT OpenVPN server

Post by neoncek » Mon Nov 11, 2013 9:23 pm

Thanks for the hint (I am running openvpn.exe --config client2.ovpn), actually I found an issue - stupid McAffee protection on company HP laptop. My settings works in virtual machines.

Post Reply