If you don't have any "internal" way to gain access to the proxmox shell, this can be tricky to perform.
Also NEVER use DHCP on the proxmox interface, you'll only will cause issues for yourself.
If you can get shell-access to Proxmox without using that 186 IP, for example through IPMI/ILO/Remote-hands/etc., you can just set the IP in pfSense and then change the /etc/network/interfaces file to it's new setup and apply with an
ifreload -a
, reverting back (and shutting down the VM) if something doesn't work like you planned.
If not, what I personally would do is the following while triple-checking all the settings:
- Make sure that the PFSense-server is set to auto-start
- Set up a temporary setup in PFSense and create a port-forward (from a port other then 8006 external to internally 8006) set to forward from your external IP (or "just" public internet like it looks to be set up right now anyway) going to the "WAN-IP" (the option, not specifically typing it in) to an IP you reserve for the proxmox-server on LAN, as well as https and ssh forwards for your pfsense itself in case you can still not reach proxmox.
- In the network-config of proxmox, set the vmbr0 to be without an IP and gateway, and the vmbr1 to the IP you've selected before and the pfsense-IP as gateway, but DO NOT APPLY yet
- This will cause the config to be written to a "temporary" file which is applied on reboot or when pressed apply.
- Set a reboot from the shell for 5 minutes from now with
shutdown -r +5
(or more if you want more time to do the next steps)
- In PFSense, change the WAN-settings to the new wan-IP/gateway (here you can apply right away)
- Still got network now? Good, apply the network-config and try to reach proxmox through the port-forward you made, then cancel the reboot with
shutdown -c
- Apply worked (and lost connection) but port-forward not working? Wait the 5 minutes (+reboot-time) and hope you didn't configure something incorrectly, or try to fix it through the https/ssl forwards that hopefully do work.
- No network anymore to both proxmox and the port-forward? Wait the 5 minutes (+reboot-time) and hope you didn't configure something incorrectly.
- Once you (hopefully) have back connection, change the IP in the host-file to match the new "internal" IP of proxmox as well as the primairy DNS (set it to the pfsense too, secondary can be on an external one directly)
Like you might see, a lot more steps and a lot more uncertainty, so a remote access and using it through there will probably stay the preferred method.