2 x Proxmox Physical Machines (Clustered, no HA,1 public ip each, vm firewall owning the public ip)
Or the ability to unify Proxmox management interfaces without full "clustering" would have also made this easier.
Anyways, I am not complaining, just sharing my insanity and hopefully someone can get a laugh about it or suggest something more clever...And yes, I know if I used the internal Proxmox firewall this could be a lot easier..
- They are not in the same physical location
- They each have one NIC
- They are routed via public network to each other. (They have private nat'd ips and vpns to each other)
- I have them talking (Corosync) over several VPNs.
- I have put them in a cluster for management and offline migrations (No HA wanted/needed as well as impossible)
- Each of these machines have a single public IP (each) that I give to a virtual firewall (VM running on each) which then gives internet back to each of the physical machines.
- Small problem with cluster though, on reboot they wont start any virtual machines unless they have quorum, and since in order to have quorum they need their firewall running (teehee) which is a VM.
- One machine I have given 2 votes to, so it can reboot itself and start its firewall vm.
- The other machine has 1 vote, which means it wont start its firewall vm to get access to the quorom.
- Qdevice doesn't work either cause of all network access through virtual firewall no starting issue. (Might run one in a docker container...although I have worked around it for now)
- I force the second one to start its firewall ( and net connectivity) via a very silly bash script (/usr/bin/pvecm expected 1; sleep 5; repeat until network is up) on startup that sets the pvecm expected to 1 until it starts the firewall and gets quorate.
- Oh, also the vpn (Wireguard) for the quorum network is also dumb and doesn't restart when it doesn't have connectivity due to firewall vm being down, even when the fw/network comes up. Had to script that to also be smarter.
- Tada!
Or the ability to unify Proxmox management interfaces without full "clustering" would have also made this easier.
Anyways, I am not complaining, just sharing my insanity and hopefully someone can get a laugh about it or suggest something more clever...And yes, I know if I used the internal Proxmox firewall this could be a lot easier..
Last edited: