diff options
| author | Simon Rettberg | 2013-06-20 12:20:44 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2013-06-20 12:20:44 +0200 |
| commit | d1010614fea8d05a267a9fa188be0b54dc851447 (patch) | |
| tree | f9db35a201beb09ddfa85d6bcf43a778f9a97f25 /remote/modules/redsocks/data/opt | |
| parent | new option for remote mode '-n' to mount local builds (remote/builds/) to /ex... (diff) | |
| download | tm-scripts-d1010614fea8d05a267a9fa188be0b54dc851447.tar.gz tm-scripts-d1010614fea8d05a267a9fa188be0b54dc851447.tar.xz tm-scripts-d1010614fea8d05a267a9fa188be0b54dc851447.zip | |
[pam] Add missing content packages
[redsocks] fix path of redsocks binary, exclude proxy IP from redirection
Diffstat (limited to 'remote/modules/redsocks/data/opt')
| -rwxr-xr-x | remote/modules/redsocks/data/opt/openslx/bin/setup_proxy | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/remote/modules/redsocks/data/opt/openslx/bin/setup_proxy b/remote/modules/redsocks/data/opt/openslx/bin/setup_proxy index 8fa5721c..5dc22a14 100755 --- a/remote/modules/redsocks/data/opt/openslx/bin/setup_proxy +++ b/remote/modules/redsocks/data/opt/openslx/bin/setup_proxy @@ -20,6 +20,7 @@ sed -i "s/%%PROXY_IP%%/$SLX_PROXY_IP/g;s/%%PROXY_PORT%%/$SLX_PROXY_PORT/g;s/%%PR systemctl start redsocks iptables -t nat -N REDSOCKS +iptables -t nat -A REDSOCKS -d "$SLX_PROXY_IP" -j RETURN iptables -t nat -A REDSOCKS -d 0.0.0.0/8 -j RETURN iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN iptables -t nat -A REDSOCKS -d 127.0.0.0/8 -j RETURN |
