But after rebooting I have the same old file with one entry only for one user.
I tried to edit /tmp/etc/chap-secrets the same thing after rebooting all gone.
Why it is not working like it is supposed to be
Where do I add multiple clients so they stay after rebooting on server config
I have found path for chap-secrets in /etc/init.d/pptp --/var/etc/ppp/chap-secrets
And the same old story
So I go /etc/ppp/chap-secrets make a list for clients where I put usernames passwords and ips
and then I save the file and then I rm /tmp/etc/chap-secrets ?
uci is great but before it I need to know the mechanic of the settings .
uci is good when you know what is behind these commands
Do not edit /etc/ppp/chap-secrets since it is just a symlink to /tmp/etc/chap-secrets.
It is stored on tmpfs and filled automatically from the UCI settings.
But why if I edit this /tmp/etc/chap-secrets file it wipes to previous version after reboot is there any way to save this file so it won't reset after rebooting?
So there is uci file with all these parameters , but where what is the name ?
So this is the working uci script for 2 clients
uci -q delete pptpd.client1
uci set pptpd.client1="login"
uci set pptpd.client1.username="USERNAME1"
uci set pptpd.client1.password="PASSWORD1"
uci set pptpd.client1.remoteip="192.168.27.25"
uci -q delete pptpd.client2
uci set pptpd.client2="login"
uci set pptpd.client2.username="USERNAME2"
uci set pptpd.client2.password="PASSWORD2"
uci set pptpd.client2.remoteip="192.168.27.27"
Is this the same with pptpd cause I couldn't config options.pptpd permanently ?
Is there uci commands for configuring pptpd like to set mppe no128 no56 etc ?
But editing config file is more simpler to understand
Yes, there are similarities in managing PPTP secrets and PPP options.
In fact, this is common practice for OpenWrt services to store runtime configs in tmpfs.
However, there are also differences, and the logic to process those settings is not the same.
It can result in unexpected problems if altered without thorough understanding and testing.
Follow the wiki to add clients in the PPTP service config.
Then you can simply edit that config with a text editor.