T toprak Member Apr 10, 2016 3 0 21 35 Apr 11, 2016 #1 hello, proxmox in virtual machine how can I port open ? I want to open 9339. my proxmox server ip etc. in such a way that 163.145.15.54:9339
hello, proxmox in virtual machine how can I port open ? I want to open 9339. my proxmox server ip etc. in such a way that 163.145.15.54:9339
Richard Renowned Member Retired Staff Mar 6, 2015 1,032 71 88 Austria Apr 11, 2016 #2 toprak said: proxmox in virtual machine how can I port open ? I want to open 9339. my proxmox server ip etc. in such a way that 163.145.15.54:9339 Click to expand... AFAIU you mean port forwarding to VM. Not possible when using the built-in NAT - define a bridged network without physical NIC. The with iptables you can - NAT to the bridged network - forwarding ports to bridged network
toprak said: proxmox in virtual machine how can I port open ? I want to open 9339. my proxmox server ip etc. in such a way that 163.145.15.54:9339 Click to expand... AFAIU you mean port forwarding to VM. Not possible when using the built-in NAT - define a bridged network without physical NIC. The with iptables you can - NAT to the bridged network - forwarding ports to bridged network
T toprak Member Apr 10, 2016 3 0 21 35 Apr 11, 2016 #3 Richard said: AFAIU you mean port forwarding to VM. Not possible when using the built-in NAT - define a bridged network without physical NIC. The with iptables you can - NAT to the bridged network - forwarding ports to bridged network Click to expand... thank you master. how can I do it? Can you give an example for iptables ?
Richard said: AFAIU you mean port forwarding to VM. Not possible when using the built-in NAT - define a bridged network without physical NIC. The with iptables you can - NAT to the bridged network - forwarding ports to bridged network Click to expand... thank you master. how can I do it? Can you give an example for iptables ?
LnxBil Distinguished Member Feb 21, 2015 10,274 2,373 303 Saarland, Germany Apr 11, 2016 #4 If I interpret your screenshots correctly, something like this should work: Code: iptables -t nat -A PREROUTING -d 163.145.15.54 -p tcp --dport 9339 -j DNAT --to-destination 10.0.2.15:9339 This assumes that your Proxmox-Host is 163.145.15.54 and you have on that very machine a local-only network of 10.0.2.2 and a VM with IP 10.0.2.15 with a port 9339 to forward to. Maybe you also need masquerading and ip-forwarding enabled. But please have a look at https://pve.proxmox.com/wiki/Network_Model
If I interpret your screenshots correctly, something like this should work: Code: iptables -t nat -A PREROUTING -d 163.145.15.54 -p tcp --dport 9339 -j DNAT --to-destination 10.0.2.15:9339 This assumes that your Proxmox-Host is 163.145.15.54 and you have on that very machine a local-only network of 10.0.2.2 and a VM with IP 10.0.2.15 with a port 9339 to forward to. Maybe you also need masquerading and ip-forwarding enabled. But please have a look at https://pve.proxmox.com/wiki/Network_Model