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

    Telegram not connecting.

    IDS/IPS
    5
    13
    2.2k
    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.
    • W
      Waqar.UK
      last edited by

      Hello all,

      I have the latest Pfsense installed. Packages: Pfgblocker and Snort.
      I use messenger apps (WhatsApps, Signal, Telegram and Viber) to keep in contact with others. All are working well apart from Telegram which keeps on saying "connecting". This takes place on my desktop, laptop and smart phone. I do not get any connections at all with Telegram unless I use a VPN. I have not changed any settings at all on either Telegram or Pfsense. Could a Pfgblocker or Snort update blocking this?
      If this is the wrong section, then could it be moved to a correct part of this forum.

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        Any blocks from Snort will be shown on the ALERTS tab. It will be up to you to look at the IP addresses blocked there and determine if any are part of Telegram's IP infrastructure. Same for pfBlocker.

        Why would you install packages that block things without fully understanding in advance how they work and how to troubleshoot issues they may cause you? Any package that blocks stuff is nearly guaranteed to block something you want to pass at some point.

        1 Reply Last reply Reply Quote 1
        • W
          Waqar.UK
          last edited by Waqar.UK

          Hello BMeeks,

          thanks for all your hard work.
          I had Telegram working a few days ago, then this started to happen.
          I have not added anything apart from:
          Service_Watchdog sysutils

          Update: I got it working again. I must have denied GeoIP to the British Virgin Islands where Telegram IP address blocks are based.

          GertjanG bmeeksB 2 Replies Last reply Reply Quote 0
          • GertjanG
            Gertjan @Waqar.UK
            last edited by

            Remove this :

            @Waqar-UK said in Telegram not connecting.:

            Service_Watchdog

            The package is for developers that like to "dev in death" mode.

            The setup of services that stop should be corrected.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • W
              Waqar.UK
              last edited by

              OK. I have removed this package.

              1 Reply Last reply Reply Quote 0
              • bmeeksB
                bmeeks @Waqar.UK
                last edited by bmeeks

                @Waqar-UK said in Telegram not connecting.:

                Update: I got it working again. I must have denied GeoIP to the British Virgin Islands where Telegram IP address blocks are based.

                Expect things like that to continue to happen to you when you use huge lists of IPs that you block. Whether GeoIP or simple IP lists, all of them have issues with accuracy. Since the IPv4 address space is now fully utilized and empty blocks are non-existent, there is a lot of buying and selling among IPv4 address block holders. This back and forth swapping of IPv4 space around the world makes some of the GeoIP lists of dubious accuracy. At the very least they have a hard time staying "current".

                With huge lists of IPs that someone says "block", how do you know they are really bad? Heck, not very long ago some idiot (or idiot automated system) added the Google DNS servers to a popular IP list that some folks used in pfBlocker. That resulted in blocks of Google DNS!

                So my point is that if you do things with GeoIP blocking and/or use other lists of "bad" IPs that you block, expect fairly frequent issues of stuff suddenly not working. If it was working yesterday, and today it's not, then the first place you need to look is at the alerts/blocks generated by all of your blocking packages. So that would be Snort/Suricata/pfBlockerNG/DNSBL.

                1 Reply Last reply Reply Quote 0
                • W
                  Waqar.UK
                  last edited by

                  So true. I just hope that this is sorted out. Since Telegram is a very popular package.

                  bmeeksB 1 Reply Last reply Reply Quote 0
                  • bmeeksB
                    bmeeks @Waqar.UK
                    last edited by bmeeks

                    @Waqar-UK said in Telegram not connecting.:

                    So true. I just hope that this is sorted out. Since Telegram is a very popular package.

                    Sorting it out may require abandoning the use of so-called "malicious IP" lists. In your case, it does not seem that Telegram was the actual problem. The problem was a GeoIP block you put in place using a list. Without that block, I suspect Telegram would work just fine.

                    GeoIP blocking is fine in theory but can be burdensome in practice. Mostly because of two reasons. The first is the use of world-wide CDNs (content delivery networks) that have servers spread all over the globe in different countries. You never know with certainty which of the servers you will get referred to. The second reason is the aforementioned swapping around of IP address space between owners around the world. An IP block that formerly was used in the US might this week now be used in Southeast Asia, for example. It may take the GeoIP list vendors a long time to get that update (if they ever do).

                    1 Reply Last reply Reply Quote 0
                    • W
                      Waqar.UK
                      last edited by

                      True,

                      then I have to keep an eye on what IP is being blocked. As GeoIP has to be monitored why certain programs are not able to connect to their servers / services.

                      Thanks.

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        john24634 @Waqar.UK
                        last edited by

                        @waqar-uk

                        I was able to fix it by adding to the pass list on SNORT:
                        149.154.175.53
                        149.154.175.50

                        dc4a170f-6b9e-4797-8ec7-06665a9eb837-image.png

                        J W 2 Replies Last reply Reply Quote 1
                        • J
                          john24634 @john24634
                          last edited by john24634

                          @john24634

                          There is a good explanation here:
                          https://forum.netgate.com/topic/139724/snort-ignoring-passlist

                          1 Reply Last reply Reply Quote 0
                          • W
                            Waqar.UK @john24634
                            last edited by

                            @john24634

                            sorry for a very late reply.

                            Thanks.

                            1 Reply Last reply Reply Quote 0
                            • I
                              iTacos Banned
                              last edited by iTacos

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