[SOLVED] Proxmox iptables not working on windows vm?

plifers

New Member
Aug 27, 2021
7
0
1
35
I have a vps with nginx acting as a reverse proxy, I can connect to the vm through the vps ip.
I'm just having trouble setting up the windows vm to mask itself as the vps ip.
I want all incoming traffic to see only the vps ip and outgoing to send through the vps ip
VM is running windows 2012 server


Current iptable rules
iptables -t nat -A POSTROUTING -s 192.168.2.27 -j SNAT --to xxx.xxx.xx.xx (VPS IP)
iptables -t nat -A PREROUTING -d 192.168.2.27 -j DNAT --to-destination xxx.xxx.xx.xx (VPS IP)
 

Attachments

  • 0eHOfNI.png
    0eHOfNI.png
    31 KB · Views: 7
  • mCik0np.png
    mCik0np.png
    10.4 KB · Views: 7
  • VSuKyHZ.png
    VSuKyHZ.png
    8.8 KB · Views: 7