[ASK] Network Configuration

  • Thread starter Thread starter fahrulru
  • Start date Start date
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?