However make sure that for SSH only a given IP can access the associated port and for HTTP to only allow localhost.
When running httpd is necessary? For instance let us consider a case where I httpd to have curl http://localhost:8080 working, then I reboot the phone and open Termux, in this case I have to run httpd.
ls $PREFIX/var/service/
busybox-httpd crond ftpd httpd postgres sshd telnetd tor
ls $PREFIX/var/service/httpd
down log run supervise
sv-enable httpd
ls $PREFIX/var/service/httpd
log run supervise
I confirm that now once Termux has been open once (maybe it is not necessary anymore) the HTTP server works contrarily to previously.
However make sure that for SSH only a given IP can access the associated port and for HTTP to only allow localhost.
When running
httpd
is necessary? For instance let us consider a case where Ihttpd
to havecurl http://localhost:8080
working, then I reboot the phone and open Termux, in this case I have to runhttpd
.I confirm that now once Termux has been open once (maybe it is not necessary anymore) the HTTP server works contrarily to previously.
Related to Benjamin_Loison/termux-boot/issues/1.
Feature description
https://wiki.termux.com/wiki/Termux-services
Additional information
Not read.