Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - b416

#1
21.1 Legacy Series / NGINX reverse proxy and IPv6
March 18, 2021, 10:31:51 PM
Hi,

I have configured a nginx reverse proxy configured with a couple of websites running on VMs inside my network. I use IPv4 and IPv6.
Things are pretty simple, I have a domain name and LetsEncryt wilcard certificate, and I use the reverse to access them.

I configured my Upstreams, Upstream servers, Locations, and HTTP servers. Added a WAN rule (picture)


Everything works.. kind of

My problem is the following :

When I access my sites from the LAN, using the domain name (so it uses the WAN address), it works :


# curl -4 -I "https://centreon.domain.com"
HTTP/2 302
server: nginx
date: Thu, 18 Mar 2021 20:57:53 GMT
content-type: text/html; charset=iso-8859-1
location: http://centreon.domain.com/centreon


# curl -6 -I "https://centreon.domain.com"
HTTP/2 302
server: nginx
date: Thu, 18 Mar 2021 20:58:02 GMT
content-type: text/html; charset=iso-8859-1
location: http://centreon.domain.com/centreon



When I access my sites from the outside, it works... as long as I use IPv4 !  Switching to IPv6 it just hangs a while, then throws the errors (same behaviour for http or https, but different messages)...


# curl -4 -I "https://centreon.domain.com"
HTTP/2 302
server: nginx
date: Thu, 18 Mar 2021 20:56:21 GMT
content-type: text/html; charset=iso-8859-1
location: http://centreon.domain.com/centreon


# curl -6 -I "https://centreon.domain.com"
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to centreon.domain.com:443


# curl -4 -I "http://ocsp.domain.com"
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 18 Mar 2021 21:16:37 GMT
Content-Type: application/ocsp-response
Content-Length: 5
Connection: keep-alive


# curl -6 -I "http://ocsp.domain.com"
curl: (56) Recv failure: Connection reset by peer


And can't find anything related in the logs.

The cherry on the top : it works Ok when I disable completely the firewall (Firewall/Settings/Advanced/Disable Firewall).


What am I missing here ?
#3
19.1 Legacy Series / SNMP bug ?
March 12, 2019, 02:15:47 PM
Hello,

I have a monitoring system that supervises, amon gother things, the number of users connected via ssh. When I connect, OPNsense detects it right, but when I log out OPNsense keeps showing the user(s) as connected, even days after the logout. It seems that the users count is not decremented as it should be.