ConvoyPanel / panel

A modern platform tailored for hosting providers and enthusiasts to effortlessly interact with their servers. Seamlessly wrapping around Proxmox, Convoy is easily deployable, affordable at just $6 per node per month for commercial use, and completely free for personal and non-profit endeavors.
https://convoypanel.com
Other
308 stars 51 forks source link

NAT VM Deployment #57

Closed Hostrdp closed 7 months ago

Hostrdp commented 7 months ago

Is there an existing feature request for this?

Describe the feature you would like to see.

Ability to auto deploy NAT VM using NAT IP that assigned on the node Ability to auto configure port forwarding (SSH if Linux, RDP if Windows + HTTP and HTTPS ports) and assigns 20 ports for usages

Describe the solution you'd like.

Maybe using combinations Proxmox API and Iptables scripts

Additional context to this request.

No response

ericwang401 commented 7 months ago

How will port forwarding work exactly if a port that is needed among all the VMs can only be allocated to a single VM?

TeYroXOfficial commented 7 months ago

For example VM will get 20 ports, let's say from 59200->59220, so first port of this range will be set to 22/3389 of vm internal

For example: iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 59200 -j DNAT --to 192.168.100.1:22

Where 192.168.100.1 is a local IP's are assigned from NAT IP block

ericwang401 commented 7 months ago

There seems to be a load of work cut out for this to be implemented, which is something above my pay grade.