Yes, I’m just using pptpd for entware.
For authorization to work, I need to have chap-secret file in /etc/ppp location.
I’m looking at the package
First: I must change /opt/etc/init.d/S20poptop
ARGS="-e /opt/sbin/pppd -c /opt/etc/pptpd.conf"
In default pptpd trying search pppd binary in /usr/sbin/pppd and no start pptpd process (service start problem)
Now when i strace i seen then pppd trying open /etc/ppp/chap-secrets file.
There is no config options to change this secrets file location - so i need add symlinks from /opt/etc/ppp to /etc/ppp.
Pppd stores secrets for use in authentication in secrets files (/etc/ppp/pap-secrets for PAP, /etc/ppp/chap-secrets for CHAP, MS-CHAP, MS-CHAPv2, and EAP MD5-Challenge, and /etc/ppp/srp-secrets for EAP SRP-SHA1). All secrets files have the same format. The secrets files can contain secrets for pppd to use in authenticating itself to other systems, as well as secrets for pppd to use when authenticating other systems to itself.