OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: Bytechanger on March 02, 2022, 08:16:49 am

Title: Restore/ Backup HAProxy config?
Post by: Bytechanger on March 02, 2022, 08:16:49 am
Hi,

is there a way (GUI or SSH) do backup and restore (other firewall) my haproxy config?

(I moved back from proxmox to standalone, because opnsense renew every hours my WAN connection, horror).

Greets

Byte
Title: Re: Restore/ Backup HAProxy config?
Post by: cookiemonster on March 02, 2022, 02:56:20 pm
The service UI has an export config facility below Maintenance and Log File. Are you looking for something different?
Title: Re: Restore/ Backup HAProxy config?
Post by: Bytechanger on March 02, 2022, 03:43:24 pm
Thanks, but where can I import it to another opnsense haproxy?

Greets

Byte
Title: Re: Restore/ Backup HAProxy config?
Post by: cookiemonster on March 02, 2022, 03:55:56 pm
I see what you mean. There is export but no import facility. Apologies, I missed that.
At this point I'd be looking at the code to see where the config is.
It seems to be /usr/local/etc/haproxy.conf *but* I am not saying that's a safe place to import it into.
Wait for confirmation from someone who knows.
Title: Re: Restore/ Backup HAProxy config?
Post by: Bytechanger on March 02, 2022, 03:58:49 pm
I copied that file from one opnsense to another, but this doesn´t change anything. I think, this config is generated automaticly ??

Or I did something wrong.

Greets

Byte
Title: Re: Restore/ Backup HAProxy config?
Post by: fabian on March 02, 2022, 06:47:28 pm
Check /conf/config.xml