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

    How to get internet in waydroid with ufw enabled?

    Scheduled Pinned Locked Moved Fairphone 4
    3 Posts 2 Posters 778 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.
      • B Offline
        bbiw
        last edited by bbiw

        Hello,

        i am running Ubuntu Touch Focal OTA-4 and compiled my own kernel to make ufw work properly. But with ufw enabled i have no internet in waydroid. When starting waydroid two new interfaces show up with ifconfig, waydroid0 and a veth******-interface that changes its name every time i start waydroid. What rules do i need to set for ufw or iptables, and do i need to set a route with ip route add ***?

        I don't want to disable ufw every time i start waydroid. Please help.

        Kind regards

        bbiw

        I 1 Reply Last reply Reply Quote 0
        • I Offline
          Inali @bbiw
          last edited by

          @bbiw
          Have you looked at this at all?
          https://github.com/waydroid/waydroid/issues/680

          B 1 Reply Last reply Reply Quote 0
          • B Offline
            bbiw @Inali
            last edited by

            @Inali
            Thank you for the effort, maybe this site helped a little bit. The solution i've found is a simple: sudo ufw allow out on waydroid0 to any. I was (and still am) confused about the 2 devices and how they "work" together. Now that i know which interface to deal with i can, of course, precise this rule, but i have another (Android-) firewall in the waydroid container that can handle this.

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