The use of torsocks.conf file

Hello,
Can I use the torsocks.conf file to set the username and password to use the Tor?

Thank you.

In torsocks.conf you can specify the username and password torsocks has to use to connect to your tor proxy. From man torsocks.conf:

SOCKS5Username username
    Username  to  use  for  SOCKS5  authentication method that makes the
    connections to Tor to use adifferent circuit from other existing streams.
    If set, the SOCKS5Password must be specified also. (Default: none).

SOCKS5Password password
     Password to use for SOCKS5 authentication method that makes the
     connections to Tor to use a different circuit from other  existing
     streams.  If  set,  the SOCKS5Username must be specified also. (Default:
     none).

The username and password requested by the proxy are to be set in torrc.

1 Like

Hello,
Thank you so much for your reply.
That is the username and password for anyone who wants to use Tor proxy?

Here’s a snippet I forgot in my previews message. From man torrc:

Socks5ProxyUsername username

Socks5ProxyPassword password
    If defined, authenticate to the SOCKS 5 server using username and password
    in accordance to RFC 1929. Both username and password must be between 1 and
    255 characters.

If you set Socks5ProxyUsername and Socks5ProxyPassword, such username and password will be required to connect to the SOCKS5 proxy. If you need authentication for the HTTP proxy use HTTPSProxyAuthenticator:

HTTPSProxyAuthenticator username:password
    If defined, Tor will use this username:password for Basic HTTPS proxy
    authentication, as in RFC 2617. This is currently the only form of HTTPS
    proxy authentication that Tor supports; feel free to submit a patch if you
    want it to support others.
1 Like

Hello,
Thank you so much.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.