|
|
@ -8,29 +8,29 @@ chmod 750 /var/lib/tor |
|
|
|
echo "## Start tor #############################" |
|
|
|
|
|
|
|
tor_options=( |
|
|
|
--SocksPort 172.28.1.4:9050 |
|
|
|
--SocksPort "$NET_DOJO_TOR_IPV4:9050" |
|
|
|
--SocksPolicy "accept 172.28.0.0/16" |
|
|
|
--SocksPolicy "reject *" |
|
|
|
--DataDirectory /var/lib/tor/.tor |
|
|
|
--DataDirectoryGroupReadable 1 |
|
|
|
--HiddenServiceDir /var/lib/tor/hsv2dojo |
|
|
|
--HiddenServiceVersion 2 |
|
|
|
--HiddenServicePort "80 172.29.1.3:80" |
|
|
|
--HiddenServicePort "80 $NET_DMZ_NGINX_IPV4:80" |
|
|
|
--HiddenServiceDir /var/lib/tor/hsv3dojo |
|
|
|
--HiddenServiceVersion 3 |
|
|
|
--HiddenServicePort "80 172.29.1.3:80" |
|
|
|
--HiddenServicePort "80 $NET_DMZ_NGINX_IPV4:80" |
|
|
|
) |
|
|
|
|
|
|
|
if [ "$BITCOIND_INSTALL" == "on" ]; then |
|
|
|
if [ "$BITCOIND_LISTEN_MODE" == "on" ]; then |
|
|
|
tor_options+=(--HiddenServiceDir /var/lib/tor/hsv2bitcoind) |
|
|
|
tor_options+=(--HiddenServiceVersion 2) |
|
|
|
tor_options+=(--HiddenServicePort "8333 172.28.1.5:8333") |
|
|
|
tor_options+=(--HiddenServicePort "8333 $NET_DOJO_BITCOIND_IPV4:8333") |
|
|
|
tor_options+=(--HiddenServiceDirGroupReadable 1) |
|
|
|
|
|
|
|
tor_options+=(--HiddenServiceDir /var/lib/tor/hsv3bitcoind) |
|
|
|
tor_options+=(--HiddenServiceVersion 3) |
|
|
|
tor_options+=(--HiddenServicePort "8333 172.28.1.5:8333") |
|
|
|
tor_options+=(--HiddenServicePort "8333 $NET_DOJO_BITCOIND_IPV4:8333") |
|
|
|
tor_options+=(--HiddenServiceDirGroupReadable 1) |
|
|
|
fi |
|
|
|
fi |
|
|
@ -38,24 +38,24 @@ fi |
|
|
|
if [ "$EXPLORER_INSTALL" == "on" ]; then |
|
|
|
tor_options+=(--HiddenServiceDir /var/lib/tor/hsv2explorer) |
|
|
|
tor_options+=(--HiddenServiceVersion 2) |
|
|
|
tor_options+=(--HiddenServicePort "80 172.29.1.3:9080") |
|
|
|
tor_options+=(--HiddenServicePort "80 $NET_DMZ_NGINX_IPV4:9080") |
|
|
|
tor_options+=(--HiddenServiceDirGroupReadable 1) |
|
|
|
|
|
|
|
tor_options+=(--HiddenServiceDir /var/lib/tor/hsv3explorer) |
|
|
|
tor_options+=(--HiddenServiceVersion 3) |
|
|
|
tor_options+=(--HiddenServicePort "80 172.29.1.3:9080") |
|
|
|
tor_options+=(--HiddenServicePort "80 $NET_DMZ_NGINX_IPV4:9080") |
|
|
|
tor_options+=(--HiddenServiceDirGroupReadable 1) |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "$WHIRLPOOL_INSTALL" == "on" ]; then |
|
|
|
tor_options+=(--HiddenServiceDir /var/lib/tor/hsv2whirlpool) |
|
|
|
tor_options+=(--HiddenServiceVersion 2) |
|
|
|
tor_options+=(--HiddenServicePort "80 172.29.1.3:8898") |
|
|
|
tor_options+=(--HiddenServicePort "80 $NET_DMZ_NGINX_IPV4:8898") |
|
|
|
tor_options+=(--HiddenServiceDirGroupReadable 1) |
|
|
|
|
|
|
|
tor_options+=(--HiddenServiceDir /var/lib/tor/hsv3whirlpool) |
|
|
|
tor_options+=(--HiddenServiceVersion 3) |
|
|
|
tor_options+=(--HiddenServicePort "80 172.29.1.3:8898") |
|
|
|
tor_options+=(--HiddenServicePort "80 $NET_DMZ_NGINX_IPV4:8898") |
|
|
|
tor_options+=(--HiddenServiceDirGroupReadable 1) |
|
|
|
fi |
|
|
|
|
|
|
|