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

    block ip with multi wan ip

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 1.0k Views 2 Watching
    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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
              Privacy Policy · Cookie Policy