Recently I downloaded DNSCrypt-proxy 2 to my BPI-R2 with LEDE (https://github.com/jedisct1/dnscrypt-proxy/releases/tag/2.0.7)
Program itself is working good but I have few questions about init.d scripts. dnscrypt-proxy don’t have --daemon option. When I put it to init.d it hanging entire boot process.
Only one solution that I found is to start it is:
(dnscrypt-proxy -config … -pidfile …)&
- Is there a possibility to “daemonize” progam in init.d script in LEDE?
Dnscrypt-proxy is starting as root. To change user I put into init.d script:
(sudo -u SomeUser dnscrypt-proxy -config … -pidfile …)&
- Is there a other way to run as non-root user in init.d script in LEDE?
After it started as non-root user program didn’t have permission to bind addres: permission denied.
- Is there way to set file capabilities in LEDE, like: (https://github.com/jedisct1/dnscrypt-proxy/wiki/installation)
setcap cap_net_bind_service=+pe dnscrypt-proxy
And now off-topic:
My ISP is forcing me to use their router. To avoid this I need to VLAN.
- How to complie LEDE with switch support? My swconfig shows notching.
Thank you in advance.
Regards, Andrzej Bialic