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

    Dumb SMTP block outbound question

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 3 Posters 590 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 24.11 | Lab VMs 2.7.2, 24.11

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