Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
[SOLVED]Possible bug in the HAProxy plugin config file?
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED]Possible bug in the HAProxy plugin config file? (Read 2426 times)
Inxsible
Full Member
Posts: 143
Karma: 6
[SOLVED]Possible bug in the HAProxy plugin config file?
«
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?
«
Last Edit: March 26, 2021, 09:55:52 pm by Inxsible
»
Logged
Inxsible
Full Member
Posts: 143
Karma: 6
Re: Possible bug in the HAProxy plugin config file?
«
Reply #1 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
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: [SOLVED]Possible bug in the HAProxy plugin config file?
«
Reply #2 on:
March 27, 2021, 07:48:57 am »
did you try to just enable HAProxy on Services: HAProxy: Settings: Service and Apply?
Logged
Inxsible
Full Member
Posts: 143
Karma: 6
Re: [SOLVED]Possible bug in the HAProxy plugin config file?
«
Reply #3 on:
March 27, 2021, 05:16:10 pm »
Quote from: Fright on March 27, 2021, 07:48:57 am
did you try to just enable HAProxy on Services: HAProxy: Settings: Service and Apply?
Umm...yes.
Did you see my second post?
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: [SOLVED]Possible bug in the HAProxy plugin config file?
«
Reply #4 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
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
[SOLVED]Possible bug in the HAProxy plugin config file?