What's new

OpenVPN - Fix IPs for client

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

rescapind

Occasional Visitor
Hi,
I'm using N66U with Merlin build. My OVN is in TUN mode.
I'm trying to fix IPs for all clients. So I created the ccd folder and all the files for clients. It worked fine.
However, when I rebooted the router (or off and on the OVN server), all the files in ccd folder disappeared. I had to create them again.
Is there anyway to retain the files manually created after reboot?
Thanks.
 
The ccd directory is dynamically created in RAM when the server is started, so it will not survive reboots.

Implementing user-defined ccd content is on the ToDO list. In the mean time, you will have to use a script that will copy the ccd files from another location (JFFS or USB disk) into the correct location after OpenVPN is started.

You could probably also specify a different location through OpenVPN's custom config section, and point it to a directory either in jffs or on a mounted USB disk.
 
The ccd directory is dynamically created in RAM when the server is started, so it will not survive reboots.

Implementing user-defined ccd content is on the ToDO list. In the mean time, you will have to use a script that will copy the ccd files from another location (JFFS or USB disk) into the correct location after OpenVPN is started.

You could probably also specify a different location through OpenVPN's custom config section, and point it to a directory either in jffs or on a mounted USB disk.

Pointing to another location is a good workaround for me.
Thanks for the suggestion, RMerlin.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Top