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

    How to permit a new HTTPS port

    Scheduled Pinned Locked Moved General pfSense Questions
    15 Posts 4 Posters 1.1k Views 4 Watching
    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.
    • GertjanG Offline
      Gertjan
      last edited by

      Hi,

      Where is this web site ?
      Somewhere on the Internet ? On one of your LAN's ? Where is the USER ? On a LAN ?

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      • L Offline
        LotfiDZ
        last edited by

        Hello,
        The website is on the Internet, and user is on LAN.

        1 Reply Last reply Reply Quote 0
        • GertjanG Offline
          Gertjan
          last edited by Gertjan

          Then you have nothing to to.
          The default LAN firewall rule is : allow everybody to everywhere, using any protocol.

          Edit : pfSense behaves, by default, as any router that your ISP gave you : from LAN, you can access the world, as soon a sthe WAN interface uis up.
          No need to NAT (NAT handles inbound connections, all forbidden, normally) or to ouch anything, it just works.

          Here a my LAN rules :

          0_1538640570743_2c70a04a-1db5-4b5d-993d-02dfa23c4e4c-image.png

          The first rule is the "anti lockout rule.
          The second a pass all.
          Can visit every IP address, every port, using every protocol.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          • L Offline
            LotfiDZ
            last edited by

            The second one is disabled, because i cannot permit anyone to go Internet. I just need to permit the combination of HTTPS + PORT: 8173
            What i did in TMG, is configure the HTTPS port number by adding that port. Now i'd like to do the same in pfSense.
            Thank you.

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG Offline
              Gertjan @LotfiDZ
              last edited by

              Ah ... this is new :
              @lotfidz said in How to permit a new HTTPS port:

              The second one is disabled, because i cannot permit anyone to go Internet.

              I would start with this :
              0_1538643139666_c7fe9a0f-8d4a-47f5-8da5-df51196db96f-image.png

              1.2.3.4 is the IP of your URL.
              Yous should grant access to DNS, otherwise the 'URL' will never get resolved to 'IP'.
              You can't filter for "https" : that's something that IN the packets, pfSense doesn't look at the data - which is scrambled anyway because SSL. Use IP + port number.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              1 Reply Last reply Reply Quote 0
              • L Offline
                LotfiDZ
                last edited by

                Hello, And thank you for your time.
                For DNS, i cannot change it. Because i have already an Active directory Domain.
                For the rule:
                0_1538649112932_8173.JPG
                For the error message:
                0_1538649160080_ie-error.JPG
                Thank you for your help.

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

                  Your rules do not allow your client to lookup selfservice.stanly.edu so how would they ever talk to that IP on port 8173.. You can just allow clients to that port, but they also need to be able to lookup that FQDN IP..

                  Which in turn is just a cname anyway for another FQDN
                  ;; ANSWER SECTION:
                  selfservice.stanly.edu. 3600 IN CNAME ss-prod.stanly.edu.
                  ss-prod.stanly.edu. 3600 IN A 152.27.54.108

                  Where do these clients point for dns? If they point to pfsense IP then you need to allow the clients to talk to pfsense IP on udp/tcp 53.

                  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 25.07 | Lab VMs 2.8, 25.07

                  1 Reply Last reply Reply Quote 0
                  • GertjanG Offline
                    Gertjan @LotfiDZ
                    last edited by Gertjan

                    @lotfidz said in How to permit a new HTTPS port:

                    Hello, And thank you for your time.
                    For DNS, i cannot change it. Because i have already an Active directory Domain.
                    For the rule:
                    0_1538649112932_8173.JPG
                    For the error message:
                    0_1538649160080_ie-error.JPG

                    You can not ask your clients to resolve selfservice.s***.edu and the also say that you can't "change DNS".
                    If clients (device on LAN) can't resolve then the show stops.
                    Clients have - at a minimum, resolve URL's.
                    Or, just use IP addresses like https://152.2x.54.108:8173 and your good.

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

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

                      @gertjan said in How to permit a new HTTPS port:

                      Or, just use IP addresses like https://152.2x.54.108:8173 and your good.

                      Not always - if the site does not answer to IP, and if https unless the IP is listed in the SAN then they will get an error that will just confuse them shit out of them even more ;)

                      That is points to cname screams there are going to be multiple sites hosted off that IP - that you would get the actual page you want by hitting the IP directly would be unlikely..

                      Just like I thought ;)

                      0_1538666646777_useofIP.png

                      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 25.07 | Lab VMs 2.8, 25.07

                      1 Reply Last reply Reply Quote 0
                      • GertjanG Offline
                        Gertjan
                        last edited by

                        Yep, the IP should be part of the SAN (the certicate on the selfservi****.edu site).

                        Ok, then make your DNS work !

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

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

                          Exactly - if your clients point to your AD for dns, why does it not resolve it? You could just put in a record for that FQDN if you so desired pointing to that IP in the AD dns.. Like a host override in pfsense.

                          If your client can not resolve this fqdn, then they would never hit the firewall with the dest IP and port..

                          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 25.07 | Lab VMs 2.8, 25.07

                          1 Reply Last reply Reply Quote 0
                          • L Offline
                            LotfiDZ
                            last edited by

                            Hello, and thank you for your help.
                            When i was in TMG, i'd do it like the screenshot bellow.
                            I want to do the same in pfSense.
                            For DNS resolution, it's working fine (tested access in the old firewall and it's working).
                            Still looking for your valuable help.
                            Thank you
                            0_1538896897592_4050db74-f534-4a9b-885c-5520ad483dbf-image.png

                            1 Reply Last reply Reply Quote 0
                            • Z Offline
                              zacha
                              last edited by

                              it is a squid setting, you are searching for I assume. your screenshot looks like a squid error message, so I assume you are using the squid proxy. Is this a transparent proxy or explicit? you have to allow port 8173 in squid as ssl port.

                              squid -> acls > ACL SSLPorts

                              hth

                              L 1 Reply Last reply Reply Quote 0
                              • L Offline
                                LotfiDZ @zacha
                                last edited by

                                @zacha
                                Thank you! you're a Hero!! Your solution helped me. And i confess, i've already seen it!

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