Pi-hole

From Chorke Wiki
Revision as of 23:26, 18 April 2023 by Shahed (talk | contribs) (→‎References)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
curl -sSL https://install.pi-hole.net | bash
sudo apt install haproxy
sudo apt install nginx
pihole -a -p

Load Balancing

frontend chorke-http
   bind *:80
   mode http
   default_backend chorke-nginx
   acl path-prefix-is-pihole  path_beg /admin/
   use_backend chorke-pihole if path-prefix-is-pihole

backend chorke-nginx
   server nginx1 127.0.0.1:2013
   mode http

backend chorke-pihole
   server pihole1 127.0.0.1:2015
   mode http

Knowledge

systemctl status lighttpd
systemctl status haproxy
systemctl status nginx
vim /etc/nginx/sites-enabled/default
vim /etc/lighttpd/lighttpd.conf
vim /etc/haproxy/haproxy.cfg 
pihole -c -j

sudo ss -tulwn | grep LISTEN
sudo ss -tulpn | grep LISTEN | grep nginx
sudo ss -tulpn | grep LISTEN | grep haproxy
sudo ss -tulpn | grep LISTEN | grep lighttpd

References