The service is being created and started but there is no any connection to the outside (same torcc-file). How do you think - where is the problem? Thank you for your support.
I was able to get to the global internet via a socks5 proxy in both situations you describe. My test in each situation was to proxy Firefox through a socks5 connection.
I extracted tor-expert-bundle-windows-x86_64-15.0.25.tar.gz to the directory c:\program\Tor\. This gave me 3 folders in this directory: data, docs, and tor.
I don’t have IPv6 so I used obfs4.
I put my torrc in the data folder where I believe it belongs and it looks like this:
UseBridges 1
# Please review the path to the pluggable transport executable
ClientTransportPlugin meek_lite,obfs4,snowflake,webtunnel exec C:\Program\Tor\tor\pluggable_transports\lyrebird.exe
# Uncomment the line below depending to the type of bridge your are using
#Bridge obfs4 <IP ADDRESS>:<PORT> <FINGERPRINT> cert=<CERTIFICATE> iat-mode=0
#Bridge webtunnel <IP ADDRESS>:<PORT> <FINGERPRINT> url=<URL> ver=0.0.1
#Bridge snowflake 192.0.2.3:80 2B280B23E1107BB62ABFC40DDCC8824814F80A72 fingerprint=2B280B23E1107BB62ABFC40DDCC8824814F80A72 url=https://1098762253.rsc.cdn77.org front=www.phpmyadmin.net,cdn.zk.mk ice=stun:stun.antisip.com:3478,stun:stun.epygi.com:3478,stun:stun.uls.co.za:3478,stun:stun.voipgate.com:3478,stun:stun.mixvoip.com:3478,stun:stun.nextcloud.com:3478,stun:stun.bethesda.net:3478,stun:stun.nextcloud.com:443 utls-imitate=hellorandomizedalpn
Bridge obfs4 n.n.n.n:63000 1878E0F5DAFFBD4A0F8DC75820ADB9B10E8ABAF0 cert=iESu5/SAcFI8GPUXHaV4Yk1zraP1AjZySYSsKh0lT+Bj0q/pdwa4PjMjsOusMxiOuUQAOA iat-mode=0
Bridge obfs4 n.n.n.n:8088 135C158527AA9FE9A2F26EC515EB6999D813D347 cert=wTUz0/5FhAZRkitil5MprGbSF3JzjxjxI1kAmxAdSeDy98NgcLr11f/qUXWDC76Y97RiSg iat-mode=0
Log notice file C:\Program\Tor\tor.log
DataDirectory C:\Program\Tor\Data
GeoIPFile C:\Program\Tor\Data\geoip
GeoIPv6File C:\Program\Tor\Data\geoip6
With admin privilege, my start command for the service was C:\Program\Tor\tor\tor.exe -service install -options -f C:\Program\Tor\data\torrc
It looks like you extracted to c:\programs which should give you the same three folders. Now where are your files. Why do you use SOCKSPort 0.0.0.0:9050. I let it default to 127.0.0.1:9050
Well, you know - I tried to replicate the folder structure (your example). And there some strange moments - if I run:
C:\\Programs\\Tor\\tor.exe -service install -options -f "C:\\Programs\\Tor\\Data\\torcc"
Running on a Post-Win2K OS, so we'll assume that the LocalService account exists.
Done with CreateService.
Service installed successfully
Service started successfully
But I can’t connect to any site or service through such tunnel. It works only if:
C:\\Programs\\Tor\\tor.exe -f "C:\\Programs\\Tor\\Data\\torcc"
Oct 16 15:12:17.285 \[notice\] Tor 0.4.9.13 (git-3c575400909efe65) running on Windows 8 \[or later\] with Libevent 2.1.13-stable, OpenSSL 3.5.8, Zlib 1.3.2, Liblzma N/A, Libzstd N/A and Unknown N/A as libc.
Oct 16 15:12:17.286 \[notice\] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
Oct 16 15:12:17.331 \[notice\] Read configuration file "C:\\Programs\\Tor\\Data\\torcc".
Oct 16 15:12:17.336 \[notice\] Opening Socks listener on 127.0.0.1:9050
Oct 16 15:12:17.337 \[notice\] Opened Socks listener connection (ready) on 127.0.0.1:9050
One might assume that port 9050 isn’t working, but that’s not the case—if I create the service and immediately try to launch Tor manually from the console (using the same torcc config), an error occurs:
C:\\Programs\\Tor\\tor.exe -f "C:\\Programs\\Tor\\Data\\torcc"
Oct 16 15:31:11.891 \[notice\] Tor 0.4.9.13 (git-3c575400909efe65) running on Windows 8 \[or later\] with Libevent 2.1.13-stable, OpenSSL 3.5.8, Zlib 1.3.2, Liblzma N/A, Libzstd N/A and Unknown N/A as libc.
Oct 16 15:31:11.891 \[notice\] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
Oct 16 15:31:11.929 \[notice\] Read configuration file "C:\\Programs\\Tor\\Data\\torcc".
Oct 16 15:31:11.933 \[notice\] Opening Socks listener on 127.0.0.1:9050
Oct 16 15:31:11.933 \[warn\] Could not bind to 127.0.0.1:9050: Address already in use \[WSAEADDRINUSE \]. Is Tor already running?
Oct 16 15:31:11.933 \[warn\] Failed to parse/validate config: Failed to bind one of the listener ports.
Oct 16 15:31:11.933 \[err\] Reading config failed--see warnings above.
tor -h or tor --help says to go to the manpage with a link but it is not useful and if you do find a manpage for Linux the part where it explains the Windows service stuff goes nowhere also.
The documentation is a bit sparse, to say the least, for this Windows package. I guess there must not be enough people using Windows to make it worthwhile documenting it.
So where did you get the docs. I had to read the text in tor.exe
I’m using version 0.4.9.14 on Windows Pro 11.
I’m getting a bit confused with my directory structure. The word tor occurs too many times so I re-did it. I now use C:\LiL\ (little tor) as the main folder and extracted the tar.gz into it. Tested it and both scenarios still work with the curl command above.
Well, this is my home laptop so I decided to use Tor as a Windows service - so that everything starts automatically in the background. But actually, it’s very strange that it’s precisely in this mode that it’s impossible to reach the outside world—even with the exact same bridge configuration.
Why not use the Tor browser when needed and the proxy is still available on port 9150.
But anyway, it seems I did not follow the instructions exactly. My bad for sending you on a wild goose chase with that /data directory stuff.
In https://support.torproject.org/little-t-tor/circumvention/using-bridges/ it states: If tor is installed from the Tor Expert Bundle ensure the torrc file is in the same folder as the tor binary like you did. I removed the 3 references to the data directory in torrc because they never mention it.
Tried that with no problems in both situations.
You use a different ClientTransportPlugin than in the example. https://bridges.torproject.org/options gives you bridge options. Try obfs4, and since you want IPv6 check yes for IPv6. The webtunnel way does not seem to work for you.
This is all I can think of that is different than my tests which work.