Posted: Thu Feb 18, 2021 3:56 Post subject: OpenVPN server setup guide by egc -> CCD files
Thanks for this excelent guide at first.
Just a question about the setup with CCD files. The guide says:
"...if you do not have permanent storage, just use the default directory (/tmp/openvpn/ccd)..."
and recommend to add "echo "ifconfig-push 10.8.0.4 255.255.255.0" > /jffs/etc/openvpn/ccd/client1" to "Administration/Commands".
Is this correct? This do not look to me like it would add a file to "/tmp/openvpn/ccd"
Shouldn't it be "echo "ifconfig-push 10.8.0.4 255.255.255.0" > /tmp/openvpn/ccd/client1"???
Once done, it's simple enough to verify. Go to a shell (telnet/ssh) and paste the following command in the window, which dumps the contents of the file.
Code:
cat /jffs/etc/openvpn/ccd/client1
P.S. If you don't have JFFS, and you need to use the ramdrive instead (/tmp), then you need to add the following to the startup script.