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

    Auto block incoming traffic on WAN on certain ports

    Scheduled Pinned Locked Moved Firewalling
    6 Posts 4 Posters 1.5k 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.
    • P
      PokerMunkee
      last edited by

      Hello,

      Is it possible to have snort auto block any public IP on my WAN interface that tries to connect on certain ports (21, 22, 25, etc)?  Sort of like a honeypot.  I want them auto blocked for a certain time period if they try a standard port.

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

        Are these ports OPEN – ie you forward these ports to something behind pfsense?

        If you want to block ANY public IP.. would is the point of having the port open in the first place..  If the port is not forwarded then its out of the box blocked anyway, etc.

        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 26.07 | Lab VMs 2.9.0, 26.07

        1 Reply Last reply
        Reply Quote 0
        • P
          PokerMunkee
          last edited by

          I have some RDP port forwarding (not on 3389) going on and I'd like to block anyone that network scans my WAN.  If they try connecting on various ports (22, 25, 443, 80, etc), I'd like them blocked immediately.

          1 Reply Last reply
          Reply Quote 0
          • ?
            A Former User
            last edited by

            You can do that with Suricata in Legacy mode (I'm sure Snort uses the same methodology since the filtertable is named after Snort, but I've never tried it with Snort). Although it would not be a simple thing to setup. Not that it's hard to setup but definitely not 'click here and you're all set'.

            Search the forums for suricata blueprint and you should find a long thread with some information.

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

              Sounds like a good way to denial of service yourself. I'm blocking about 20 packets per second from all kinds of different IP addresses. That's potentially 1.7mil IPs per day. Not sure how unique they are, but looking at a small slice of time, they're very unique.

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

                Having RDP open to the public on any port - why??  Just VPN if for gosh sake..

                So your goal is to block someone from finding your open ports by blocking them before they get to the open ones on a port scan?? 

                How about just not having that port open to the public if so unsecure ;)  VPN into your network, when you need to use unsecure stuff like rdp..

                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 26.07 | Lab VMs 2.9.0, 26.07

                1 Reply Last reply
                Reply Quote 0

                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