OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: cyrus104 on August 31, 2022, 01:16:48 AM

Title: [SOLVED] HAProxy issue 403 error
Post by: cyrus104 on August 31, 2022, 01:16:48 AM
I recently resetup HAProxy with ACME let's encrypt using a known working setup guide.

I'm getting a 403 error with the message from the guide in the body of the site.

The haproxy log shows the following each time I try to get to the page from outside my network:
Error haproxy 154.89.5.203:44012 [30/Aug/2022:19:10:22.111] default_443~ default_443/<NOSRV> 0/-1/-1/-1/0 403 203 - - PR-- 1/1/0/0/0 0/0 "GET / HTTP/1.0"

I'm happy to provide additional logs to help troubleshoot the issue.
Title: Re: HAProxy issue 403 error
Post by: Fright on August 31, 2022, 07:44:43 AM
   PR  The proxy blocked the client's request, either because of an invalid
          HTTP syntax, in which case it returned an HTTP 400 error to the
          client, or because a deny filter matched, in which case it returned
          an HTTP 403 error
Title: Re: HAProxy issue 403 error
Post by: cyrus104 on August 31, 2022, 06:31:58 PM
Thank you for pointing me in the correct direction, in my rule no_host_match I forgot to add the condition of this hostname match.

I have fixed this error.
Title: Re: [SOLVED] HAProxy issue 403 error
Post by: Fright on August 31, 2022, 06:57:52 PM
glad it works. thanks for the feedback