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

    Pfsense open ports [SOLVED]

    2.0-RC Snapshot Feedback and Problems - RETIRED
    4
    47
    63.8k
    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.
    • V
      vorgusa
      last edited by

      pretty much I added on for my torrents and one for OpenVPN and everything else is default.  I can not get into it now using the web interface, but I can check at lunch, unless someone knows how to get it from SSH.  I did do the Filter Logs option in the CLI and I see connections being blocked.

      1 Reply Last reply Reply Quote 0
      • ?
        Guest
        last edited by

        Well, I allow a few ports from my work IP, however I have a T-Mobile card on a laptop I decided to run nmap on. And this is what I came up with as well….

        Starting Nmap 5.51 ( http://nmap.org ) at 2011-03-02 10:05 Central America Standard Time

        Nmap scan report for WAN IP

        Host is up (0.076s latency).

        rDNS record for WAN IP

        Not shown: 993 filtered ports

        PORT    STATE SERVICE

        21/tcp  open  ftp

        25/tcp  open  smtp

        80/tcp  open  http

        110/tcp  open  pop3

        143/tcp  open  imap

        443/tcp  open  https

        8080/tcp open  http-proxy

        1 Reply Last reply Reply Quote 0
        • ?
          Guest
          last edited by

          Anyone know if this is because pfsense is rejecting packets instead of dropping packets for these ports?

          1 Reply Last reply Reply Quote 0
          • V
            vorgusa
            last edited by

            You might want to test to make sure you can not proxy through your box externally, unless you have it set that way on purpse.

            1 Reply Last reply Reply Quote 0
            • ?
              Guest
              last edited by

              No reverse proxy set up, using linux if I try to connect to it on any port via nmap it fails. I also see in the firewall logs where it is all being blocked.

              No machines are on at my home at the moment, and I do not host any of the services listed beyond 80/443 externally.

              I believe it's showing up as open because of the response nmap got, I'm just wondering what response.

              1 Reply Last reply Reply Quote 0
              • ?
                Guest
                last edited by

                After firing up a PC @ home, ShieldsUP! (https://www.grc.com/x/ne.dll?bh0bkyd2) shows all ports as closed. I understand nmap uses a little more "thorough" method, however if it can't make a connection, then what response is causing nmap to see it as open?

                I don't want to give people the false impression I have a port open and then they start hammering away.

                1 Reply Last reply Reply Quote 0
                • V
                  vorgusa
                  last edited by

                  On my end I can get to the login screen for my admin web interface, but it will not allow me to log in.  I am not a huge fan of that even if it does prevent login

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    The ports would only be open if you opened them. Everything is blocked by default.

                    A lot depends on not only where you run the scan from but from what kind of router you are running the scan from behind.

                    If you are running a scan from a system behind a proxy (ftp proxy, web proxy, etc) you may be getting lured into that proxy instead of actually hitting the box you are trying to scan.

                    A scan from somewhere else like GRC is likely to be more accurate than an nmap scan from a 3G dongle/tethering setup.

                    If you can hit the web port on pfSense, you can login. If you can't login, you are probably hitting something else – not your firewall.

                    A packet capture on WAN during the scan could confirm more of this.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • C
                      Cino
                      last edited by

                      I just ran a nmap scan from work to my pfsense box at home.. Just the ports I want open are:

                      Discovered open port 443/tcp
                      Discovered open port 21/tcp
                      Discovered open port 80/tcp
                      Discovered open port 3389/tcp

                      I'm using nmap on a xp box… Funny, because my web server is a windows box, its 90% sure i'm running windows..

                      What I did notice the scan states that port 15000/tcp is closed. I've seen this before and can't remember what triggers this.

                      1 Reply Last reply Reply Quote 0
                      • ?
                        Guest
                        last edited by

                        That's a little more reassuring. I cannot connect to any ports using ncat, or simply by accessing the service. I do not get the webportal like the OP.

                        I believe you are right, I'm sure T-Mobile uses some sort of in between to do QoS and other fancy filtering.

                        I'm using Zenmap (nmap gui), and it gives me option of "intensive" scan, and it did show 3 hops before it got to my actual computer. So what you are suggesting is that I ended up testing one of the nodes instead of my box @ home? Sort of neat how that works out. More interesting that some/partial of my connections are being made to the node, and possibly the node is making connections on my behalf like a MITM.

                        Jimp, as always you're very informative and helpful :-D

                        @jimp:

                        The ports would only be open if you opened them. Everything is blocked by default.

                        A lot depends on not only where you run the scan from but from what kind of router you are running the scan from behind.

                        If you are running a scan from a system behind a proxy (ftp proxy, web proxy, etc) you may be getting lured into that proxy instead of actually hitting the box you are trying to scan.

                        A scan from somewhere else like GRC is likely to be more accurate than an nmap scan from a 3G dongle/tethering setup.

                        If you can hit the web port on pfSense, you can login. If you can't login, you are probably hitting something else – not your firewall.

                        A packet capture on WAN during the scan could confirm more of this.

                        1 Reply Last reply Reply Quote 0
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate
                          last edited by

                          You must be hitting something else along the way that is redirecting ports into itself.

                          The most common example of this is pfSense's FTP proxy. If you do an nmap scan from behind a pfSense router for an external IP, it will show FTP open if you have the FTP proxy on, because the proxy is grabbing the FTP traffic.

                          If you really want to know for sure, PM me an IP and I'll nmap it from a known good source and tell you what is really open. :-)

                          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

                          1 Reply Last reply Reply Quote 0
                          • V
                            vorgusa
                            last edited by

                            @jimp:

                            The ports would only be open if you opened them. Everything is blocked by default.

                            A lot depends on not only where you run the scan from but from what kind of router you are running the scan from behind.

                            If you are running a scan from a system behind a proxy (ftp proxy, web proxy, etc) you may be getting lured into that proxy instead of actually hitting the box you are trying to scan.

                            A scan from somewhere else like GRC is likely to be more accurate than an nmap scan from a 3G dongle/tethering setup.

                            If you can hit the web port on pfSense, you can login. If you can't login, you are probably hitting something else – not your firewall.

                            A packet capture on WAN during the scan could confirm more of this.

                            I would be in shock if I somehow got redirected to someone else's pfsense 2.0 box because I was behind a proxy.  Plus I can connect to the SSH port, shouldnt this need to be added manually or was there an option I must have accidentally selected?

                            I tried the filter option and I do not see any reference to my webpage connection, but I did see a reference to a blocked ping when I tried to ping it.

                            The error message I receive from the web interface after I try to log in is this:
                            An HTTP_REFERER was detected other than what is defined in System -> Advanced (https://mywebserver). You can disable this check if needed in System -> Advanced -> Admin.

                            1 Reply Last reply Reply Quote 0
                            • ?
                              Guest
                              last edited by

                              Did you enable the SSH service? What packages did you install? If you have a mobile, could you try connecting to the web portal that way, see if you get the same error?

                              @vorgusa:

                              @jimp:

                              The ports would only be open if you opened them. Everything is blocked by default.

                              A lot depends on not only where you run the scan from but from what kind of router you are running the scan from behind.

                              If you are running a scan from a system behind a proxy (ftp proxy, web proxy, etc) you may be getting lured into that proxy instead of actually hitting the box you are trying to scan.

                              A scan from somewhere else like GRC is likely to be more accurate than an nmap scan from a 3G dongle/tethering setup.

                              If you can hit the web port on pfSense, you can login. If you can't login, you are probably hitting something else – not your firewall.

                              A packet capture on WAN during the scan could confirm more of this.

                              I would be in shock if I somehow got redirected to someone else's pfsense 2.0 box because I was behind a proxy.  Plus I can connect to the SSH port, shouldnt this need to be added manually or was there an option I must have accidentally selected?

                              I tried the filter option and I do not see any reference to my webpage connection, but I did see a reference to a blocked ping when I tried to ping it.

                              The error message I receive from the web interface after I try to log in is this:
                              An HTTP_REFERER was detected other than what is defined in System -> Advanced (https://mywebserver). You can disable this check if needed in System -> Advanced -> Admin.

                              1 Reply Last reply Reply Quote 0
                              • jimpJ
                                jimp Rebel Alliance Developer Netgate
                                last edited by

                                Then you probably aren't getting proxied, you just have the port open for outside access on your WAN rules. It doesn't open itself… :-)  (Or you are scanning from an interface/IP that has access)

                                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                Need help fast? Netgate Global Support!

                                Do not Chat/PM for help!

                                1 Reply Last reply Reply Quote 0
                                • jimpJ
                                  jimp Rebel Alliance Developer Netgate
                                  last edited by

                                  vorgusa:

                                  Nmap scan report for c-x-x-x-x.hsd1.fl.comcast.net (x.x.x.x)
                                  Host is up (0.10s latency).
                                  Not shown: 65529 filtered ports
                                  PORT      STATE SERVICE  VERSION
                                  22/tcp    open  ssh      OpenSSH 5.4p1 (FreeBSD 20100308; protocol 2.0)
                                  53/tcp    open  domain   dnsmasq 2.55
                                  80/tcp    open  http     lighttpd 1.4.28
                                  443/tcp   open  ssl/http lighttpd 1.4.28
                                  2189/tcp  open  sip      FreeBSD/8.1-PRERELEASE UPnP/1.0 MiniUPnPd/1.4 (Status: 501 Not Implemented)
                                  40122/tcp open  unknown
                                  

                                  You really do seem to have overly permissive WAN rules. If you post a screenshot of them were we can advise what might be causing it. (I scanned 1-65535)

                                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                  Need help fast? Netgate Global Support!

                                  Do not Chat/PM for help!

                                  1 Reply Last reply Reply Quote 0
                                  • jimpJ
                                    jimp Rebel Alliance Developer Netgate
                                    last edited by

                                    Something else people seem to forget about too is that if you have UPnP enabled, anything on LAN can open up and forward whatever ports it wants. Even if you aren't hitting the pfSense box with a scan you could be hitting a port forward that opened up via UPnP.

                                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                    Need help fast? Netgate Global Support!

                                    Do not Chat/PM for help!

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      Guest
                                      last edited by

                                      upnp is disabled by default correct?

                                      1 Reply Last reply Reply Quote 0
                                      • jimpJ
                                        jimp Rebel Alliance Developer Netgate
                                        last edited by

                                        Yes, upnp must be enabled by hand.

                                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                        Need help fast? Netgate Global Support!

                                        Do not Chat/PM for help!

                                        1 Reply Last reply Reply Quote 0
                                        • jimpJ
                                          jimp Rebel Alliance Developer Netgate
                                          last edited by

                                          heavy1metal - I got nothing open when I scanned your IP. Though I only scanned 1-3000 due to it being slow (presumably since they were filtered)

                                          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                          Need help fast? Netgate Global Support!

                                          Do not Chat/PM for help!

                                          1 Reply Last reply Reply Quote 0
                                          • ?
                                            Guest
                                            last edited by

                                            Excellent :-) That covers all the "normal 1-1023" service ports anyway. I'm a bit worried about the OP's open ports, he mentioned he has a port open for torrent traffic I believe, possible he wild-carded the destination port by accident?

                                            Also, did you scan from two IP addresses? Or is that the result of load balancing from a dual WAN setup? Or maybe for once in my life I had an US port scan me :-) So used to the Chinese trying to scan me checking if I'm an open proxy. Thank you for checking :-)

                                            @jimp:

                                            heavy1metal - I got nothing open when I scanned your IP. Though I only scanned 1-3000 due to it being slow (presumably since they were filtered)

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