proxy: simplification de la boucle
This commit is contained in:
parent
f87bbe5442
commit
9ae2a03955
|
@ -415,10 +415,6 @@ start() {
|
|||
# Proxy (Squid)
|
||||
if is_proxy_enabled; then
|
||||
${IPT} -t nat -A OUTPUT -p tcp --dport 80 -m owner --uid-owner proxy -j ACCEPT
|
||||
if [ -n "${INTLAN}" ]; then
|
||||
${IPT} -t nat -A OUTPUT -p tcp --dport 80 -d "${INTLAN}" -j ACCEPT
|
||||
fi
|
||||
${IPT} -t nat -A OUTPUT -p tcp --dport 80 -d "127.0.0.0/8" -j ACCEPT
|
||||
for dstip in ${PROXYBYPASS}; do
|
||||
${IPT} -t nat -A OUTPUT -p tcp --dport 80 -d "${dstip}" -j ACCEPT
|
||||
done
|
||||
|
|
|
@ -79,10 +79,10 @@ NTPOK='0.0.0.0/0'
|
|||
|
||||
# Proxy (Squid)
|
||||
PROXY='off'
|
||||
# (destinations that bypass the proxy. ${INTLAN} and '127.0.0.0/8' are always added to the list)
|
||||
PROXYBYPASS=''
|
||||
# (proxy port, default if missing: '8888')
|
||||
PROXYPORT=''
|
||||
# (proxy port)
|
||||
PROXYPORT='8888'
|
||||
# (destinations that bypass the proxy)
|
||||
PROXYBYPASS="${INTLAN} 127.0.0.0/8"
|
||||
|
||||
# Backup servers
|
||||
# (add IP:PORT for each one, example: '192.168.10.1:1234 192.168.10.2:5678')
|
||||
|
|
Loading…
Reference in a new issue