From 81c43f61b09f70f1402b5db6d7c468eae2bbe956 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 14 Oct 2013 14:06:59 +0200 Subject: [PATCH] core73: Add transparent proxy port configuration. --- config/rootfiles/core/73/update.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/rootfiles/core/73/update.sh b/config/rootfiles/core/73/update.sh index 1fb3ac642..6730e0d76 100644 --- a/config/rootfiles/core/73/update.sh +++ b/config/rootfiles/core/73/update.sh @@ -42,6 +42,15 @@ done #Extract files extract_files +if [ -e "/var/ipfire/proxy/enable" ] || [ -e "/var/ipfire/proxy/enable_blue" ]; then + ( + eval $(/usr/local/bin/readhash /var/ipfire/proxy/advanced/settings) + + TRANSPARENT_PORT="$(( ${PROXY_PORT} + 1 ))" + echo "TRANSPORT_PORT=${TRANSPARENT_PORT}" >> /var/ipfire/proxy/advanced/settings + ) +fi + # Regenerate squid configuration files. /srv/web/ipfire/cgi-bin/proxy.cgi -- 2.39.2