Answer the question
In order to leave comments, you need to log in
An iptables rule allowing access from one VM (private IP address) to a second VM (public IP address)?
Hello
Who can help with understanding such a question.
I have two VMs with private IP addresses. One of them has rules that allow access on multiple ports from the outside to the Proxmox public IP address.
So the rules work - I have access to the VM from the outside.
iptables -t nat -A PREROUTING -p tcp -d 116.XXX.XXX.99 --dport 8443 -j DNAT --to-destination 192.168.7.200:8443
Answer the question
In order to leave comments, you need to log in
but by internal ip addresses
ip addresses, meanwhile I need from private ip (one VM) to public ip (second VM).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question