Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - nbari

#1
Hello I have a proxmox cluster and OPNsense in a VM, when I migrate  (move the VM from node1 to node2), I need to update the gateway in OPNSense.

I tried adding all the nodes as extra gateways but for some reason is not working as expected.

Then I tried using the API saving output of /api/routing/settings/get, then modifying the gateway value and setting it with back with:

curl -u user:pass -d @current_gateway.json \
    -X POST -k -s https://<opnsense>/api/routing/settings/set -v

that returned {"result":"saved"} and they tried to reconfigure:

-d "" \
    -X POST -k -s https://<opnsense>/api/routing/settings/reconfigure

returned {"status":"ok"} but gateway did not change

then via SSH I tried route add default X.X.X.X but I get add net default: gateway X.X.X.X fib 0: Invalid argument, also trying with setfib.

Any ideas about how could I change the gateway via API or SSH, I want to automate this process so that when the VM moves the gateway could be updated.

#2
I am facing the same issue, I need to restart Zerotier to make it work again, did you find a solution?
#3
How could I configure DHCPv4 to serve this option:

if substring (option vendor-class-identifier, 0, 3) = "d-i" {
    filename "http://host/preseed.cfg";
}


I would like to automate the installation of Debian

Any ideas ?
#4
General Discussion / Re: troubleshooting dhcpv6
April 07, 2023, 02:29:28 PM
I am having the same problem with the latest OPNsense 23.1.5_4-amd64, the same configuration used to work in PFSense, any ideas on how to fix this?