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 2.8k 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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post