Wierd one.. my brain cant fix
Setup is authelia/NPM/cloudflared combo
I can access subdomains through authelia within my network but if I attempt to access a subdomain remotely I will hit the authelia login page no problem
time="2022-03-13T20:16:23-07:00" level=info msg="Authelia v4.34.4 is starting"
time="2022-03-13T20:16:23-07:00" level=info msg="Log severity set to info"
time="2022-03-13T20:16:23-07:00" level=info msg="Storage schema is being checked for updates"
time="2022-03-13T20:16:23-07:00" level=info msg="Storage schema is already up to date"
time="2022-03-13T20:16:27-07:00" level=info msg="Listening for non-TLS connections on '0.0.0.0:9091' path '/'"
time="2022-03-13T20:17:39-07:00" level=info msg="Access to https://ibracorp.givesmewood.com/ (method unknown) is not authorized to user <anonymous>, responding with status code 401" method=GET path=/api/verify remote_ip=insert ip here
and when i attempt login deets it throws a invalid creds error on the authelia login page. Same deets work internally
time="2022-03-13T20:26:14-07:00" level=error msg="Unsuccessful 1FA authentication attempt by user 'munted ': user not found" method=POST path=/api/firstfactor remote_ip=insert IP here stack="github.com/authelia/authelia/v4/internal/handlers/response.go:177 markAuthenticationAttempt\ngithub.com/authelia/authelia/v4/internal/handlers/handler_firstfactor.go:52 FirstFactorPost.func1\ngithub.com/authelia/authelia/v4/internal/middlewares/authelia_context.go:52 AutheliaMiddleware.func1.1\ngithub.com/fasthttp/
[email protected]/router.go:414 (*Router).Handler\ngithub.com/authelia/authelia/v4/internal/middlewares/log_request.go:14 LogRequestMiddleware.func1\ngithub.com/valyala/
[email protected]/server.go:2341 (*Server).serveConn\ngithub.com/valyala/
[email protected]/workerpool.go:224 (*workerPool).workerFunc\ngithub.com/valyala/
[email protected]/workerpool.go:196 (*workerPool).getCh.func1\nruntime/asm_amd64.s:1581 goexit"
Any ideas what part of my config I sould be looking at? Im stumped
cheers
EDIT- Fixed it. In my situation, the wildcard subdomain in the authelia config as per guide was giving me a bunch of user errors.
## catch-all
- domain: "*.givesmewood.com"
subject:
- "group:admins"
policy: one_factor
I swapped out the wildcard and manually added subdomains and all is workinhg great.