• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 634 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 Offline
    plandry64
    last edited by Aug 4, 2016, 8:38 PM

    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 Offline
      viragomann
      last edited by Aug 4, 2016, 9:46 PM

      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 Offline
        plandry64
        last edited by Aug 4, 2016, 11:53 PM

        Sweet! Thanks so much!

        1 Reply Last reply Reply Quote 0
        • J Offline
          johnpoz LAYER 8 Global Moderator
          last edited by Aug 5, 2016, 10:28 AM

          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 25.07 | Lab VMs 2.8, 25.07

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received