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

    block ip with multi wan ip

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 432 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.
    • E
      evgeni22
      last edited by

      Hello,
      i have on my pfsense 4 WAN IP address, i want if someone send packet to my second WAN IP, it automatically block him
      does it possible?

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Not sure I understand the question. All traffic arriving at a WAN address will be blocked by default.

        Do you mean from the inside? What sort of block do you want there?

        Steve

        1 Reply Last reply Reply Quote 0
        • E
          evgeni22
          last edited by stephenw10

          for example my wan IP 1.1.1.1 with subnet 255.255.255.248
          now i want everyone who try to get 1.1.1.2 going be block if it wan or lan.

          i dont want block all IPs , i need it block automatically only who send a traffic to this IP (1.1.1.2)
          and do blacklist with this IPs, does it possible?

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            You could probably do that with a custom rule in Snort. Trigger on any traffic with destination 1.1.1.2.

            I assume those are just example IPs since that's public address space.

            Steve

            1 Reply Last reply Reply Quote 0
            • E
              evgeni22
              last edited by

              thank you, it working.
              for archive this my custom rules:

              drop tcp $EXTERNAL_NET any -> 1.1.1.2/32 any (msg:"Ignore all traffic"; sid: 1;)
              drop udp $EXTERNAL_NET any -> 1.1.1.2/32 any (msg:"Ignore all traffic"; sid: 1;)

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