mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "84b91141ff1433443892b4523f7b476540c13125" and "050015872794e556cb03653d13cf7e9894a5319d" have entirely different histories.
84b91141ff
...
0500158727
|
@ -9,13 +9,6 @@
|
||||||
|
|
||||||
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
|
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
|
||||||
|
|
||||||
## 2024-02-04
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- **Pi-hole LXC**
|
|
||||||
- Option to add Unbound
|
|
||||||
|
|
||||||
## 2024-02-02
|
## 2024-02-02
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -20,8 +20,6 @@ $STD apt-get install -y mc
|
||||||
$STD apt-get install -y lsb-release
|
$STD apt-get install -y lsb-release
|
||||||
$STD apt-get install -y gpg
|
$STD apt-get install -y gpg
|
||||||
$STD apt-get install -y apt-transport-https
|
$STD apt-get install -y apt-transport-https
|
||||||
$STD apt-get install -y libpython3.9
|
|
||||||
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Hyperion"
|
msg_info "Installing Hyperion"
|
||||||
|
|
|
@ -42,64 +42,6 @@ EOF
|
||||||
$STD bash <(curl -fsSL https://install.pi-hole.net) --unattended
|
$STD bash <(curl -fsSL https://install.pi-hole.net) --unattended
|
||||||
msg_ok "Installed Pi-hole"
|
msg_ok "Installed Pi-hole"
|
||||||
|
|
||||||
read -r -p "Would you like to add Unbound? <y/N> " prompt
|
|
||||||
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
|
||||||
msg_info "Installing Unbound"
|
|
||||||
$STD apt-get install -y unbound
|
|
||||||
cat <<EOF >/etc/unbound/unbound.conf.d/pi-hole.conf
|
|
||||||
server:
|
|
||||||
verbosity: 0
|
|
||||||
interface: 0.0.0.0
|
|
||||||
port: 5335
|
|
||||||
do-ip6: no
|
|
||||||
do-ip4: yes
|
|
||||||
do-udp: yes
|
|
||||||
do-tcp: yes
|
|
||||||
num-threads: 1
|
|
||||||
hide-identity: yes
|
|
||||||
hide-version: yes
|
|
||||||
harden-glue: yes
|
|
||||||
harden-dnssec-stripped: yes
|
|
||||||
harden-referral-path: yes
|
|
||||||
use-caps-for-id: no
|
|
||||||
harden-algo-downgrade: no
|
|
||||||
qname-minimisation: yes
|
|
||||||
aggressive-nsec: yes
|
|
||||||
rrset-roundrobin: yes
|
|
||||||
cache-min-ttl: 300
|
|
||||||
cache-max-ttl: 14400
|
|
||||||
msg-cache-slabs: 8
|
|
||||||
rrset-cache-slabs: 8
|
|
||||||
infra-cache-slabs: 8
|
|
||||||
key-cache-slabs: 8
|
|
||||||
serve-expired: yes
|
|
||||||
serve-expired-ttl: 3600
|
|
||||||
edns-buffer-size: 1232
|
|
||||||
prefetch: yes
|
|
||||||
prefetch-key: yes
|
|
||||||
target-fetch-policy: "3 2 1 1 1"
|
|
||||||
unwanted-reply-threshold: 10000000
|
|
||||||
rrset-cache-size: 256m
|
|
||||||
msg-cache-size: 128m
|
|
||||||
so-rcvbuf: 1m
|
|
||||||
private-address: 192.168.0.0/16
|
|
||||||
private-address: 169.254.0.0/16
|
|
||||||
private-address: 172.16.0.0/12
|
|
||||||
private-address: 10.0.0.0/8
|
|
||||||
private-address: fd00::/8
|
|
||||||
private-address: fe80::/10
|
|
||||||
EOF
|
|
||||||
mkdir -p /etc/dnsmasq.d/
|
|
||||||
cat <<EOF >/etc/dnsmasq.d/99-edns.conf
|
|
||||||
edns-packet-max=1232
|
|
||||||
EOF
|
|
||||||
wget -q https://www.internic.net/domain/named.root >/var/lib/unbound/root.hints
|
|
||||||
sed -i -e 's/PIHOLE_DNS_1=8.8.8.8/PIHOLE_DNS_1=127.0.0.1#5335/' -e 's/PIHOLE_DNS_2=8.8.4.4/#PIHOLE_DNS_2=8.8.4.4/' /etc/pihole/setupVars.conf
|
|
||||||
systemctl enable -q --now unbound
|
|
||||||
systemctl restart pihole-FTL.service
|
|
||||||
msg_ok "Installed Unbound"
|
|
||||||
fi
|
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue