subnet /24 = 255.255.255.0
added it in VM settings, still same error, no change
I'm not sure what I'm doing wrong
subnet /24 = 255.255.255.0
Can you chekc if you can ping 8.8.8.8 from the Windows VM? If that works, then NAT is fine, but your DNS might be off. In that case, try setting your DNS server in Windows to something like 8.8.8.8 or the same DNS you have on your PVE in `/etc/resolv.conf`.
post-up iptables -t nat -A POSTROUTING -s '192.168.1.1/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.1.1/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o enp2s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o enp2s0 -j MASQUERADE
Amazing!Ah, when i re-check the network configuration I see
Could you try set `enp2s0` instead of `vmbr0` i.e.:Code:post-up iptables -t nat -A POSTROUTING -s '192.168.1.1/24' -o vmbr0 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '192.168.1.1/24' -o vmbr0 -j MASQUERADE
Code:post-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o enp2s0 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o enp2s0 -j MASQUERADE
Then run `ifreload -a` to apply the changes. This should allow the VM to NAT out via your physical NIC.
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 3389 -j DNAT --to 192.168.1.2:3389
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
Yes, exactly! you want traffic from the outside arriving on the physical NIC `enp2s0` to get forwarded into your VM. Also make sure that there is no firewall on both Windows and your PVE.
of course, you will get 35k attempts of logins per 24h as your RDP is now public.
We use essential cookies to make this site work, and optional cookies to enhance your experience.