OpenVPN Server not working after upgrade

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
daniel_kukiela
DD-WRT Novice


Joined: 08 Sep 2012
Posts: 8

PostPosted: Fri Jun 19, 2020 5:14    Post subject: OpenVPN Server not working after upgrade Reply with quote
I was not sure where to post it as this problem touches different areas.

I have D-Link DIR-825. Previously I've been using r29440 and attempted to upgrade ending up with not working vpn server. Today I made an attempt again hoping for vpn server to work but it did not. I have r43443 right now.

I headed up to the logs:
Code:
Jan 1 01:00:09 DD-WRT daemon.notice openvpn[861]: Options error: --client-config-dir fails with '/jffs/etc/openvpn/ccd': No such file or directory (errno=2)
Jan 1 01:00:09 DD-WRT daemon.err openvpn[861]: Options error: Please correct these errors.
Jan 1 01:00:09 DD-WRT daemon.warn openvpn[861]: Use --help for more information.
Jan 1 01:00:10 DD-WRT user.info : vpn modules : vpn modules successfully unloaded


So I started searching and discovered that JFFS2 support has been removed? I'm not sure... why? Looks like it is not the only missing option.

Anyway, it's gone but then:
Code:
root@DD-WRT:/# nvram show | grep jffs
usb_mntpoint=jffs
clean_jffs2=0
jffs_mounted=1
size: 62238 bytes (3298 left)
enable_jffs2=1
dhcpd_usejffs=1
samba3_dirpath=/jffs
sys_enable_jffs2=1

It seems to still be acting like JFFS2 is present and mounted as /jffs.

I even tried to create a pendrive and mount it as /jffs and apply settings again hoping for them to be saved in /jffs, as previously, but no, that's not a case.

I tried to find some solution on my own but was unable to, so I want to ask you for a help - what can I do to make OpenVPN server working? Then what can I do to store settings, like certificates, in /jffs (USB drive). I want to add OpenVPN client as well and I'm afraid that I might not fit everything into nvram anymore.
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12889
Location: Netherlands

PostPosted: Fri Jun 19, 2020 7:50    Post subject: Reply with quote
It is quite possible JFFS2 support is discontinued especially on the 8MB flash routers, you did not write what version you have Sad

Luckily you have USB, however with 64 KB flash you should be able to store all certificates in NVRAM (unless you use a keyzisze of 4096) .

If you upgraded with JFFS2 support enabled you have to get rid of that, did you reset to defaults after flashing the new build with (from CLI):
Code:
nvram erase && reboot
and store settings manually never restore from a backup file!

If so you can try to change back to old firmware, disable jffs2, reset to defaults then upgrade and then again do nvram erase && reboot.

In my signature at the bottom of this post some links to Forum Guide Lines and OpenVPN server setup guide

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
daniel_kukiela
DD-WRT Novice


Joined: 08 Sep 2012
Posts: 8

PostPosted: Fri Jun 19, 2020 8:01    Post subject: Reply with quote
Thank you very much for a reply.

I have B2 version, it has 8MB of flash, indeed.

Yes, I have USB, and as I mentioned, I tried to use an USB stick. It got mounted as /jffs but that did not change anything related to the problem, nor DD-WRT seems to see it as JFFS storage.

So far I'm able to fit everything in the NVRAM, but I'm going to use OpenVPN as a client as well (not sure about certificate keysizes yet), then I should work around setting a static IP binds with DHCP, etc, so in summary I would rather try to make /jffs working.

I did not reset to the defaults as settings should be carry over. Looks like it does not work when some functionality is being removed. Going back and disabling JFFS2 support looks like an option. Actually it might work and carry all the settings over to a new version. I;d rather avoid setting up everything from scratch, thus this topic. If I will have to, I'll go back and try to write down all the settings, but that's kind of an effort to set everything by hand again. But yes, it is an option.

I will also take a look at those links, thank you.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12889
Location: Netherlands

PostPosted: Fri Jun 19, 2020 10:35    Post subject: Reply with quote
Coming from such an old version a reset and setting up manually is not a bad idea.

But indeed make screenshots first Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum