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 - ctmarc

#1
... or try to get a minimal frontend running, for example listening on 0.0.0.0:80, without any backend pools or anything attached to it.
I got similar messages in the beginning (or probably exactly the same) but those went away after configuring the first service.

Afterwards, those will be really helpful in order to prevent errors.
After adding any change, you'll be able to test the syntax of the generated configuration, and get immediate feedback before killing your HAProxy by applying a invalid configuration :-)

I didn't research the message at that point but it made sense... in my mind that a staging config will only be generated after any configuration is available, and that a "interim" staging configuration will cause a warning to be shown about a "pending configuration change" that contains nothing.

And lastly, I wouldn't be too afraid to use HAProxy or OPNSense, or to add things there, because they are very stable and it's a pleasure to have them running, and so lang as you don't have huge production systems behind them, you can play with it and don't have to be afraid about anything.
#2
High availability / Re: CARP WAN VIP not reachable
December 12, 2025, 11:43:14 AM
I have a situation where our hosting provider filters out the CARP protocol including the IPs with VHID.
But with a normal IP alias it works.
Had to write my own script that tracks the CARP IP on the LAN side and adds or removes IP aliases on the WAN interfaces, as soon as the CARP status changes on LAN.
So far it works reliably, but it's not 100% optimal...
#3
Hello, I'm trying to set up a user group with slightly reduced privileges, on OPNsense 25.7.9-amd64.
This group should be able to switch into CARP maintenance mode, for example to update the system, besides other tasks.

Now the "Virtual IPs -> Status" page is accessible, but when clicking one of the 2 buttons, nothing happens except for a popup with title "Error changing status" and message "200". I'm not sure whether it's intended that way and root is required to modify network interfaces, or I've missed something, or whether it's maybe a bug.

Edit -- found the simple solution, after adding "all privileges" to the user, everything works, on the other hand it's not possible to lock anything anymore.
#4
German - Deutsch / Re: login incorrect nach Update
December 12, 2023, 01:57:35 PM
the_wolf hat hier einen Ausweg gefunden:
https://forum.opnsense.org/index.php?topic=5497.msg22317#msg22317

- in single-user modus booten
- mount -u /
- su

so wird der startup-screen von opnsense angezeigt, man kann das root passwort zurücksetzen (und z.b. auch gleich von OTP zurück zu "lokaler datenbank" wechseln)
#5
General Discussion / Re: pfsync through VPN
July 18, 2019, 09:07:14 AM
Problem solved by upgrading from 19.1 to 19.7. :o
I can enter and leave persistent CARP maintenance mode and the skew is changing as expected.
#6
General Discussion / pfsync through VPN
July 17, 2019, 11:16:40 AM
Hello, I'm trying to get a failover group to work, similar to the article https://docs.opnsense.org/manual/how-tos/carp.html. I'm afraid I'm not very experienced with networking, but am trying to catch up.

The situation is a bit different from the manual because the 2 VMs that we use both have only 1 WAN network interface, and no LAN interface. What I'm trying to do is to group both firewalls in a VPN and have pfsync use that tunnel for synchronisation. Later there would be a second VPN that connects to the CARP virtual IP, the final goal would be to have a highly-available VPN server. But my problems start already in the first part.

pfsync is not fully synchronizing and both the main, and the backup firewall claim "MASTER" status on the VIP.
I suspect that my interface setup is the root of the problem:

Master node:
WAN: vtnet0
SYNC: ovpns1 (the VPN server)

Backup node:
WAN: vtnet0
SYNC: ovpnc1 (the VPN client)

On the master firewall, the synchronisation appears to work, as I get "pfsync bulk done" in the master's logfile, and the XMLRPC sync is correctly replicating most of the configuration on the backup node. The WAN starts to advertise the VIP with "skew 0" on the master node and "skew 100" on the backup node.

But the backup FW is not assuming backup state, both ifconfig and on the Firewall/VIP/status page are saying "MASTER", and the "settings > high availability" page shows the default blue box ("no backup node configured").

When I "enter persistent CARP maintenance" on the master FW, the log shows the following output:


Jul 17 09:30:00 opnsense: /firewall_virtual_ip.php: The command `/sbin/ifconfig 'vtnet0' -alias '111.222.333.45'' failed to execute
Jul 17 09:29:02 kernel: carp: demoted by -240 to 0 (sysctl)
Jul 17 09:28:10 kernel: carp: demoted by 240 to 240 (sysctl)
Jul 17 09:26:17 kernel: vtnet0: promiscuous mode disabled
Jul 17 09:26:17 kernel: carp: 192@vtnet0: MASTER -> INIT (hardware interface up)
Jul 17 09:26:17 kernel: ifa_maintain_loopback_route: deletion failed for interface vtnet0: 3
Jul 17 09:26:17 kernel: ifa_maintain_loopback_route: deletion failed for interface vtnet0: 3


And afterwards, vtnet0 has lost it's VIP alias, and the interface stops advertising the CARP address. The backup firewall still advertises with unchanged skew (100). After leaving persistent CARP maintenance, the virtual IP remains lost, and it's only restored after a reboot.

I suspected that the problem is the difference between the SYNC interfaces on master and backup, because one is linked to the interface ovpns1 and the other to ovpnc1. But then again, the problem appears to come from vtnet0 which is the WAN interface, and which is exactly the same on both nodes.

I'm trying all sorts of things but so far nothing would really work. Currently a bit stuck and if anybody has a tip I'd greatly appreciate it. Does anybody have a tip on how to fix that pfsync / CARP installation?

Greetings
marc