OPNsense Forum

English Forums => General Discussion => Topic started by: Inxsible on March 26, 2021, 06:58:03 pm

Title: [SOLVED]Possible bug in the HAProxy plugin config file?
Post by: Inxsible on March 26, 2021, 06:58:03 pm
I was trying to set up HAProxy as a reverse-proxy for my LAN only services. Was planning on using the Cloudflare API with DNS-01 challenge.

After spending hours configuring it, the Test syntax always gave me lots of errors. This is all new to me so I thought I was doing something wrong, I redid it twice, but still got errors. Then I deleted the plugin, cleared the haproxy.conf and haproxy.conf.staging files. Re-installed the plugin and without doing anything else, tried the Test syntax and it still failed. The global directive is commented out in the default config file that the plugin installs.

I tried to manually uncomment the global directive in the staging file, but when I tested the syntax again, it still gave me errors. Checked the staging file again and the global directive has been commented again


Would someone please double check this?
Title: Re: Possible bug in the HAProxy plugin config file?
Post by: Inxsible on March 26, 2021, 09:55:25 pm
Apparently, starting up the HAProxy service, copies the staging conf file over to the actual conf file where the global directive is no longer commented.

I kept thinking that something is wrong because the Test Syntax kept failing when I was setting it up
Title: Re: [SOLVED]Possible bug in the HAProxy plugin config file?
Post by: Fright on March 27, 2021, 07:48:57 am
did you try to just enable HAProxy on Services: HAProxy: Settings: Service and Apply?
Title: Re: [SOLVED]Possible bug in the HAProxy plugin config file?
Post by: Inxsible on March 27, 2021, 05:16:10 pm
did you try to just enable HAProxy on Services: HAProxy: Settings: Service and Apply?
Umm...yes.

Did you see my second post?
Title: Re: [SOLVED]Possible bug in the HAProxy plugin config file?
Post by: Fright on March 27, 2021, 09:02:36 pm
oops, sorry. did not fully understand that the problem was solved
"unknown keyword" is thrown when trying to check the syntax and the HAProxy service is disabled