diff options
Diffstat (limited to 'core/modules/redsocks')
-rwxr-xr-x | core/modules/redsocks/data/opt/openslx/scripts/systemd-setup_proxy | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/modules/redsocks/data/opt/openslx/scripts/systemd-setup_proxy b/core/modules/redsocks/data/opt/openslx/scripts/systemd-setup_proxy index 94135bc3..68501f20 100755 --- a/core/modules/redsocks/data/opt/openslx/scripts/systemd-setup_proxy +++ b/core/modules/redsocks/data/opt/openslx/scripts/systemd-setup_proxy @@ -61,6 +61,11 @@ iptables -t nat -A REDSOCKS -d 224.0.0.0/4 -j RETURN iptables -t nat -A REDSOCKS -d 240.0.0.0/4 -j RETURN HEREDOCBROWN +if [ -n "$SLX_PXE_SERVER_IP" ]; then + # Exclude boot server; we wouldn't be here if it weren't reachable directly + echo "iptables -t nat -A REDSOCKS -d '$SLX_PXE_SERVER_IP' -j RETURN" >> "$tfile" +fi + if [ -n "$SLX_PROXY_BLACKLIST" ]; then for ADDR in $SLX_PROXY_BLACKLIST; do echo "iptables -t nat -A REDSOCKS -d '$ADDR'-j RETURN" |