09-torsocks-configuration 353 Bytes
Newer Older
1 2 3 4 5 6
#!/bin/sh

set -e

echo "Configure torsocks"

7
# Allow TCP and UDP outbound connections to the loopback interface, so
8 9 10
# that we can wrap git with torsocks without breaking Git-over-SSH
# (SSH is torified via ProxyCommand already).
sed -i'' \
11
    --regexp-extended 's,^#?AllowOutboundLocalhost\s+.*,AllowOutboundLocalhost 2,' \
12
    /etc/tor/torsocks.conf