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

    Dumb SMTP block outbound question

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 3 Posters 893 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
      plandry64
      last edited by

      I think it must be Monday, and not Thursday…..
      I'm trying to write a firewall rule that will block all smtp (port 25) traffic going out the WAN port, EXCEPT from on smtprelay server that I have set up on my LAN.

      Do I create the rule on the WAN port or the LAN port?
      Blood sugar must be low because this should be a "no brainer" but the brain just isn't working today.

      Will anyone take pity and suggest the correct rule configuration?

      TIA - Paul
      PS, Is it Friday yet?

      1 Reply Last reply
      Reply Quote 0
      • V
        viragomann
        last edited by

        Add a block rule to LAN.
        Protocol: TCP (or any)
        Source: check "invert match." and select "Singel host or alias" and enter the smtp-relay address.
        Destination port range: SMTP

        Put the rule above any which could allow this traffic.

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

          Sweet! Thanks so much!

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

            another method is to create rule that allows your IP you want out 25, then rule just below that blocks all to 25.

            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