I have the following setup. If I add a SNAT rule in VM I can successfully route PC traffic through VM (instead of sending it to Ethernet directly) means I can connect to internet. enter image description here

The rule is:

iptables -t nat -A POSTROUTING -o ens37 -j SNAT --to-source

Windows 10 in PC and debian 10 in VM. I get internet access through TPLink modem. Everything is in /24. Gateway is set on VMNet1 and is

Why I can't connect to without adding a SNAT? Is there any alternative solution(no SNAT and MASQUERADE)? I don't have any problem with SNAT just ask this question to know the reason.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.