Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    NGINX 80/443 redirect?

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 274 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chudakC
      chudak
      last edited by

      This post is deleted!
      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @chudak
        last edited by

        @chudak
        If NGINX runs on a device behind pfSense within a private subnet you have to forward 80 and 443 to it, of course.

        Firewall > NAT > port forwarding.
        Add a rule:
        interface: WAN
        protocol: TCP/UDP
        destination: WAN address
        destination port: HTTP
        Redirect target IP: NGINX IP
        Redirect target IP: HTTP

        Add a second rule for port 443 (HTTPS).

        Ensure that the webGUI is not listening on port 80/443. System > Advanced > Admin Access > TCP port

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.