[ASK] Network Configuration

F

fahrulru

Guest
hello everybody
i want to ask about network configuration

here is the case :

i have 1 proxmox server and 2 VM running inside server
i just have 1 Public IP for proxmox server + 2 local IP for VM and i want to access the VM from outside (internet)
how i configure it?
thanks for the attention :D
 
Create a firewall rules to pass ports to VM

like for TCP:
/sbin/iptables -t nat -A PREROUTING -p tcp -m tcp --syn -s 0.0.0.0/0.0.0.0 --sport 1024:65535 -d YOUR_INTERNET_IP/255.255.255.255 --dport PORT -m state --state NEW -j DNAT --to-destination LAN_VM_IP:pORT
 
Create a firewall rules to pass ports to VM

like for TCP:
/sbin/iptables -t nat -A PREROUTING -p tcp -m tcp --syn -s 0.0.0.0/0.0.0.0 --sport 1024:65535 -d YOUR_INTERNET_IP/255.255.255.255 --dport PORT -m state --state NEW -j DNAT --to-destination LAN_VM_IP:pORT


i will try,
but is that for outgoing only or incoming too?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!