According to whonix community guideline I pasted follwoing in the sys-whonix tor user config:
HiddenServiceDir /var/lib/tor/retroshare/
HiddenServicePort 7812 10.152.152.11:30665
HiddenServiceVersion 3
Then I created the Retroshare profile and gave the onion service address created in sys-whonix.
In the Preferences > Nework > Hidden Service Configuration default tor socks proxy 127.0.0.1 was not working then I gave the IP address of sys-whonix (10.137.0.8) and it said Proxy seems to work.
In Incoming configuration Local address is locked at 127.0.0.1 there I gave port 30665 as mentioned in torrc.
In Onion Address I gave the onion address present in /var/lib/tor/retroshare/hostname and port 7812 as mentioned in torrc.
You create a hidden service for 10.152.152.11:30665 (I assume it’s retroshare qube private IP address and its port?) but it’s done in sys-whonix, this implies:
retroshare must be listening to 10.152.152.11
retroshare qube allows incoming connections to port 30665 (incoming connections are all blocked by default)
I checked in Whonix community and they said I should not use the ip address given in the example but the actual Ip address of the AppVM where I am using Retroshare.
So I gave that Ip address. It is : 10.135.0.10
then in another post on whonix community they said that i should forward localhost to remote host with iptables. So I forwarded it to 10.135.0.10 with following commands:
sysctl -w net.ipv4.conf.all.route_localnet=1
iptables -t nat -A OUTPUT -m addrtype --src-type LOCAL --dst-type LOCAL -p tcp --dport 30665 -j DNAT --to-destination 10.135.3.10
iptables -t nat -A POSTROUTING -m addrtype --src-type LOCAL --dst-type UNICAST -j MASQUERADE
Still nothing changed…
if incoming connections are all blocked by default how to unblock it???
Now I’m thinking about this, I have no idea if whonix is using nftables or iptables. I guess it’s still using iptables so take a look at this guide to allow the port in retroshare qube
I checked it on a debian based App Vm
the command you provided worked there.
iptables doesn’t work there.
i changed the ipaddress in sys-whonix torrc to the ip of debian AppVM