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

    SSL cert or port forwarding problem.

    Scheduled Pinned Locked Moved webGUI
    30 Posts 4 Posters 6.6k 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.
    • D
      doktornotor Banned
      last edited by

      @jvamos:

      Not found as in the connection times out.

      Ah, that's wonderful use of terminology. NOT FOUND - when talking about webservers - means this: https://en.wikipedia.org/wiki/HTTP_404 - it definitely does NOT mean timeout.

      And - once again - what's wrong with hostnames?!?!?!

      www.example.com -> webserver
      ftp.example.com -> FTP server
      smtp.example.com -> SMTP server
      …

      1/ Start designing things is a sane way.
      2/ Use logs and provide some useful info here finally.

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        The DNS host overrides work fine.

        Your first problem is that you're using a domain name as a host name.  Try ftp.mysiteftp.com and www.mysiteftp.com instead.  AKA do it right.

        In order to test DNS, use a DNS testing tool.  dig or drill or, if you have nothing but windows available, nslookup, though it sucks.

        "Doesn't work" tells us nothing.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • J
          jvamos
          last edited by

          It's a crushftp server it is an FTP server with an HTTP interface as well. I'm sorry, I'm not following you.

          The hostname as in www? Or the hostnames on my local network?

          I don't know if I am being clear on the topology here. The server does a few things here. I use it for FTP as well. I bought a domain to use with our local IP. Is that insane? Sometimes I was wondering if it was the right thing to do. Having the server local is a big deal though as having instantaneous access to large files locally the day after they arrive is typical here.
          Please bear with me here as I am still kind of new to pfsense.

          When I use nslookup I see the DNS entry that belongs to the domain name that I registered. Should I be seeing the IP of the override?

          1 Reply Last reply Reply Quote 0
          • J
            jvamos
            last edited by

            Using nslookup with the address I used in the domain override gets me a timeout error after returning the gateway address.

            1 Reply Last reply Reply Quote 0
            • J
              jvamos
              last edited by

              They come up as non-authoritative answers so have to I assume it's something to do with my local DNS server not being queried.

              Never heard of drill or dig.

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                OMG. Post the nslookup output. Post webserver logs. Post FTP server logs. Post firewall logs. Post SOMETHING. Not "t3h noes, it still no workie, t3h suck"… There's still ZERO information usable for debugging your issue.

                @jvamos:

                The server does a few things here. I use it for FTP as well. I bought a domain to use with our local IP. Is that insane? Sometimes I was wondering if it was the right thing to do.

                I have a strong feeling you really have no idea what you are doing. Once again - use HOSTNAMES. It doesn't matter that they point to the same IP/CNAME/server. Stop using domain name for everything.

                1 Reply Last reply Reply Quote 0
                • J
                  jvamos
                  last edited by

                  OK at least we are getting somewhere as NOW I understand what you mean. Why use domain name when I am local. It's because a small function of the ftp server is to share links with those not technologically inclined to lead them straight to a file. When using the hostname with this function it inserts the hostname which is not pertinent to those outside of our network.

                  Any way you can try and help me solve the issue instead of bashing my practices? The logs of the ftp server are blank as nothing gets to the ip or hostname I specified. Nothing relevant in the firewall logs either.

                  1 Reply Last reply Reply Quote 0
                  • D
                    doktornotor Banned
                    last edited by

                    @jvamos:

                    When using the hostname with this function it inserts the hostname which is not pertinent to those outside of our network.

                    Eeeeeeeeeeeeeeeeee?!? DAFUQ?!?

                    @jvamos:

                    Any way you can try and help me solve the issue instead of bashing my practices? The logs of the ftp server are blank as nothing gets to the ip or hostname I specified. Nothing relevant in the firewall logs either.

                    Why the HECK don't you post the nslookup output at least?!?!

                    1 Reply Last reply Reply Quote 0
                    • J
                      jvamos
                      last edited by

                      :'( :'( :'( :'( :'( :'( :'(
                      Sad boy.

                      This ftp server sends out emails and it wraps the local hostname into the link. When they use this link it doesn't lead anywhere.

                      It's a nuance of a program I use. Somehow, being on your flame heavy thread is actually helping me. This redirect should really work.

                      nslookup www.myurlforourftphttpfileserver.com
                      Server:  pfSense.imagesoffice
                      Address:  192.168.1.1
                      
                      DNS request timed out.
                          timeout was 2 seconds.
                      DNS request timed out.
                          timeout was 2 seconds.
                      DNS request timed out.
                          timeout was 2 seconds.
                      DNS request timed out.
                          timeout was 2 seconds.
                      *** Request to pfSense.imagesoffice timed-out
                      
                      >nslookup sameurlwithnowww.com
                      Server:  pfSense.imagesoffice
                      Address:  192.168.1.1
                      
                      Non-authoritative answer:
                      Name:    theurlfortheftp.com
                      Address:  **.*.*.* (my office IP)
                      
                      

                      Be gentle.

                      1 Reply Last reply Reply Quote 0
                      • DerelictD
                        Derelict LAYER 8 Netgate
                        last edited by

                        So stop messing around with port forwards and fix your DNS. This works out-of-the-box so it's anyone's guess what you've changed.

                        Chattanooga, Tennessee, USA
                        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                        Do Not Chat For Help! NO_WAN_EGRESS(TM)

                        1 Reply Last reply Reply Quote 0
                        • J
                          jvamos
                          last edited by

                          What is the alternative to port forwards to direct a user to my webserver behind the firewall? I want to set up a DMZ at some point I just need to install a third NIC which I have on standby. Should I just be going down that route immediately?

                          1 Reply Last reply Reply Quote 0
                          • DerelictD
                            Derelict LAYER 8 Netgate
                            last edited by

                            You need DNS that works before you do anything.

                            Chattanooga, Tennessee, USA
                            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                            Do Not Chat For Help! NO_WAN_EGRESS(TM)

                            1 Reply Last reply Reply Quote 0
                            • J
                              jvamos
                              last edited by

                              I didn't change any DNS resolver settings except for the redirect. DNS is working. You probably didn't scroll down?

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

                                Non-authoritative answer:
                                Name:    theurlfortheftp.com
                                Address:  *... (my office IP)

                                So that returns your PUBLIC IP??

                                "What is the alternative to port forwards to direct a user to my webserver behind the firewall?"

                                Users outside?  Or users inside?

                                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.8, 24.11

                                1 Reply Last reply Reply Quote 0
                                • J
                                  jvamos
                                  last edited by

                                  Hey John,

                                  Thanks for your help. I may not have made everything I am doing totally clear and I apologize for that. My public IP is returned when doing the nslookup. I have been reading and cannot decide whether to use a DMZ or not as a samba server would be exposed along side it. I guess I am not familiar with common workplace infrastructure except theoretical models. I want users outside the network to access the webserver from the URL which leads to my public IP at this office. Users on the inside should be able to hit it from the public URL as well as that is necessary for people "generating links" for those outside the network. Right now this is possible using my old router. This whole experience has pushed me to buy a Networking A+ course so I guess that is a positive.

                                  1 Reply Last reply Reply Quote 0
                                  • DerelictD
                                    Derelict LAYER 8 Netgate
                                    last edited by

                                    Your requests are timing out. That's broken DNS. I don't know how you can expect anything to work.

                                    Chattanooga, Tennessee, USA
                                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

                                      I am with derelict here, if you have to query for something multiple times before you get an answer you have a serious problem..

                                      As to "as a samba server would be exposed along side it."  Your not going to expose samba to the public internet???  Your just saying the web server needs to talk to this samba box??

                                      Here is the thing, allowing external access to your web server (httpd) is nothing more than a simple port forward of 80 and 443 if you want ssl.  As to if that httpd box is on your lan segment or another segment (firewall segment or dmz) is up to you..  To be honest that has little to do with accessing it from the outside and using split dns for your users locally to access it using the same fqdn..

                                      So if www.myurlforourftphttpfileserver.com resolves on the public internet to your public IP..  Then just have your local dns resolve that to your private IP there you go local users using your local dns point to the local IP..  If you have put that IP on its own firewalled segment from your lan, then you would have to allow that traffic between your lan and "dmz" segment in pfsense.

                                      Then just forward 80,443, 21 to this server or if your using ftps ftpes the appropriate ports for that..  You do understand that running a ftp server behind nat is problematic if you do not fully understand the ftp protocol.  Is your ftp server going to support active/passive or just active?  Keep in mind there is no helper/proxy for pfsense any more..  So you have to forward the passive ports your ftp server would be using.  Even if there was helper still the use of ftps/ftpes encrypted control channel prevents any sort of helper/proxy from changing private IP to public and or opening the appropriate ports in the firewall that are being used int he port/pasv command.

                                      To be honest I would get http/https working first via your port forward..  See the port forwarding doc, then play with ftp after you have read and understand how the protocol works with control and data channels and active vs passive.  To be honest ftp even ftps or es should be avoided and just use sftp or even just http/https for file transfers..

                                      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.8, 24.11

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        jvamos
                                        last edited by

                                        Thanks John,

                                        I don't understand why else the redirect wouldn't work unless I'm plugging in the wrong values. DNS seems to be working because my domain doesn't include the www. as it is registered as a domain.  I have those ports forwarded as well as a passive range for my Crushftp server. I don't want the whole machine exposed so port forwarding seemed the best way to go. The port forwards are working when accessing the site remotely but not locally is the best way to describe my issue. I believe when I obscured my IP I confused the whole issue.

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

                                          "The port forwards are working when accessing the site remotely but not locally is the best way to describe my issue"

                                          What part do you not understand about split dns?????

                                          When your your public internet, you get your public IP when you look up yourdomain.tld lets say 1.2.3.4, when your on your network and you lookup yourdomain.tld you get 192.168.1.101

                                          What does port forwarding have to do with that???  NOTHING!!!

                                          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.8, 24.11

                                          1 Reply Last reply Reply Quote 0
                                          • J
                                            jvamos
                                            last edited by

                                            I don't have a domain controller. I don't have a domain set on the router either.

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