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

    [SOLVED] router accepts ICMP ping even after rule

    General pfSense Questions
    7
    10
    7.1k
    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.
    • N
      NinthWave
      last edited by NinthWave

      It was my understanding that by default, pfSense is suppose to block ICMP Echo (ping) but I realized it does not.

      I made a rule especially for it but it still respond to ping from WAN ?

      Where to look ?

      73aa2a1c-e1d5-437c-b618-549df0ab99ab-image.png

      S AKEGECA 2 Replies Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @NinthWave
        last edited by

        If you're changing rules ensure there isn't an active state that would continue to allow the connection. (Diagnostics/States)

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote ๐Ÿ‘ helpful posts!

        1 Reply Last reply Reply Quote 0
        • AKEGECA
          AKEGEC @NinthWave
          last edited by

          @ninthwave , there is some misunderstanding in pfsense community, Some of users still think, if there is no rule, it is automatically blocked. But as you already noticed pfsense accepts icmp.

          I see you already made a interface rule. If you want to block whole icmp, make also a floating rule to block icmp and make sure check the log option box.

          H johnpozJ S 3 Replies Last reply Reply Quote 0
          • H
            heper @AKEGEC
            last edited by

            @akegec

            Stop spreading fud please

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

              @akegec said in [SOLVED] router accepts ICMP ping even after rule:

              But as you already noticed pfsense accepts icmp.

              No it doesn't - the wan rules out of the block do not allow anything.. Ping does not work to the wan from the wan side out of the box..

              I am with @heper here - stop spreading FUD..

              The most likely explanation to the OP issue was a state that was allowing from a rule change.. Or he was saying pinging is wan IP from the lan side.. Which defaults to an any any rule.

              Please show me where in the rules, where icmp is allowed out of the box to the wan from wan side.. You can easy look at the full rule set

              https://docs.netgate.com/pfsense/en/latest/firewall/pf-ruleset.html

              While there are some hidden rules sure - to keep the user from shooting themselves in the foot.. Like the rules that allow for dhcp when you enable dhcp server on an interface.. The rule that allows pfsense itself outbound, etc..

              But there is no rule that allows you to ping pfsense wan from the wan side or internet out of the box.. There is no need for the rule the OP shows to block ping on the wan..

              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
              • S
                SteveITS Galactic Empire @AKEGEC
                last edited by

                @akegec said in [SOLVED] router accepts ICMP ping even after rule:

                if there is no rule, it is automatically blocked

                More specifically:
                https://docs.netgate.com/pfsense/en/latest/firewall/best-practices.html
                "In a default two-interface LAN and WAN configuration, pfSense utilizes default deny on the WAN and default allow on the LAN. Everything inbound from the Internet is denied, and everything out to the Internet from the LAN is permitted."

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote ๐Ÿ‘ helpful posts!

                1 Reply Last reply Reply Quote 1
                • AKEGECA
                  AKEGEC
                  last edited by

                  What I was trying to say if they didn't see it doesn't mean it is not there. I had a discussion with my Belgian client, his network has been compromised including his pfsense, but he is so stubborn and keeps telling me that there is no logs.

                  1 Reply Last reply Reply Quote 0
                  • M
                    Marcus Vinicius
                    last edited by Marcus Vinicius

                    I had the same doubt, but i routed from cellphone in my notebook and do not ping. I had disabled the rule, and i noticed with or without the rule... there is no ping from external ips. I don't know why and how to explain ping blocked without a rule setted on WAN.

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

                      @marcus-vinicius said in [SOLVED] router accepts ICMP ping even after rule:

                      I don't know why and how to explain ping blocked without a rule setted on WAN.

                      because the default is deny.. If you have no rule on wan that allows icmp - then no it won't answer ping.

                      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
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Yes, that is the expected behaviour:
                        https://docs.netgate.com/pfsense/en/latest/firewall/rule-methodology.html#default-deny-rule

                        If you're seeing anything different it's probably either because the ping traffic is not passing the interface you think it is or there are rules on other tabs passing it you have not considered (floating rules, interface groups).

                        Steve

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