OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.7 Legacy Series »
  • Nginx unreachable in IPv4
« previous next »
  • Print
Pages: [1]

Author Topic: Nginx unreachable in IPv4  (Read 1264 times)

Edtech

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
    • View Profile
Nginx unreachable in IPv4
« on: September 08, 2021, 09:58:38 am »
After restarting OPNsense, especially after an update, nginx is not reachable via my IPv4 on port 443. It is however perfectly reachable in IPv6 on this same port.

Sometimes, a simple reboot and it starts again, other times, nothing to do for days, it does not come back.

I checked my rules in the firewall, they are common IPv4/IPv6 so it can't come from there. I moved the OPNsense GUI to another port to make sure there is no conflict with port 443.

Any idea where the problem could be coming from?
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Nginx unreachable in IPv4
« Reply #1 on: September 08, 2021, 06:40:17 pm »
The webgui has also a redirect port that needs to be disabled to prevent it blocking port 80.

You could try it locally using curl so there is no networking involved. The nginx plugin does not bind to any interface - this way it prevents itself from getting in trouble with interface going up and down.
Logged

Edtech

  • Newbie
  • *
  • Posts: 12
  • Karma: 2
    • View Profile
Re: Nginx unreachable in IPv4
« Reply #2 on: September 10, 2021, 07:50:12 am »
This option is already disabled in my settings. I am still looking for the reason for this random problem.
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Nginx unreachable in IPv4
« Reply #3 on: September 11, 2021, 08:58:13 am »
If it happens every few days I suspect a nginx (software itself) or FreeBSD bug. The plugin configures nginx to listen on 0.0.0.0 and :: to avoid such cases with interfaces going down and coming up again.
Logged

Fright

  • Hero Member
  • *****
  • Posts: 1485
  • Karma: 133
    • View Profile
Re: Nginx unreachable in IPv4
« Reply #4 on: September 11, 2021, 06:08:50 pm »
any clue in nginx error log?
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Nginx unreachable in IPv4
« Reply #5 on: September 12, 2021, 10:21:31 pm »
Maybe. Usually the log is filled with access errors but may contain IO issues as well.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.7 Legacy Series »
  • Nginx unreachable in IPv4
 

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