I have a static IP but it's public from ISP( no router, no local IP) That is why my new VM will not get an IPProxmox needs static IPs. You cannot dynamically assign an IP to a Proxmox node.
That I know how to do that, but my question remains, how do I change it?You can use a DHCP for hosts/cluster nodes, just make static reservations and make sure the names are resolvable and tweak your nsswitch.conf accordingly, see:
https://forum.proxmox.com/threads/dhcp-pve-install-on-top-of-debian-not-well-documented.154467/
Also, you would need to use the hostnames in corosync.conf (perfectly supported) to have it future-proof.
That I know how to do that, but my question remains, how do I change it?
I have a static IP but it's public from ISP( no router, no local IP) That is why my new VM will not get an IP
Thank you for the information.I don't think I understand what you are trying to do from the description so far.
If you are saying that you have one public static IP from ISP (and that one so far was assigned to Proxmox VE, single node deployment) and you are wondering how to share it with the VMs for the outside access, I don't think it's the way to go. The first issue is that PVE has public IP (without a firewall, etc.), you are basically asking how to make Debian into a gateway, while it has hypervisor features.
That's out of scope for Proxmox VE to do for you, but you can, as for any Debian, you would neeed to, e.g.:
1. Set up e.g. dnsmasq to give out IPs to the clients;
2. Enable IP forwarding;
3. Set iptables POSTROUTING table to do a MASQUERADE (NAT);
4. While at that put up some firewall rules for the host itself and hope it is enough.
Unless you already have some firewall upstream, I don't think I would want to share it here to encourage anyone to run such setup, but it's easily found with a single web search knowing the above.
Just yesterday I discovered there was at minimum 25,000 PVEs publicly facing their port 8006, those are all machines waiting to be compromised:
https://forum.proxmox.com/threads/how-to-limitate-8006-port-on-the-web.154960/#post-706072
Thank you for the information.
Thank you for the information.
We use essential cookies to make this site work, and optional cookies to enhance your experience.