ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    block youtube app and facebook app on mobiles phones

    Scheduled Pinned Locked Moved IT Discussion
    androidpfsense
    22 Posts 2 Posters 11.7k 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.
    • scottalanmillerS
      scottalanmiller
      last edited by

      I suspect that those apps are connecting over the web anyway, otherwise they would be blocked too many places. I would start by closing ALL ports that you don't need. Open only what you do. But that is for general security and will not block these apps.

      Second, block Facebook and YouTube completely from PFSense. The apps have to connect to those sites to get their content, so blocking the site blocks the app.

      1 Reply Last reply Reply Quote 0
      • IT-ADMINI
        IT-ADMIN
        last edited by

        actually facebook and youtube website are already blocked by squid proxy, this applied only to computer because the are configured to use proxy setting in their browsers, for the phones they are not connected to the proxy because they use app instead of browsers, so i set specific rule for mobile phones that allow all traffic

        IT-ADMINI scottalanmillerS 2 Replies Last reply Reply Quote 0
        • IT-ADMINI
          IT-ADMIN @IT-ADMIN
          last edited by

          @IT-ADMIN how i can change this phone rule to block facebook and youtube app, knowing that i cannot force mobile traffic to pass through squid proxy because app not using proxy setting

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @IT-ADMIN
            last edited by

            @IT-ADMIN said:

            actually facebook and youtube website are already blocked by squid proxy, this applied only to computer because the are configured to use proxy setting in their browsers, for the phones they are not connected to the proxy because they use app instead of browsers, so i set specific rule for mobile phones that allow all traffic

            So "not really blocked" is the issue here. You are not using the proxy as a security measure but as a matter of convenience. To use a proxy for security it must be the only path between the LAN and the Internet. You are using the proxy as an optional path and anything without the proxy settings is bypassing it.

            Put your proxy inline and everything will be solved immediately. Or simple block any other path. HTTP traffic should only be allowed to and from the proxy.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @IT-ADMIN
              last edited by

              @IT-ADMIN said:

              @IT-ADMIN how i can change this phone rule to block facebook and youtube app, knowing that i cannot force mobile traffic to pass through squid proxy because app not using proxy setting

              No need for proxy settings if setup as inline and transparent. The standard use of a proxy does not require proxy settings on the end users devices.

              IT-ADMINI 1 Reply Last reply Reply Quote 0
              • IT-ADMINI
                IT-ADMIN @scottalanmiller
                last edited by IT-ADMIN

                @scottalanmiller said:

                @IT-ADMIN said:

                @IT-ADMIN how i can change this phone rule to block facebook and youtube app, knowing that i cannot force mobile traffic to pass through squid proxy because app not using proxy setting

                No need for proxy settings if setup as inline and transparent. The standard use of a proxy does not require proxy settings on the end users devices.

                thank you Dear Scott, but if i set my proxy as transparent it will allow only 80 port traffic and deny everything else, which cause https 443 port to be blocked, then mobiles cannot connect to gmail nor skype , nothing except web surfing (port 80)

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @IT-ADMIN
                  last edited by

                  @IT-ADMIN said:

                  thank you Dear Scott, but if i set my proxy as transparent it will allow only 80 port traffic and deny everything else, which cause https 443 port to be blocked, then mobiles cannot connect to gmail nor skype , nothing except web surfing (port 80)

                  Why is everything except for port 80 blocked?

                  IT-ADMINI 1 Reply Last reply Reply Quote 0
                  • IT-ADMINI
                    IT-ADMIN @scottalanmiller
                    last edited by

                    @scottalanmiller untitled.JPG

                    IT-ADMINI 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      That doesn't imply what you stated, though.

                      1 Reply Last reply Reply Quote 0
                      • IT-ADMINI
                        IT-ADMIN @IT-ADMIN
                        last edited by

                        @IT-ADMIN because if you don't inform your browser which proxy to use, https will consider the proxy as a man in the middle, and will drop the connection

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • IT-ADMINI
                          IT-ADMIN
                          last edited by

                          all 443 traffic will not be established because the app itself is unaware about which proxy to use

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • IT-ADMINI
                            IT-ADMIN
                            last edited by

                            i set proxy setting for mobile, and i remark that facebook is blocked but youtube is not blocked, it seems that youtube app not using youtube.com to connect to the server,

                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @IT-ADMIN
                              last edited by

                              @IT-ADMIN said:

                              @IT-ADMIN because if you don't inform your browser which proxy to use, https will consider the proxy as a man in the middle, and will drop the connection

                              No, you are thinking of the way that you are using a proxy "non-transparent." A transparent proxy you don't tell the browser about. That's what transparent means - that the proxy happens without anything needing to know about it.

                              1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @IT-ADMIN
                                last edited by

                                @IT-ADMIN said:

                                all 443 traffic will not be established because the app itself is unaware about which proxy to use

                                It's transparent so everything goes through the proxy.

                                1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @IT-ADMIN
                                  last edited by

                                  @IT-ADMIN said:

                                  i set proxy setting for mobile, and i remark that facebook is blocked but youtube is not blocked, it seems that youtube app not using youtube.com to connect to the server,

                                  You'll need to block all YouTube sites, which are many. Blocking by domain name is not very effective. There is always a way around that by IP address.

                                  IT-ADMINI 1 Reply Last reply Reply Quote 0
                                  • IT-ADMINI
                                    IT-ADMIN
                                    last edited by

                                    if i set a transparent proxy and block some URLs, users cannot access http://facebook.com, but if they just add s after http, they can access easily, i tried it !! i'm sure

                                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                                    • IT-ADMINI
                                      IT-ADMIN @scottalanmiller
                                      last edited by

                                      @scottalanmiller said:

                                      @IT-ADMIN said:

                                      i set proxy setting for mobile, and i remark that facebook is blocked but youtube is not blocked, it seems that youtube app not using youtube.com to connect to the server,

                                      You'll need to block all YouTube sites, which are many. Blocking by domain name is not very effective. There is always a way around that by IP address.

                                      also blocking by IPs is not efficient, because IPs of servers keep changing, and it is difficult to know all IP range used by a specific server

                                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                                      • IT-ADMINI
                                        IT-ADMIN
                                        last edited by

                                        in the begining i though that app can be blocked by closing some ports numbers, but it seem that almost all of the apps use either 80 or 443, and if close one of these port it is like i closed everything !!!

                                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller @IT-ADMIN
                                          last edited by

                                          @IT-ADMIN said:

                                          if i set a transparent proxy and block some URLs, users cannot access http://facebook.com, but if they just add s after http, they can access easily, i tried it !! i'm sure

                                          Are you just clicking a box called "transparent proxy" or are you actually changing your network correctly to accommodate the change in architecture?

                                          1 Reply Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller @IT-ADMIN
                                            last edited by

                                            @IT-ADMIN said:

                                            also blocking by IPs is not efficient, because IPs of servers keep changing, and it is difficult to know all IP range used by a specific server

                                            Correctly, blocking like you are doing is effectively impossible. There is always a simple workaround.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post