I set up a Whonix gateway VM, which I want to use to let other VMs (non-Whonix) to communicate over TOR through it. In addition to that, I need my other VMs to be able to access 2 IPs on my LAN not through TOR. I wanted to do that through the Whonix Gateway also. I added the two IPs in 50_user.conf under whonix_firewall.d into the variable NON_TOR_GATEWAY. I additionally added them in the iptables both in OUT and FORWARD:
sudo iptables -I OUTPUT 1 -d <MY_IP> -j ACCPET sudo iptables -I FORWARD 1 -d <MY_IP> -j ACCPET
Still, I was not able to contact those IPs, neither from the gateway itself nor from the other VMs going through the gateway.
Is there another setting that needs to be changed?
A safer idea in my next forum post (not this one).
Probably. It would be insecure. Much higher risk of IP leaks. IP forwarding is what Whonix avoided. And you’d probably still need to hack Whonix firewall.