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

    Outgoing SMTP port [SOLVED]

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 2.1k 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.
    • M Offline
      mezcal
      last edited by

      Hello,

      I`m trying to block port 25 from LAN 192.168.11.54 (this address sends a lot of spams).

      for example:
      tcp 192.168.11.54:61855 -> WAN address:58345 -> 38.111.4.11:25 ESTABLISHED:ESTABLISHED

      I have added this WAN rule:

      reject TCP 192.168.11.54 * * 25 (SMTP) *

      but it not works. The address 192.168.11.54 still connect to any by port 25.

      What is wrong?

      Thanks in advance

      Filip

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG Offline
        GruensFroeschli
        last edited by

        Rules work inbound on interfaces and not outbound.
        –> Your rule on the WAN-tab does nothing.
        The rule would have to be on the LAN-tab.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • M Offline
          mezcal
          last edited by

          thanks,

          I start to understand pfsense firewall. It`s very important to know that Rules are inbound.

          I have solved it. First LAN rule is:
          reject TCP 192.168.11.54 * !local_smtp 25 (SMTP) *

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