1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

OpenVPN Issues

Discussion in 'Tomato Firmware' started by arrmo, Jun 16, 2012.

  1. arrmo

    arrmo Addicted to LI Member

    Hi,

    Is anyone using the web interface to OpenVPN (and if you are ... is it working?)? I'm finding that the parameters are not being stored / read back properly, and I also can't seem to start OpenVPN from the web interface.

    Thoughts?

    Thanks!
     
  2. kthaddock

    kthaddock Network Guru Member

  3. arrmo

    arrmo Addicted to LI Member

    Thanks for the guide!

    Actually, it's what I have already done though ... :-(. The issue seems to be that the configuration information is not being stored correctly - checked the web GUI vs. the configuration information on the router (telnet in, check /etc/openvpn) ... and they don't match.

    Thoughts?

    Thanks again!
     
  4. kthaddock

    kthaddock Network Guru Member

    Strange I have used this gude and it's working.
    If you have strange behave maby you have updated to newer build and you need to do a NVRAM reset ( NOT 30-30-30 )
    If server/client dosen't start there is some issue with your generated Cert's.
     
  5. arrmo

    arrmo Addicted to LI Member

    Hi,

    I have a fairly recent build, it could be that something is broken. For example, when I save settings, or try to start the server, the config.ovpn file shows port 0 (even though I entered 1194), and then the entry on the web GUI is blank. I can try again, but I get the same result. I think somehow the save / retreive functionality is broken now ... :-(.

    Thanks!
     
  6. arrmo

    arrmo Addicted to LI Member

    Hi,

    After a bit more digging - this seems to be happening (the corruption) when the service is started. If I check the config file before and after service start - this is what breaks it. If I manually run openvpn ... no corruption!

    Thoughts?

    Thanks!
     
  7. arrmo

    arrmo Addicted to LI Member

    Hi,

    What version of OpenVPN are you running? It seems that 2.2.2 was integrated just a couple months back - could it be that something got broken in the process?

    Thanks!
     
  8. gfunkdave

    gfunkdave LI Guru Member

    What version of Tomato are you using? I've been using v1.28.7633 .3-Toastman-IPT-ND ND VPN on my server router and v1.28.7498 MIPSR2-Toastman-RT K26 USB VPN on my client router for quite some time with no issues.
     
  9. arrmo

    arrmo Addicted to LI Member

    Hi,

    I'm using a very recent shibby build (as it includes support for my UPS) - but OpenVPN looks to be the same release in both Toastman and shibby builds now. I did a search and can't find build dates - what are the build dates for your releases? OpenVPN looks to have changed in mid-late April (~ 6 weeks ago).

    Thanks!
     
  10. gfunkdave

    gfunkdave LI Guru Member

    I just upgraded to the current Toastman version (1.28.7500) for MIPS R2 routers. It works fine.

    How do I find what OpenVPN version is included in the firmware?
     
  11. arrmo

    arrmo Addicted to LI Member

    There may be a better way, but if you telnet or ssh in to your router (login is root, pwd is your web GUI pwd) - and then enter 'openvpn --version' ... it should report the version.

    I just did this, and I seem to have 2.1.1 (very odd ... :-(). Perhaps this build is messed up somehow. In any case, it would be nice to know what version you're running.

    FYI, I start the service with 'service vpnserver1 restart' for example, and this is corrupting the .conf file. I also noted that the sh script has incorrect values in it (from the same issue?).

    Thanks!
     
  12. gfunkdave

    gfunkdave LI Guru Member

    Looks like 2.2.2...everything's working fine.

    Code:
    Tomato v1.28.7500 MIPSR2Toastman-RT K26 USB VPN
    root@router:/tmp/home/root# openvpn --version
    OpenVPN 2.2.2 mipsel-linux [SSL] [LZO2] [EPOLL] built on Jun 15 2012
    Originally developed by James Yonan
    Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>
    
     
  13. krasnal

    krasnal Serious Server Member

    I'm using shibby version 088 on a WRT54GL and it's using OpenVPN version 2.1.1. I believe shibby upgraded to version 2.2.2 in the latest build.

    That said, I'm having no problems with the storage of variables.or with starting the (client) service. It all works as advertised., apart from a minor DNS-related issue that I can work around. To be clear, I'm not using the VPN server part.
     
  14. ulyan

    ulyan Networkin' Nut Member

    One noobish question : have you entered all the configuration parameters before saving ? I mean all, configuration, crt, key, etc. Then save and try to start the service.
    I recently upgraded to the last build of shibby but I did not try yet to reconfigure openvpn.
     
  15. dc361

    dc361 LI Guru Member

    Do you have enough NVRAM space left to store the configuration? (Administration -> Configuration)
     
  16. arrmo

    arrmo Addicted to LI Member

    Barely! 1120 bytes, that's it - is there a way to increase this?

    With the latest build though (with OpenVPN 2.2.2) - it now works (sort of ... :)). The service now starts properly, and I can connect to it, but then ... the client crashes on connect, so new debugging it seems. I would be interested though if I can increase the NVRAM size (without losing all my settings).

    Thanks!
     

Share This Page