OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of b416 »
  • Show Posts »
  • Messages
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

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.

  • Messages
  • Topics
  • Attachments

Messages - b416

Pages: [1]
1
21.1 Legacy Series / NGINX reverse proxy and IPv6
« on: 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 :


Code: [Select]
# 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

Code: [Select]
# 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)...


Code: [Select]
# 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

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

Code: [Select]
# 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

Code: [Select]
# 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 ?

2
19.7 Legacy Series / Re: lets encrypt - ip adress support?
« on: October 09, 2019, 11:32:21 pm »
Let's Encrypt does not support it yet :

https://community.letsencrypt.org/t/will-lets-encrypt-issue-ssl-cert-for-san-ip-address/96549

3
19.1 Legacy Series / SNMP bug ?
« on: 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.

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2