OpenVPN on DDWRT build 24 SP2

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

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

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
sigma47
OpenVpn Newbie
Posts: 2
Joined: Thu Oct 20, 2011 9:50 pm

OpenVPN on DDWRT build 24 SP2

Post by sigma47 » Thu Oct 20, 2011 10:11 pm

Hello, I am trying to configure a VPN so that I can access my home network from work and vice versa as well as the fact that I am just curious. So, I have DD-WRT installed on my Buffalo WRZ-300n-hp router and have been trying to get this configured via various how tos here and at the DD-WRT site. I think that I have followed most recipes to the T but am still not connecting and I am a novice and don't know how to trouble shoot this config. So any help would be appreciated.

----Server config-----
Note that I don't have any firewall configuration and that I have forwarded port 1194 from the gateway to the VPN network.

Image

----OpenVPN status from the router page------
Image

----The client config is as follows-----

client
dev tun
proto udp
remote mydns_hostname 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
cipher BF-CBC 128
comp-lzo
verb 3

-----Client log is-------
Thu Oct 20 16:45:24 2011 OpenVPN 2.2.1 Win32-MSVC++ [SSL] [LZO2] built on Jul 1 2011
Thu Oct 20 16:45:24 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu Oct 20 16:45:25 2011 LZO compression initialized
Thu Oct 20 16:45:25 2011 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Oct 20 16:45:25 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Oct 20 16:45:25 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Oct 20 16:45:25 2011 Local Options hash (VER=V4): '41690919'
Thu Oct 20 16:45:25 2011 Expected Remote Options hash (VER=V4): '530fdded'
Thu Oct 20 16:45:25 2011 UDPv4 link local: [undef]
Thu Oct 20 16:45:25 2011 UDPv4 link remote: XX:XXX:XXX:XXX:1194
Thu Oct 20 16:45:25 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Oct 20 16:45:27 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Thu Oct 20 16:45:31 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)

Also note that I am able to connect via a pptp vpn to this router from outside the LAN.

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: OpenVPN on DDWRT build 24 SP2

Post by Mimiko » Fri Oct 21, 2011 7:57 am

From this link http://www.dd-wrt.com/wiki/index.php/OpenVPN is written that "Start type" must be "WAN up", because "System" mode does not work.

sigma47
OpenVpn Newbie
Posts: 2
Joined: Thu Oct 20, 2011 9:50 pm

Re: OpenVPN on DDWRT build 24 SP2

Post by sigma47 » Fri Oct 21, 2011 12:21 pm

Thanks Mimiko, I have tried both start on WanUp and System...neither are working for me. I do have it set to WanUp now and will keep it there until I resolve this.. Thanks again

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: OpenVPN on DDWRT build 24 SP2

Post by Mimiko » Fri Oct 21, 2011 4:16 pm

Please follow that guide to be sure you didn't miss anything, and post logs from dd-wrt.

Post Reply