• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Opening ports for WiFi access point

Scheduled Pinned Locked Moved Unsolved Support
19 Posts 3 Posters 943 Views 1 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.
    • P Offline
      Pulsar33
      last edited by 19 Sept 2022, 14:55

      Oooops ! Confusing ap0 and ccmni0, however, this one doesn't work better :
      iptables -t nat -A PREROUTING -p udp -i ccmni0 --dport YYYYY -j DNAT --to-destination 10.42.0.59:YYYYY
      I'm tired of it !

      BR
      Pulsar33

      Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
      Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
      Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

      1 Reply Last reply Reply Quote 0
      • P Offline
        Pulsar33
        last edited by Pulsar33 24 Sept 2022, 11:58

        Hello
        As said here, I was at last able to reinstall gtk in Libertine. So I was able to compile my above application (after changing some popup_menu function unavailable in the gtk version) and run it on its own. And I have exactly the same problem, that I don't understand.

        When I run it over the local network (from 192.168.0.X to 192.168.0.Y) all works fine without any need for redirection. When I run it over the 3G network, the request is forwarded to the ddns distant server without any specific actions or rules. The server interprets the request and replies correctly (traced with WireShark). But the reply never arrives at the phone ccmni0 interface, even if I add a rule to open the udp dedicated port and ACCEPT it for INPUT. This rule should not even be necessary since the firewall does not include any restrictions by default when the Access Point is not active

        This is the same problem as described in the picture above but without the local RE-ROUTING to ap0 step. it should be simpler but it is not.

        Some idea ?
        Some precision requests :
        All iptables rule are effectively used by UBports ?
        No need to activate anything else ? (seen that ufw is off but don't seems a problem to me)

        BR
        Pulsar33

        Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
        Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
        Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

        1 Reply Last reply Reply Quote 0
        • P Offline
          Pulsar33
          last edited by Pulsar33 27 Sept 2022, 10:22

          Feeling lonely
          Do you know another forum where I can post these questions with a small hope of success ?
          Pulsar33

          Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
          Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
          Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

          A 1 Reply Last reply 27 Sept 2022, 15:38 Reply Quote 0
          • A Offline
            arubislander @Pulsar33
            last edited by 27 Sept 2022, 15:38

            @pulsar33

            Hmmm ... This seems to be on the dividing line between app development and break-your-ut territory.

            πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
            Happily running Ubuntu Touch
            Google Pixel 3a (20.04 DEV)
            JingPad (24.04 preview)
            Meizu Pro 5 (16.04 DEV)

            P 1 Reply Last reply 27 Sept 2022, 15:57 Reply Quote 0
            • P Offline
              Pulsar33 @arubislander
              last edited by Pulsar33 27 Sept 2022, 15:57

              @arubislander : hummm, thanks for suggestion but, I've never used Telegram. On the other hand, this is my own code and it works on local network as said. The problem seems to be between the ISP (maybe not forwarding) and the 3G interface of the phone (maybe not accepting to open the requested port). Is there someone able to speak about the modem access and behaviour ?
              BR
              Pulsar33

              Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
              Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
              Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

              A 1 Reply Last reply 27 Sept 2022, 16:05 Reply Quote 0
              • A Offline
                arubislander @Pulsar33
                last edited by arubislander 27 Sept 2022, 16:05

                @pulsar33 OK then. Well I don't know much about network shaping and such. When I have a situation in which I want to be able to access my home network away from home I just connect to my VPN server (which was fairly easy to set up on my Router running DD-WRT) and avoid all the hassle.

                πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                Happily running Ubuntu Touch
                Google Pixel 3a (20.04 DEV)
                JingPad (24.04 preview)
                Meizu Pro 5 (16.04 DEV)

                P 1 Reply Last reply 27 Sept 2022, 16:48 Reply Quote 0
                • P Offline
                  Pulsar33 @arubislander
                  last edited by 27 Sept 2022, 16:48

                  @arubislander Thanks anyway.
                  There are obviously generic solutions that would work if I had fiber at home but I only have adsl2 and it's very limited in upstream traffic. VNC or similar is not an option for me. Hence the idea of deporting only the GUI which should be able to run on any GTK remote device.

                  More generally, I'm disappointed that I can't do what I want with my smartphone and I would like to at least understand why.

                  BR
                  Pulsar33

                  Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                  Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                  Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                  A 1 Reply Last reply 27 Sept 2022, 16:59 Reply Quote 0
                  • A Offline
                    arubislander @Pulsar33
                    last edited by 27 Sept 2022, 16:59

                    @pulsar33 with a VPN you could still have the GUI run on a client, it would simply connect to your server through the VPN connection.
                    But indeed, in such a situation you wouldn't need the phone as a go-between.

                    Sorry I can't help you as to why your setup doesn't work. Maybe asking in the general or overflow UBports groups on Telegram might connect you to someone who has more of an idea.

                    πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                    Happily running Ubuntu Touch
                    Google Pixel 3a (20.04 DEV)
                    JingPad (24.04 preview)
                    Meizu Pro 5 (16.04 DEV)

                    1 Reply Last reply Reply Quote 1
                    • P Offline
                      Pulsar33
                      last edited by 4 Oct 2022, 06:36

                      Hello,

                      For information :
                      I made a test with a FP2 running AndroΓ―d instead of my two BQ E5 (Ubuntu Touch and UBports)
                      I have exactly the same problem.

                      So, we can say :

                      • UBports is not the reason of the problem.
                      • It would be cool that UBports help me to solve the problem !

                      If the problem comes from the ISP, UBports can simply help to confirm
                      If the problem comes from the modem management, maybe UBports could help to find a workaround

                      BR
                      Pulsar33

                      Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                      Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                      Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                      A Br1B 2 Replies Last reply 4 Oct 2022, 13:21 Reply Quote 0
                      • A Offline
                        arubislander @Pulsar33
                        last edited by 4 Oct 2022, 13:21

                        @Pulsar33, I truly am sorry I can't help you out with what you are trying to do, as I don't really understand the way you are going about it.

                        Just one little nitpick, if you will allow it.

                        @pulsar33 said in Opening ports for WiFi access point:

                        instead of my two BQ E5 (Ubuntu Touch and UBports)

                        UBports is the name of the community and also part of the name of the Foundation. The OS that runs on your device is still (or actually, now) called Ubuntu Touch. (since that was never officially it's name when developed by Canonical. Then it used to be Ubuntu of Devices.)

                        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                        Happily running Ubuntu Touch
                        Google Pixel 3a (20.04 DEV)
                        JingPad (24.04 preview)
                        Meizu Pro 5 (16.04 DEV)

                        P 1 Reply Last reply 4 Oct 2022, 14:14 Reply Quote 0
                        • P Offline
                          Pulsar33 @arubislander
                          last edited by 4 Oct 2022, 14:14

                          @arubislander : I know that but there should be a decision to assume the difference
                          Else how can I tell that my two devices are not running the same OS ?

                          Aquaris BQ E5 HD UBports OTA-23 (currently testing features)
                          Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)

                          OTA-15 was the last Canonical revision. If UBports had produced OTA-16 as first release all would have be more simple but it's not the case ...

                          Sorry for remaining out of scope. Hope this will close the question
                          BR
                          Pulsar33

                          Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                          Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                          Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

                          1 Reply Last reply Reply Quote 0
                          • Br1B Offline
                            Br1 @Pulsar33
                            last edited by 11 Oct 2022, 19:05

                            @pulsar33 said in Opening ports for WiFi access point:

                            If the problem comes from the ISP

                            Almost certainly the problem comes from the ISP ... read here ... " most mobile operators do not provide dedicated IP addresses – they perform "1:many" NAT, not just 1:1 NAT, and the external address is simultaneously used by multiple customers (just like your home router shares your external addresses between all LAN devices).

                            Even those operators which do dedicate an address per customer (whether direct or 1:1 NATed) frequently put it behind a firewall which blocks all incoming connections. This has two purposes – it prevents the customer from hosting services on their 4G connection (which is usually not allowed by their terms of service), and it prevents various botnet scans and unsolicited connections from draining the device's battery "

                            ^

                            • Google Pixel 3a XL
                            • Xiaomi MI A2
                            P 1 Reply Last reply 12 Oct 2022, 06:59 Reply Quote 1
                            • P Offline
                              Pulsar33 @Br1
                              last edited by 12 Oct 2022, 06:59

                              @br1 not as good as expected but I thank you anyway for the information. It seems I will have to change the type of communication, even if simple bidirectionnal UDP was cool.

                              BR
                              Pulsar33

                              Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
                              Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
                              Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

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