I have whonix gateway and work station running on a proxmox host. I would like to be able to forward a port from the gateway to the work station so that I can VNC into the work station.
I tried the following, but it did not seem to work…
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 5900 -j DNAT --to-destination 10.152.152.18:5900
iptables -A FORWARD -p tcp -d 10.152.152.18 --dport 5900 -j ACCEPT
iptables -A POSTROUTING -t nat -s 10.152.152.18 -o eth0 -j MASQUERADE
So my question is, what iptables commands do I need to run on the gateway and what commands do I need to run on the work station?
Thank you so much for any help you can give, I really appreciate it, Ive been banging my head against the desk for a couple of days now trying to get this done.