Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Nginx not working on CARP address
« previous
next »
Print
Pages: [
1
]
Author
Topic: Nginx not working on CARP address (Read 752 times)
steilfirn_8000
Jr. Member
Posts: 56
Karma: 0
Nginx not working on CARP address
«
on:
February 05, 2024, 09:54:56 am »
Hello there,
I just started to test the Nginx plugin to use it as a reverse proxy.
When running it on the firewall IP it works as expected but as soon as I use my CARP IP I am no longer able to connect to the site.
Is this a know behaviour or a bug?
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1612
Karma: 176
Re: Nginx not working on CARP address
«
Reply #1 on:
February 05, 2024, 12:18:35 pm »
Your CARP VIP needs the same subnet as the Interface IP Address it resides on.
If your parent interface is /29, the CARP VIP also needs /29.
That's my guess without knowing your configuration.
Also check your firewall rules if clients are allowed to connect to the CARP VIP.
Logged
Hardware:
DEC740
steilfirn_8000
Jr. Member
Posts: 56
Karma: 0
Re: Nginx not working on CARP address
«
Reply #2 on:
February 05, 2024, 01:14:03 pm »
I have configured my VIP including my /28 subnet.
And if I configure Nginx to exclusively use it I can also see that’s listening on it. But it’s not serving anything
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1612
Karma: 176
Re: Nginx not working on CARP address
«
Reply #3 on:
February 05, 2024, 02:18:50 pm »
Have you tried to use curl from the Firewall SSH Shell itself to communicate with NGINX? It's a good way to troubleshoot it. If it gives responses, the next thing I would check is the firewall rules.
Logged
Hardware:
DEC740
steilfirn_8000
Jr. Member
Posts: 56
Karma: 0
Re: Nginx not working on CARP address
«
Reply #4 on:
February 05, 2024, 04:42:40 pm »
I think I found the issue:
My CARP VIP sits on OPNsense 1 while OPNsense 2 is acting a backup.
What is strange is that Nginx is using the VIP on my OPNsense 2 instead of 1st OPNsense.
Logged
steilfirn_8000
Jr. Member
Posts: 56
Karma: 0
Re: Nginx not working on CARP address
«
Reply #5 on:
February 05, 2024, 04:50:53 pm »
And as I initially wanted to set up a full working Nginx on just OPNsense 1 before I sync the settings over to OPNsense 2 I had those issues.
Logged
steilfirn_8000
Jr. Member
Posts: 56
Karma: 0
Re: Nginx not working on CARP address
«
Reply #6 on:
February 05, 2024, 05:10:26 pm »
Okay I think the main issue was that OSPF was stuck at the INIT state.
Not sure why OPNsense 1 did not sync with the other OPSF routers.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Nginx not working on CARP address