mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
unbound: Allow forcing to speak TLS to upstream servers only
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -16,6 +16,7 @@ INSECURE_ZONES=
|
||||
USE_FORWARDERS=1
|
||||
ENABLE_SAFE_SEARCH=off
|
||||
FORCE_TCP=off
|
||||
FORCE_TLS=off
|
||||
|
||||
# Cache any local zones for 60 seconds
|
||||
LOCAL_TTL=60
|
||||
@@ -184,8 +185,15 @@ write_forward_conf() {
|
||||
(
|
||||
config_header
|
||||
|
||||
# Force using TLS for upstream servers only
|
||||
if [ "${FORCE_TLS}" = "on" ]; then
|
||||
echo "# Force using TLS for upstream servers only"
|
||||
echo "server:"
|
||||
echo " tls-upstream: yes"
|
||||
echo
|
||||
|
||||
# Force using TCP for upstream servers only
|
||||
if [ "${FORCE_TCP}" = "on" ]; then
|
||||
elif [ "${FORCE_TCP}" = "on" ]; then
|
||||
echo "# Force using TCP for upstream servers only"
|
||||
echo "server:"
|
||||
echo " tcp-upstream: yes"
|
||||
|
||||
Reference in New Issue
Block a user