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

How to close Port 23, 53 and 80 on WAN?

Firewalling
5
48
7.5k
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.
  • B
    Bernd6560
    last edited by Nov 6, 2019, 5:59 PM

    Thanks for the help so far, so it's definitely the VPN, you say?

    I wrote a ticket to my VPN provider, to be honest, I would be surprised if they answer at all.

    1 Reply Last reply Reply Quote 0
    • D
      Derelict LAYER 8 Netgate
      last edited by Nov 6, 2019, 6:06 PM

      It is something else upstream responding.

      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
      • B
        Bernd6560
        last edited by Nov 7, 2019, 11:39 AM

        They have actually responded, but I'm not so sure what to think of it.
        Sounds like the "it's a feature" excuse ...

        "That's a misunderstanding. The scan was based on the currently used IP address of our VPN server. There are necessarily a lot of open ports, otherwise the server could not offer the necessary services."

        1 Reply Last reply Reply Quote 0
        • N
          NogBadTheBad
          last edited by Nov 7, 2019, 11:42 AM

          @Bernd6560 said in How to close Port 23, 53 and 80 on WAN?:

          "That's a misunderstanding. The scan was

          Err are they saying the run their VPN using ports 23, 53 and 80 to try and anonymise what the servers look like from the internet ?

          Andy

          1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

          B 1 Reply Last reply Nov 7, 2019, 12:28 PM Reply Quote 0
          • B
            Bernd6560 @NogBadTheBad
            last edited by Bernd6560 Nov 7, 2019, 12:37 PM Nov 7, 2019, 12:28 PM

            @NogBadTheBad I asked what you wrote, here is the response ...

            "I have already written that it is running on the VPN server services."

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by johnpoz Nov 7, 2019, 1:13 PM Nov 7, 2019, 1:12 PM

              It's possible they run vpn services themselves on the 53 and 80 ports to try and circumvent outbound restrictions for some locations. That would explain also say the 465 port.. 23 seems odd.. That is normally not going to be allowed outbound from anywhere..

              Doesn't matter why to be honest, The point is this whole thread has been complete an utter waste of everyone's time.. Since what some host on the internet answers to has zero to do with the pfsense wan rules.

              Its a akin to omg, www.google.com answers to 80 and 443.

              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 1
              • G
                Gertjan
                last edited by Nov 7, 2019, 1:24 PM

                Just to complete the info : what are the rules on your OpenVPN interface ?
                That's the interface being used when you use your VPN service.
                It's the OpenVPN that acts as your WAN interface now (the real WAN interface just transports the VPN tunnel outside - initiated from the inside iof your network - pfSense itself or some other device).

                Your VPN service probable NAT's standard 'usual' ports to you, like 23,53,80 443 etc.
                That's no big deal actually, up to you to block all incoming non solicited traffic.

                On a default pfSense with no rules added by you - no VPN (client) setup, just the minimal "click and online" setup, there will be no security issues.
                Do not take my word for it, just do the test.

                Now, when you find issues after adding things like 'OpenVPN client' I tend to say : finish your setup first - or check what "unknown facilities" you added to your setup .

                This question is easy to answer :

                @Bernd6560 said in How to close Port 23, 53 and 80 on WAN?:

                That's a big security hole, so how can I close these ports?

                Shut down the VPN connection - and you'll be fine.

                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
                • J
                  johnpoz LAYER 8 Global Moderator
                  last edited by Nov 7, 2019, 1:32 PM

                  Those ports are not going to be sent down the tunnel to his box... Not unless his vpn supports them and he set them up... I would be LARGE sums of money that there is no vpn service on the planet that would forward those down.. For them to do that they would need an IP for every single client..

                  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

                  B 1 Reply Last reply Nov 7, 2019, 5:44 PM Reply Quote 0
                  • B
                    Bernd6560 @johnpoz
                    last edited by Nov 7, 2019, 5:44 PM

                    @johnpoz said in How to close Port 23, 53 and 80 on WAN?:

                    Those ports are not going to be sent down the tunnel to his box...

                    I asked about it, you're right.

                    I would bet LARGE sums of money that there is no vpn service on the planet that would forward those down.. For them to do that they would need an IP for every single client..

                    You would probably lose that bet, they do just that.

                    If anyone is interested, here is the full conversation ->

                    [me]
                    Why are LESS services running with your filters?

                    [staff]
                    Presumably because the tests were done with different IP addresses (of the VPN server). Some of the services do not run on all IP addresses, or there are different services behind the ports depending on the IP address.

                    [me]
                    Is port 23 and 80 NORMAL?

                    [staff]
                    Yes, depending on the IP address of the VPN server this is normal. These are IP addresses that you share with other other companies, and in addition to which some ports are used for services of the server. That there are ports open and in use is, as already written perfectly normal. Sure, we could close down all ports, then just none of the services on the VPN servers would work anymore. ;)

                    [me]
                    Does INBOUND (port 23, 80) get through to me?

                    [staff]
                    No, I had already written several times. What is passed through are the ports of the port forwarding, of which we offer two different types, both of which can be configured on the corresponding configuration page in the customer area of ​​our website.

                    1 Reply Last reply Reply Quote 0
                    • D
                      Derelict LAYER 8 Netgate
                      last edited by Derelict Nov 7, 2019, 5:53 PM Nov 7, 2019, 5:52 PM

                      @Bernd6560 said in How to close Port 23, 53 and 80 on WAN?:

                      [staff]
                      No, I had already written several times.

                      There's a lot of that going around. Plenty of explaining going on but not a lot of listening.

                      What is passed through are the ports of the port forwarding, of which we offer two different types, both of which can be configured on the corresponding configuration page in the customer area of ​​our website.

                      Exactly. If they offer port forwarding (some do) you have to configure it. Then you have to pass that traffic on the OpenVPN or assigned interface tab for the connection to be passed into the firewall.

                      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
                        johnpoz LAYER 8 Global Moderator
                        last edited by johnpoz Nov 7, 2019, 6:30 PM Nov 7, 2019, 6:25 PM

                        And you clearly stated you did not configure any of that...

                        My VPN provider supports it, but I have not changed any settings on my VPN account, it is turned off by default

                        And sure they might offer you to forward port 32456 to your port 80.. But it has to be freaking configured!!! And that is not 80... If it was 80 they could do it once for each IP...

                        Again what your seeing is you scanning freaking google.com and asking why they show 80 open... Turn off your vpn and actually scan pfsense WAN IP... Not your vpn endpoint.. Now what do you see open??

                        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
                        • B
                          Bernd6560
                          last edited by Bernd6560 Nov 7, 2019, 7:23 PM Nov 7, 2019, 7:22 PM

                          Again what your seeing is you scanning freaking google.com and asking why they show 80 open...

                          Lol no, I scan my OWN public VPN ip, I dont understand how you get on google ...

                          🔒 Log in to view

                          Turn off your vpn and actually scan pfsense WAN IP... Not your vpn endpoint.. Now what do you see open??

                          How am I supposed to do that?
                          PfSense is behind a router and has an internal IP.

                          1 Reply Last reply Reply Quote 0
                          • J
                            johnpoz LAYER 8 Global Moderator
                            last edited by johnpoz Nov 7, 2019, 7:30 PM Nov 7, 2019, 7:27 PM

                            So what if you are scanning your vpn public IP... That IP is being used by 100 other clients at the same time... Its NOT yours - its the vpn service... You have zero control over what services they run on it.. They are NOT!!!! sent down your tunnel.. Unless you specifically set that up

                            You might as well scan www.google.com and be concerned..

                            So pfsense is behind a nat... Well again HOW AND THE F!!! do you think ports are open on pfsense wan then...

                            Turn off your vpn, and scan your routers IP.. Now sniff on pfsense do you see any traffic get to pfsense? Did you setup any port forwards on your router? To pfsense wan IP?

                            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
                            • B
                              Bernd6560
                              last edited by Nov 7, 2019, 8:50 PM

                              I've forwarded ALL ports from the router to pfSense for the test, here are the results.
                              Tests were done WITHOUT VPN.

                              🔒 Log in to view

                              🔒 Log in to view

                              🔒 Log in to view

                              1 Reply Last reply Reply Quote 0
                              • J
                                johnpoz LAYER 8 Global Moderator
                                last edited by johnpoz Nov 7, 2019, 8:53 PM Nov 7, 2019, 8:53 PM

                                And there you go - you see the traffic get there and ZERO answers... So are we done now?

                                Doing exactly what it should be doing..

                                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
                                • B
                                  Bernd6560
                                  last edited by Nov 7, 2019, 8:55 PM

                                  Does that mean, even if it comes from VPN, it still blocked?

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    johnpoz LAYER 8 Global Moderator
                                    last edited by Nov 7, 2019, 9:01 PM

                                    OMG dude - what part are you not getting about it is NOT coming down your freaking vpn!!

                                    The vpn is like your router in front of pfsense - pfsense didn't see shit until you forwarded the ports... Have you forwarded them on your vpn? Then they wouldn't be coming down your tunnel to pfsense..

                                    But you can block them all you want on the vpn interface you created that connects to your vpn.

                                    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
                                    • B
                                      Bernd6560
                                      last edited by Nov 7, 2019, 9:15 PM

                                      I think I got it now, so I actually had what I wanted the whole time.

                                      But why are the Ports displayed as open, if stopped on VPN NAT?

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        johnpoz LAYER 8 Global Moderator
                                        last edited by johnpoz Nov 7, 2019, 9:23 PM Nov 7, 2019, 9:17 PM

                                        Dude they are showing open because your VPN service is running them - NOT that they are being sent down the tunnel to you... This has been like talking to a wall!!

                                        If you enable remote access on your router and have it listen to port 80.. Does it send that 80 to some client behind it..

                                        Your vpn service is just like a nat router.. And the clients using it are like your devices behind your router..

                                        Your not connected to that vpn service now right - well scan that IP you had.. What does it show open - while your not even connected to it.

                                        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

                                        B 1 Reply Last reply Nov 8, 2019, 12:48 AM Reply Quote 0
                                        • D
                                          Derelict LAYER 8 Netgate
                                          last edited by Nov 7, 2019, 11:18 PM

                                          You cannot control what traffic arrives on your outside interfaces. All you can do is block it (not pass it) which is exactly what it happening there.

                                          the pfSense firewall, at its basic level, blocks all traffic into and out of any interface unless otherwise passed.

                                          There are some pass rules placed by default, like passing anything initiated by LAN hosts.

                                          If you do not put pass rules on your WAN, or your OpenVPN/assigned interface tab if that is also a WAN (as in the case of using a VPN provider) then any traffic initiated from the outside into those interfaces will be blocked (not passed - because there are no pass rules).

                                          I provided the answer to your question two days ago:

                                          Derelict 2 days ago
                                          Something in front of your pfSense firewall is likely responding on those.

                                          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
                                          33 out of 48
                                          • First post
                                            33/48
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.