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

    use port 80 for port-forwarding when using ssl for pfsense interface

    NAT
    3
    8
    851
    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.
    • U
      uz890ed
      last edited by

      Big issue here..
      I only have one public IP by my internet provider.
      I need port 80 for automated ssl using lets encrypt on a service in my lan.
      when I create a port-forwarding for port 80 it just doesnt work as pfsense itsel fis listening there.
      I changed my pfsense to use port 9443 instead of 443 for https so I0m able to reach my server using the port-forward on port 443 form the internet, but port 80 just doesnt work.

      V johnpozJ 2 Replies Last reply Reply Quote 0
      • V
        viragomann @uz890ed
        last edited by

        @uz890ed
        Go to System > Advanced > Admin Access and check WebGUI redirect (Disable webConfigurator redirect rule). Save the settings.

        U 1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @uz890ed
          last edited by

          @uz890ed said in use port 80 for port-forwarding when using ssl for pfsense interface:

          I need port 80 for automated ssl using lets encrypt on a service in my lan.

          Why not just use DNS method to get your acme certs?

          You sure your isp is not blocking 80? Go to say can you see me . org, send traffic to port 80 do you see it on your wan via sniff?

          example.

          sniff.jpg

          You might not want to filter on the source IP like I did, until your sure you know what IP the traffic will come from - not sure if they use multiple source Ips.. I first did a capture - see noise to 80, and then ran it again to filter on the specific IP..

          If your seeing other traffic to 80 at all then you kind of know your isp isn't filtering.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

          U 1 Reply Last reply Reply Quote 0
          • U
            uz890ed @viragomann
            last edited by

            @viragomann said in use port 80 for port-forwarding when using ssl for pfsense interface:

            @uz890ed
            Go to System > Advanced > Admin Access and check WebGUI redirect (Disable webConfigurator redirect rule). Save the settings.

            I tried -> doesn't work.

            1 Reply Last reply Reply Quote 0
            • U
              uz890ed @johnpoz
              last edited by

              @johnpoz
              Hey there
              I just tried this

              it tells me Success: I can see your service on mypublicip.. on port (80)
              but it doesn't work.

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @uz890ed
                last edited by

                @uz890ed it sees a service on 80, it could be pfsense. or it could be device(isp) in front of pfsense.

                you really need to know that pfsense actually sees the traffic, and sends it where you want it to go.

                So you would sniff and validate pfsense actually sees it, and then sniff on the lan side interface your using to port forward the traffic - while you do the same test. You should see the traffic get sent on, or you could look in your state tables and validate the traffic was forwarded.

                if you see it sent on correctly - then where its sending it maybe is not doing whatever your want to do with amce.

                But again - why not just use the DNS method for your acme certs, no you don't have to worry about port forwarding.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                U 1 Reply Last reply Reply Quote 0
                • U
                  uz890ed @johnpoz
                  last edited by

                  @johnpoz the traffic is not blocled by my isp as the pfsense forwards me when connecting via mobile network to it's ssl port which then doesnt load as the ssl port of the pfsense gets blocked as it should

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @uz890ed
                    last edited by

                    @uz890ed so you disabled the 80 redirect on pfsense?

                    Validate that pfsense is not listening on 80, simple sockstat

                    [23.05.1-RELEASE][admin@sg4860.local.lan]/var/unbound: sockstat -l | grep :80
                    root     nginx      90402 9   tcp4   *:80                  *:*
                    root     nginx      90402 10  tcp6   *:80                  *:*
                    root     nginx      90166 9   tcp4   *:80                  *:*
                    root     nginx      90166 10  tcp6   *:80                  *:*
                    root     nginx      90115 9   tcp4   *:80                  *:*
                    root     nginx      90115 10  tcp6   *:80                  *:*
                    [23.05.1-RELEASE][admin@sg4860.local.lan]/var/unbound:
                    

                    I then turn off the redirection..
                    redirect.jpg

                    [23.05.1-RELEASE][admin@sg4860.local.lan]/var/unbound: sockstat -l | grep :80
                    [23.05.1-RELEASE][admin@sg4860.local.lan]/var/unbound:
                    

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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