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

    Blocking Misc IP

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 5 Posters 1.3k 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.
    • K Offline
      kdmiller45
      last edited by

      I would like to setup a rule that would allow me to enter Misc IP to be blocked.

      ie: I don't want to block all the United States, just Misc IP's that are attempting to hack my Mail server
      how can that be done

      Thanks for you help, just a newbie here

      Keith

      1 Reply Last reply Reply Quote 0
      • G Offline
        guardian Rebel Alliance
        last edited by

        Create an alias (HACKERS) with the ip addresses of the server(s) that you want to block.

        The place a BLOCK rule on the WAN interface with Source HACKERS and destination Any.  You might as well make the protocol and ports any as well.

        Does this https://forum.pfsense.org/index.php?topic=126866.msg701462#msg701462 help any?  I'm still working on it, but my hope is to make it easier for new users (and myself) to figure out these rules.  It is much easier with a visual representation.

        Hope that helps.

        If you find my post useful, please give it a thumbs up!
        pfSense 2.8.0-RELEASE

        1 Reply Last reply Reply Quote 0
        • P Offline
          pfBasic Banned
          last edited by

          Do you know all of the IP addresses that you want to block?

          If not then setting up suricata or snort on your mail servers interface is probably what you need.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Harvy66
            last edited by

            Creating a custom list of one-off IP addresses is going to leave you with a list of millions of changing IP addresses.

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

              such a endeavor is playing wack-a-mole.. completely pointless..  If you want block bad countries that you will never get email from ok.. But trying to block an IP after the fact after you see them in your logs is a battle you can never win.

              If you want to block countries – grab their netblocks and put them into your own aliases or just use the pfblocker aliases it has out of the box for countries..

              But if you want to really play wack-a-mole.. Create a rule on the top of your wan interface for block.  With dest of your wan address and or the smtp port.  And for the source use an alias and start adding your IPs you want block to the alias..

              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 | Lab VMs 2.8.1, 25.11

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