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

    Protocol Monitoring/Blocking, SMTP specifically!

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 2.9k 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
      scootabug
      last edited by

      Hi,

      I have had a search for blocking the SMTP protocol but didn't find anything discussing how you'd go about blocking a specific protocol.

      For example, with our current firewall (Untangle) I am able to block the SMTP protocol from the entire subnet, and then allow SMTP from our mail server.  The obvious idea is that we only want our mail server to be sending mail out of the network.  We implemented this when we had a virus on a system here that was spamming from our network and we needed to figure out which system it was.

      Blocking packets leaving from TCP port 25 from all hosts except our SMTP server is not the solution.  You can send SMTP from any port you like, which is why we needed to block and monitor the SMTP protocol itself.

      Any ideas on how to achieve the same thing with pfSense?

      Cheers,
      Scott

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        Blocking port 25 and the submission port would really be effective for this. You can send SMTP on any port but it would be worthless since nobody else would be listening for that traffic.

        If you really want to do that, on 2.0 you could setup a layer7 container to match smtp traffic and direct everything through it. Be aware, however, that layer7 inspection is quite CPU intensive and it will slow down all traffic processing that has to go through it.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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