Page MenuHomePhabricator

port whonixcheck check_tor_socks_port_reachability.bsh to using Tor unix domain socket socks file
Closed, ResolvedPublic

Description

https://github.com/Whonix/whonixcheck/blob/master/usr/lib/whonixcheck/check_tor_socks_port_reachability.bsh

Requires newer curl with --unix-socket from Debian version 9 codename Stretch.

Replace

$CURL \
   --fail \
   $CURL_VERBOSE \
   --max-time 10 \
   --output "$TEMP_DIR/socks_port_open_file" \
   "$GATEWAY_IP:$SOCKS_PORT_WHONIXCHECK" \
   &

with

$CURL \
   --fail \
   $CURL_VERBOSE \
   --max-time 10 \
   --output "$TEMP_DIR/socks_port_open_file" \
   --unix-socket "/var/run/tor/socks" \
   "file//var/run/tor/socks" \
   &

Details

Impact
Normal