core73: Add transparent proxy port configuration.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 14 Oct 2013 12:06:59 +0000 (14:06 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 14 Oct 2013 12:06:59 +0000 (14:06 +0200)
config/rootfiles/core/73/update.sh

index 1fb3ac64269ed59b5cdb1173a2edcadfc10f0c87..6730e0d76185235255fdd7212723ba2c6c214523 100644 (file)
@@ -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