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)
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)