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

    Firewall blocking Synology MailPlus Server

    Scheduled Pinned Locked Moved NAT
    12 Posts 5 Posters 788 Views 4 Watching
    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.
    • A Offline
      aquinch
      last edited by

      @viragomann ,

      These are my outbound rules.

      75b2bc04-f68a-413b-a83c-49ce7b0d0fc4-image.png

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

        @aquinch
        Pretty nice. But without knowing the source subnets and the NAS IP, quite useless.

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          aquinch @viragomann
          last edited by

          @viragomann ,

          I have tried something as open as this, but to no avail:

          d21fa954-7d15-4208-b860-16592090ca8e-image.png

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

            @aquinch said in Firewall blocking Synology MailPlus Server:

            but pfsense seems to be blocking outbound port 25.

            Did you create a rule blocking anything outbound? Most ISP would block you from talking outbound on 25 to be honest. Unless you have a business sort of connection. The default out of the box rules on lan are any any.. There is no blocking in pfsense out the box for a client on pfsense lan talking to anything..

            Are you running IPS?

            Home users, other than sending spam don't normally need to talk outbound on 25..

            What are you trying to do exactly? Are you wanting to use synology new notification sending via there servers? That wouldn't be using 25.. if it did, it would fail for many many users.. Because many isp block direct talking out 25 for their users.. To cut down on spam..

            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.8, 24.11

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              aquinch @johnpoz
              last edited by

              @johnpoz,

              No, I don't have any rules blocking anything outbound. If my ISP were blocking the port, I believe the traceroute would show the connection passing the firewall and stopping at the ISP? But it seems to be stopping at pfsense.
              I'm trying to create a mail server, and it communicates through port 25 with other servers. I'm not running any IPS.

              Bob.DigB johnpozJ 2 Replies Last reply Reply Quote 0
              • Bob.DigB Offline
                Bob.Dig LAYER 8 @aquinch
                last edited by Bob.Dig

                @aquinch said in Firewall blocking Synology MailPlus Server:

                I'm trying to create a mail server, and it communicates through port 25 with other servers. I'm not running any IPS.

                You can not send emails from residential internet anyway... it will be blocked almost everywhere.

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

                  @aquinch said in Firewall blocking Synology MailPlus Server:

                  , I believe the traceroute would show the connection passing the firewal

                  So your saying if you do a normal traceroute not calling out port, then it works showing you the next hop? What if you use say -p 80?

                  Sniff on your wan when you do your traceroute - do you see it send out? If your next hop is blocking, you wouldn't get an answer.. Doesn't mean pfsense blocked it.

                  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.8, 24.11

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    aquinch @johnpoz
                    last edited by

                    @johnpoz,

                    Running traceroute without the port I get this:
                    Untitled.png

                    Maybe I don't know how to read traceroute properly, but I thought that the last hop was where the connection hit and stopped. So, if my ISP was the one blocking it, I would see it hitting the second hop at Optusnet. Which doesn't happen on port 25.

                    johnpozJ S 2 Replies Last reply Reply Quote 0
                    • johnpozJ Offline
                      johnpoz LAYER 8 Global Moderator @aquinch
                      last edited by johnpoz

                      @aquinch the 2nd hop would be your isp, that first hop is your pfsense, next hop would be where you first hit your isp.

                      If they are blocking 25, then no you wouldn't get an answer, nor if they were blocking 25 would you get any answers past them, since they are blocking it..

                      if pfsense was blocking it would never leave pfsense wan, so just sniff on your pfsense wan to see if it went out.

                      But your isp blocking 25 would show exactly what your trace showed.. Nothing past pfsense..

                      https://networklessons.com/cisco/ccna-routing-switching-icnd1-100-105/traceroute

                      So I send a packet with ttl of 2, it would be answered at the 2nd hop.. But if they are blocking the port.. They could never answer because they never saw it, their firewall blocked it.. Then next hop 3, never goes anywhere past the 2nd hope because again they are blocking it.. So what you saw indicates a block right after pfsense.. If pfsense was blocking it would never enter pfsense to be answered.

                      So for example my isp doesn't block 25.. so your command.. from my client shows hops past pfsense and through my isp into the internet.

                      ash-4.4# traceroute -T -p 25 mail.synology.com
                      traceroute to mail.synology.com (211.23.38.101), 30 hops max, 60 byte packets
                       1  sg4860.home.arpa (192.168.9.253)  0.566 ms  0.532 ms  0.516 ms
                       2  c3-0.rol-e6k1.nape.il.cable.rcn.net (209.122.32.1)  14.587 ms  7.544 ms  7.538 ms
                       3  static.rcn.com (216.80.79.9)  15.789 ms  16.144 ms  15.751 ms
                       4  hge0-0-0-1.core1.chgo.il.rcn.net (207.172.18.102)  44.661 ms hge0-0-0-0.core1.chgo.il.rcn.net (207.172.18.100)  44.642 ms 207.172.17.1 (207.172.17.1)  45.900 ms
                      <snipped>
                      

                      Now I put in a block to 25 on pfsense.

                      block.jpg

                      ash-4.4# traceroute -T -p 25 mail.synology.com
                      traceroute to mail.synology.com (211.23.38.101), 30 hops max, 60 byte packets
                       1  * * *
                       2  * * *
                       3  * * *
                      

                      But if I change that to an outbound block on my wan, so traffic can actually get to pfsense for it to answer with hey this ttl expired then..

                      outbound.jpg

                      ash-4.4# traceroute -T -p 25 mail.synology.com
                      traceroute to mail.synology.com (211.23.38.101), 30 hops max, 60 byte packets
                       1  sg4860.home.arpa (192.168.9.253)  0.616 ms  0.603 ms  0.576 ms
                       2  * * *
                       3  * * *
                       4  * * *
                      

                      So unless you were doing a specific outbound block on your wan interface.. Your trace route is exactly what you would expect if your isp is blocking 25.. Which many of them do.. My old isp use too..

                      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.8, 24.11

                      1 Reply Last reply Reply Quote 1
                      • S Offline
                        serbus @aquinch
                        last edited by

                        @aquinch

                        Hello!

                        Are you running the traceroute while shelled into your DS? I get flaky results running traceroute with the port option while shelled in.

                        You could try a different host and run putty/telnet...

                        telnet mail.synology.com 25
                        telnet mail.synology.com 587
                        ...

                        John

                        Lex parsimoniae

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