netblue30 / fdns

Firejail DNS-over-HTTPS Proxy Server
GNU General Public License v3.0
115 stars 29 forks source link

support for multiple fdns instances #39

Closed rusty-snake closed 4 years ago

rusty-snake commented 4 years ago

It would be greate if we can run multiple instances of fdns at the same time. Especially for #35 is this needed.

netblue30 commented 4 years ago

Long story short:

$ sudo fdns --daemonize
$ sudo fdns --daemonize --proxy-addr=127.2.2.2
$ sudo fdns --daemonize --proxy-addr= 127.3.3.3
$ sudo fdns --proxies
pid 4900, address 127.3.3.3
pid 4893, address 127.2.2.2
pid 4883, address 127.1.1.1 (default)

# monitoring default
$ fdns --monitor
# all the rest
$ fdns --monitor=127.2.2.2
$ fdns --monitor=127.3.3.3

BTW, I've modified the apparmor profile, you'll have to reload it:

$ sudo apparmor_parser -r /etc/apparmor.d/usr.bin.fdns 
rusty-snake commented 4 years ago

BTW, I've modified the apparmor profile, you'll have to reload it:

since I have SELinux ...

netblue30 commented 4 years ago

cool! closing down