Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    How can I block an external IP address?

    Scheduled Pinned Locked Moved Firewalling
    6 Posts 5 Posters 4.0k 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.
    • S Offline
      sriegerlmsnet.com
      last edited by

      I found an external IP that is constantly scanning my SMTP server.  I just want to block it entirely.

      I've tried creating WAN, LAN and Floating rules with that external IP as the source address and any as the destination IP and any Port and of course checked the box to block traffic.

      Nothing works, it's still scanning my server.

      Is there anyway to do this with pfSense?

      1 Reply Last reply Reply Quote 0
      • jahonixJ Offline
        jahonix
        last edited by

        Remember to put the block rule above the allow rule to your SNMP server so it get's caught first.
        You might need to reset your states as well if the external IP already has a connection open.

        1 Reply Last reply Reply Quote 0
        • S Offline
          sriegerlmsnet.com
          last edited by

          I did try all that, and sadly it's still attacking.  Any other thoughts?

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

            post up your wan rules..

            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.11.1 | Lab VMs 2.8.1, 25.11.1

            1 Reply Last reply Reply Quote 0
            • T Offline
              Trel
              last edited by

              Also where are you seeing that it's attacking/scanning still? Pfsense logs or on the server itself?

              1 Reply Last reply Reply Quote 0
              • M Offline
                muswellhillbilly
                last edited by

                @srieger@lmsnet.com:

                I've tried creating WAN, LAN and Floating rules with that external IP as the source address and any as the destination IP and any Port and of course checked the box to block traffic.

                Nothing works, it's still scanning my server.

                If you block traffic from that host, it won't stop the scans - it will just mean the scans won't touch any of your services. If you see the remote host being blocked in your firewall logs then that means your block rule is working.

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