-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Onlynet=ipv4 disables Tor advertisements #25336
Comments
@kroese Have you checked that there are really no incoming connections from onion peers? I think this should be already working as you would like it to, but the RPC responses that you are seeing may be confusing. "reachable" false means only not reachable in the context of outbound, I think. And that the onion address is not in "localaddresses" seems to be the same issue noted in #25669. |
Just There are two ways to create a Tor service (for accepting incoming connections on the Tor network):
And finally - you have found a bug! It will hopefully be resolved by #24835. @fjahr is right - the RPC output is confusing because reachable is only in the context of outbound. You should be able to get incoming Tor connections even now, but your Tor address is not advertised to the network, so nobody knows about it, which could be a reason why you do not see any incoming Tor connections. |
@vasild Thanks for the confirmation. I described the issue not right, because I didn't mean to say that it disables the incoming Tor connections (which would be impossible, because the tor proxy is a seperate process), but just that For the other issue (limiting outbound to IPv4) I agree with you that it would make much more sense if I just leave out the @fjahr That issue seems very similar. Only in my case Im setting |
If |
Thanks, but I was not using |
I want my node to accept inbound IPv4 and Tor connections, but not make any outbound Tor connections. So I set:
I expect that
onlynet
will limit the outgoing connections to IPv4 only, andonion
combined withexternalip
allow for Tor incoming connections.Actual behavior
Tor gets completely disabled:
Limited is true and reachable is false. Also it does not advertise the onion address, just the IPv4:
As soon as I remove the
onlynet
flag, Tor starts working and the address gets advertised.It seems this behaviour is conflicting with the documentation (which state that
onlynet
affects outbound only).So is this a bug and if not, how can I reach my goal of limiting outbound to non-tor addresses?
The text was updated successfully, but these errors were encountered: