hello,
I tried to send email for support help to tor project, but they don’t answer…let’s try here to get help…
I will try to explain my problem, shortly said, when I access internet through proxy on my laptop, I have problem to connect tor software (not browser bundle) to publish onion website (tor hidden service).
details:
In my laptop I have installed (host machine) Kali Linux (rolling, kernel 6.10.11-amd64), and I have virtual box (guest machine) the same Kali Linux (Kali is based on Debian).
from my terminal: Tor 0.4.8.14 running on Linux with Libevent 2.1.12-stable, OpenSSL 3.4.1, Zlib 1.3.1, Liblzma 5.6.4, Libzstd 1.5.6 and Glibc 2.40 as libc.
when I use regular internet connection from my laptop, everything is working good, but when I use proxy to access internet (192.168.49.1:9099), tor software doesn’t let me to publish website (tor hidden service).
so, I want to have my Onion website inside of virtual machine, for security/hackers reasons, I activated in virtual box NAT network adapter/connection and Bridge network adapter. so if tor is not using one network connection, it will have one additional.
Of course, first thing that came to my mind, I must add proxy in torrc file. I edited file /etc/tor/torrc and I tried both options written below, without #:
# Socks5Proxy 192.168.49.1:9099
--proxy-server="http://192.168.49.1:9099"
tor will not start with this torrc option --proxy-server, when I tried first line “socks5”, tor was connected with port 9099 (sudo netstat -tpln or -peanut), but when I try tor browser bundle to visit my onion website, it is not possible. website is not available.
I must tell you, this proxy 9099 is not socks4 or 5 than HTTP proxy. therefore I tried what I do with chrome, I edit chrome shortcut and write command --proxy-server=… to push chrome to use HTTP proxy, so I tried the same with tor software in terminal but it is failure:
sudo systemctl start tor --proxy-server="http://192.168.49.1:9099"
result: systemctl unrecognized option --proxy-server="http://192.168.49.1:9099"
so, my question for you is how to push tor software to use mentioned HTTP proxy 9099 to connect to the internet it means to publish my onion website?
of course, all files and permissions are correct (apache www is the owner of website (/var/www/html), debian-tor is the owner of onion hostname files, root is the owner of /etc/tor folder with torrc file),
so, when I don’t use proxy 9099 to access internet, I can activate my onion website and I can visit website normally in tor browser bundle, onion website is published with normal internet connection, but it is not possible to visit website when I use http proxy 9099 to access the internet. therefore I need your help, I think I should write someting in torrc file to push tor to use HTTP proxy.
ooo I tried also to add next 2 lines in /etc/profile file, but it didn’t help, some people say if I add it in this file all software will use this http proxy to access the internet, but it is not the truth:
export http_proxy=http://192.168.49.1:9099/
export https_proxy=http://192.168.49.1:9099/
here are additional information, in the case you need it.
virtual machine NAT network connection is: eth0 with IP 10.0.2.15
Bridge network connection is: eth1 with IP 192.168.183.85
when I use command sudo netstat -peanut I can see if Tor is working (or not) and connected to this or that IP and port. unfortunately I can not find now where I copied yesterday result from terminal,
but I remember good when I wrote in torrc file Socks5Proxy 192.168.49.1:9099, tor was successfully connected to both IP addresses and eth0 was with port 9050 while eth1 was with port 9099, so, tor used bridge connection to connect with HTTP proxy, but as I said, it was not possible to visit my website although tor was running on both ports 9050 and ip:9099.
I think problem is that I wrote in torrc file socks5 and it is not 5 than HTTP proxy. therefore tor is working/running but not really connected with the internet. therefore I can not visit my onion website in tor browser bundle.
for the end, to complain about one thing, when I start tor software in terminal it uses port 9050 and therefore port is occupied and tor browser bundle always refused to connect because port 9050 is already used, occupied. it is not possible from the same machine to start both tor software and tor browser, I think it is bad and developers should change it. I had to use tor browser in host machine, it was not possible to use it in virtual machine because I had to run tor to activate onion website, tor hidden service… and when I activate tor (for hidden service), port 9050 is ocupied and tor browser refuse to connect. I think you should make tor browser to connect only to port 9150 and then 9050 will be free for tor hidden service (onion website). people should be able to use tor + tor browser from the same machine.
well, I hope I didn’t take too much of your time, there are many people who need help considering tor is used by many people. in your website you have help answers for tor browser but not for tor software.
have a nice day and hope you can help me, I hope answer is simple and I hope I should just add one line in torrc file (for HTTP proxy)…