Posted: Wed Dec 24, 2014 7:44 Post subject: [Found workaround] Openvpn client on F5D8235-4 v2
I need help on setting up openvpn client on my F5D8235-4 v2 running dd-wrt r25648.
The F5D8235-4 is connected to a modem router. I am using the dd-wrt GUI to enable openvpn client and I have entered the various cert and keys but it doesn't seem to work. The cert and keys works on PC without problem.
I ssh to F5D8235-4 and run route and there is no tun at all. I have already rebooted the router.
I have the ovpn file. When I run openvpn --config xxx.ovpn it get an error as follows:
Tue Dec 23 23:34:28 2014 OpenVPN 2.3.6 mipsel-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Dec 15 2014
Tue Dec 23 23:34:28 2014 library versions: OpenSSL 1.0.1j 15 Oct 2014, LZO 2.08
Enter Private Key Password:
Tue Dec 23 23:34:33 2014 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Tue Dec 23 23:34:33 2014 Control Channel Authentication: tls-auth using INLINE static key file
Tue Dec 23 23:34:33 2014 UDPv4 link local: [undef]
Tue Dec 23 23:34:33 2014 UDPv4 link remote: [AF_INET]x.x.x.x:1194
Tue Dec 23 23:34:36 2014 [Server] Peer Connection Initiated with [AF_INET]x.x.x.x:1194
Tue Dec 23 23:34:39 2014 TUN/TAP device tun1 opened
Tue Dec 23 23:34:39 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Tue Dec 23 23:34:39 2014 /sbin/ifconfig tun1 10.8.0.6 pointopoint 10.8.0.5 mtu 1500
Tue Dec 23 23:34:39 2014 ERROR: Linux route add command failed: external program exited with error status: 255
Tue Dec 23 23:34:39 2014 Initialization Sequence Completed
I got some progress but still far from successful. I disable VPN on GUI and ssh to the router. I mount -o bind the /jffs on the usb drive to /jffs. I placed the ovpn file on openvpncl on /jffs and then run
It seems like the problem is related to my dd-wrt with my F5D8235-4 v2. I bought a Netgear WNR3500L v2 today and flashed it with Tomato Shibby and I have no problem setting up openvpn client on it. Apparently the problem is related to the Null Mac address which I have no idea what is wrong at this moment.
Unfortunately WNR3500L v2 is not supported by dd-wrt so I can not use dd-wrt on it.
By the way, I am not giving up on my F5D8235-4 as yet.
Comparing WNR3500L-v2 and F5D8235-4 v2, I found that WNR3500L v2 use 3 different MAC for WAN, LAN and wireless. However, F5D8235-4 v2 use only 2 different MAC, one for WAN and one for both LAN and wireless. Not sure if it has anything to do with the Null MAC problem.
Although I still have not figure out how to setup openvpn client using the GUI, I found a workaround by ssh to the router and run .ovpn file directly. See my post on this thread for more details: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=285404