<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error when enabeling ufw]]></title><description><![CDATA[<p dir="auto">Hello all,</p>
<p dir="auto">after I installed UT on my phone, I was curious about the firewall. So I ran<br />
"sudo ufw status" and realized that the fw was not running at all.<br />
Thought "uhhh", no problem lets enable it.</p>
<p dir="auto">And this led to my question. What needs to be done to get the firewall up and running?<br />
Does someone made the same experience and was able to fix it?</p>
<p dir="auto">Thanks for your hints,<br />
Tellina</p>
<p dir="auto">Steps I processed:</p>
<p dir="auto"><strong>sudo ufw enable</strong></p>
<p dir="auto"><em>Error: problem running ufw-init<br />
modprobe: ERROR ../libkmod/libkmod.c:586</em><br />
.....</p>
<p dir="auto"><em>ERROR: problem running ufw-init<br />
iptables-restore: line 77 failed<br />
iptables-restore: line 30 failed<br />
iptables-restore: line 35 failed</em></p>
<p dir="auto"><strong>Running script check-requirements in /usr/share/ufw</strong><br />
Output:<br />
<em>Has python: ERROR: could not find valid python</em></p>
<p dir="auto"><strong>Checking python used with ufw:</strong><br />
sudo find /usr/lib/ -name "ufw"<br />
-&gt; /usr/lib/python3/dist-packages/ufw</p>
<p dir="auto"><strong>Checking python version:</strong><br />
python3 ––version<br />
-&gt; Python 3.5.2</p>
<p dir="auto">Running out of ideas.</p>
<p dir="auto"><strong>Phone:</strong> Volla Phone<br />
<strong>OS:</strong> Ubuntu 16.04 (2020-08-07)</p>
]]></description><link>https://forums.ubports.com/topic/4743/error-when-enabeling-ufw</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 22:22:44 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/4743.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Aug 2020 06:35:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error when enabeling ufw on Wed, 09 Sep 2020 11:16:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bhdouglass" aria-label="Profile: bhdouglass">@<bdi>bhdouglass</bdi></a> Ok if its not in xenial I am fine with it <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forums.ubports.com/post/39903</link><guid isPermaLink="true">https://forums.ubports.com/post/39903</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Wed, 09 Sep 2020 11:16:50 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Tue, 08 Sep 2020 20:56:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: Flohack">@<bdi>Flohack</bdi></a> What's the problem? It's not available for xenial and if I recall there wasn't anything wrong with it back in the day. I also think it was a beta and not fully completed.</p>
]]></description><link>https://forums.ubports.com/post/39884</link><guid isPermaLink="true">https://forums.ubports.com/post/39884</guid><dc:creator><![CDATA[bhdouglass]]></dc:creator><pubDate>Tue, 08 Sep 2020 20:56:26 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Tue, 08 Sep 2020 19:01:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/keneda" aria-label="Profile: Keneda">@<bdi>Keneda</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/bhdouglass" aria-label="Profile: bhdouglass">@<bdi>bhdouglass</bdi></a> can you please check this app, this fake virus scanner should be removed I think, it was either an experiment or just a bad joke.</p>
]]></description><link>https://forums.ubports.com/post/39876</link><guid isPermaLink="true">https://forums.ubports.com/post/39876</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Tue, 08 Sep 2020 19:01:48 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Tue, 08 Sep 2020 15:54:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lakotaubp" aria-label="Profile: Lakotaubp">@<bdi>Lakotaubp</bdi></a> said in <a href="/post/39866">Error when enabeling ufw</a>:</p>
<blockquote>
<p dir="auto">It states the app was fully confined</p>
</blockquote>
<p dir="auto">It wasn't in 2016 when app was released and i installed it, and it's still tagged as "full system access" right now.<br />
But maybe it was a fake "unconfined" app after all, but that would mean crap can be released on store without review, no?</p>
<p dir="auto">Sources are still available on launchpad i believe.<br />
<a href="https://bazaar.launchpad.net/~hosein-iprogramer/antivirus/trunk/files" target="_blank" rel="noopener noreferrer nofollow ugc">https://bazaar.launchpad.net/~hosein-iprogramer/antivirus/trunk/files</a></p>
]]></description><link>https://forums.ubports.com/post/39867</link><guid isPermaLink="true">https://forums.ubports.com/post/39867</guid><dc:creator><![CDATA[Keneda]]></dc:creator><pubDate>Tue, 08 Sep 2020 15:54:49 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Tue, 08 Sep 2020 15:45:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/keneda" aria-label="Profile: Keneda">@<bdi>Keneda</bdi></a> It states the app was <strong>fully confined</strong> so could not do anything other than scan it's self. As for the full app history I cannot remember but it was about a long time age so might have been a hang around from canonical day. As for Firewall thing again I have no idea but it seems it was just a pretty interface doing nothing. Maybe <a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: Flohack">@<bdi>Flohack</bdi></a> can remember full details.</p>
]]></description><link>https://forums.ubports.com/post/39866</link><guid isPermaLink="true">https://forums.ubports.com/post/39866</guid><dc:creator><![CDATA[Lakotaubp]]></dc:creator><pubDate>Tue, 08 Sep 2020 15:45:33 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Tue, 08 Sep 2020 12:46:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lakotaubp" aria-label="Profile: Lakotaubp">@<bdi>Lakotaubp</bdi></a><br />
I found post of him about that :<br />
<a href="https://forums.ubports.com/topic/2768/are-there-any-attack-vectors-based-on-sd-card/3?_=1599561104795">https://forums.ubports.com/topic/2768/are-there-any-attack-vectors-based-on-sd-card/3?_=1599561104795</a></p>
<p dir="auto">He tells that the app was confined, beside it was unconfined with full system access.</p>
<p dir="auto">Did Brian Douglass published unconfined apps without reviewing it?</p>
<p dir="auto">Scanning polemic appart, it had a firewall interface, that too was bullshit?</p>
]]></description><link>https://forums.ubports.com/post/39845</link><guid isPermaLink="true">https://forums.ubports.com/post/39845</guid><dc:creator><![CDATA[Keneda]]></dc:creator><pubDate>Tue, 08 Sep 2020 12:46:46 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Tue, 08 Sep 2020 06:21:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arubislander" aria-label="Profile: arubislander">@<bdi>arubislander</bdi></a> Your right on that. It was pointed out a few times that the app was doing very little if not nothing by flohack.</p>
]]></description><link>https://forums.ubports.com/post/39806</link><guid isPermaLink="true">https://forums.ubports.com/post/39806</guid><dc:creator><![CDATA[Lakotaubp]]></dc:creator><pubDate>Tue, 08 Sep 2020 06:21:02 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Tue, 08 Sep 2020 05:59:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/keneda" aria-label="Profile: Keneda">@<bdi>Keneda</bdi></a> said in <a href="/post/39796">Error when enabeling ufw</a>:</p>
<blockquote>
<p dir="auto">Don't know why it's been deprecated.</p>
</blockquote>
<p dir="auto">This app was not deprecated as such. Simply that the author never recompiled it to run 9against 16.04 when. The underlying OS was updated.</p>
<p dir="auto">I also seem to remember claims that the app did not do all that it advertised. The code is out lucky hosted on Launchpad though, so anyone with time available who can read code (including me) could examine it.</p>
<p dir="auto">I took a quick look at the C code on my phone (not ideal, I know) and it does use some interesting techniques I might be applying in my own apps.</p>
]]></description><link>https://forums.ubports.com/post/39805</link><guid isPermaLink="true">https://forums.ubports.com/post/39805</guid><dc:creator><![CDATA[arubislander]]></dc:creator><pubDate>Tue, 08 Sep 2020 05:59:57 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Mon, 07 Sep 2020 22:19:37 GMT]]></title><description><![CDATA[<p dir="auto">Back in the [Canonical] time there was : <a href="https://open-store.io/app/antivirus.iprogramer" target="_blank" rel="noopener noreferrer nofollow ugc">https://open-store.io/app/antivirus.iprogramer</a></p>
<p dir="auto">With fonctions :</p>
<p dir="auto"><em>This is an App For Scanning and Protecting Ubuntu Devices from Malware, Viruses and RootKits.</em></p>
<p dir="auto"><em>Features:</em><br />
<em>Scan your Device For "Malicious Apps"</em><br />
<em>Scan your Device For "Malicious Connections"</em><br />
<em>Scan your Device For "Listening Ports"</em><br />
<em>Scan your Device For "Malicious Startup Commands"</em></p>
<p dir="auto"><em><strong>Manage your "Firewall"</strong></em><br />
<em>Manage your "Active Services"</em></p>
<p dir="auto"><em>Check an IP for "Malicious Activity"</em><br />
<em>Generate "Password with Pattern"</em></p>
<p dir="auto">Don't know why it's been deprecated.</p>
]]></description><link>https://forums.ubports.com/post/39796</link><guid isPermaLink="true">https://forums.ubports.com/post/39796</guid><dc:creator><![CDATA[Keneda]]></dc:creator><pubDate>Mon, 07 Sep 2020 22:19:37 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Mon, 07 Sep 2020 21:13:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alter" aria-label="Profile: Alter">@<bdi>Alter</bdi></a> posted a comment in <a href="https://forums.ubports.com/topic/4873/ubuntu-touch-q-a-84-this-saturday-at-19-00-utc/3">todays Q&amp;A 84 thread</a> today. A link was included to an earlier <a href="https://ubports.com/nl/blog/ubports-blogs-nieuws-1/post/terminal-chapter-2-3078" target="_blank" rel="noopener noreferrer nofollow ugc">blog post</a> about using the firewall. In that section a screenshot shows the error '...is owned by 109' mentioned earlier.</p>
<p dir="auto">Besides the really interesting question raised by <a class="plugin-mentions-user plugin-mentions-a" href="/user/alter" aria-label="Profile: Alter">@<bdi>Alter</bdi></a>'s question, I wonder if anyone can answer the question as to what does the error tells us and warns about?</p>
]]></description><link>https://forums.ubports.com/post/39789</link><guid isPermaLink="true">https://forums.ubports.com/post/39789</guid><dc:creator><![CDATA[3T_Ed]]></dc:creator><pubDate>Mon, 07 Sep 2020 21:13:44 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Wed, 02 Sep 2020 15:15:28 GMT]]></title><description><![CDATA[<p dir="auto">The write up is by the UBports Writers team, so not me and as for the the other stuff again I have not a clue on the tech reasons. Somone will though I'm sure.</p>
]]></description><link>https://forums.ubports.com/post/39505</link><guid isPermaLink="true">https://forums.ubports.com/post/39505</guid><dc:creator><![CDATA[Lakotaubp]]></dc:creator><pubDate>Wed, 02 Sep 2020 15:15:28 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Wed, 02 Sep 2020 15:08:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lakotaubp" aria-label="Profile: Lakotaubp">@<bdi>Lakotaubp</bdi></a><br />
Thank you very much for taking the time to do the write up regarding UT view on UFW. <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title="👍" alt="👍" /></p>
<p dir="auto">Like @Tellina I'm still interested in the initial question regarding the error stated above. If you could explain that would be highly appreciated.</p>
]]></description><link>https://forums.ubports.com/post/39504</link><guid isPermaLink="true">https://forums.ubports.com/post/39504</guid><dc:creator><![CDATA[3T_Ed]]></dc:creator><pubDate>Wed, 02 Sep 2020 15:08:04 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Wed, 02 Sep 2020 14:56:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lakotaubp" aria-label="Profile: Lakotaubp">@<bdi>Lakotaubp</bdi></a> : So I wonder, if it is not needed at UT, why don´t we skip the UFW from the standard installation and update the documents that inexperienced user do not ask for such topic? And away from the FW.<br />
Would you be so kind and explain whats the root cause of "Warn: Uid is 0 but '/' is owned by 109" (as per my understanding this was the question). Please enlighten me. Thanks</p>
]]></description><link>https://forums.ubports.com/post/39502</link><guid isPermaLink="true">https://forums.ubports.com/post/39502</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 02 Sep 2020 14:56:17 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Wed, 02 Sep 2020 14:33:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/3t_ed" aria-label="Profile: 3T_Ed">@<bdi>3T_Ed</bdi></a></p>
<p dir="auto">Firewall in UT</p>
<p dir="auto">Telnina said “don’t want to be nasty but” is there a plan or a timeline for a firewall in UT? We have not enabled a firewall in UT because the architecture is unusual. There are no ports open in UT by default. There are also no services running by default. A firewall would add a medium amount of weight to the system and would consume battery.  Provided that there is nothing open, there is nothing that needs blocking. It is one of those issues which is worth revisiting periodically and Marius will dig into it a little deeper with the Canonical engineers who initially decided to exclude it.</p>
<p dir="auto">Florian commented that if someone was able to do something malicious with UT, to force a port to open, then a firewall could play a useful role by closing it. One thing for sure is that a firewall is very dependent on the kernel and since we are often working with old kernels, that could make any introduction of a firewall messy.</p>
<p dir="auto">In a follow up, it was asked if it could have a role in blocking certain outbound traffic? Well the issue there is one of complexity. For the average user controlling functions like that would need a graphical interface and how would they make sense of the settings? That difficulty really suggests the option of an app installable from the OpenStore for those who do know what they are doing, rather than exposing a confusing settings dialogue in<br />
the installed system.</p>
<p dir="auto">To save you looking a bit of a preview of the blog <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /> don't tell</p>
]]></description><link>https://forums.ubports.com/post/39495</link><guid isPermaLink="true">https://forums.ubports.com/post/39495</guid><dc:creator><![CDATA[Lakotaubp]]></dc:creator><pubDate>Wed, 02 Sep 2020 14:33:01 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Wed, 02 Sep 2020 13:55:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lakotaubp" aria-label="Profile: Lakotaubp">@<bdi>Lakotaubp</bdi></a><br />
Thank you for your response and link. The Q&amp;A is over 1:17h so I will try to capture that moment.</p>
<p dir="auto">Without having heard the specific answer on the Q&amp;A 83, do you mean UFW isn't useful on UT regardless of what my terminal output says?</p>
]]></description><link>https://forums.ubports.com/post/39493</link><guid isPermaLink="true">https://forums.ubports.com/post/39493</guid><dc:creator><![CDATA[3T_Ed]]></dc:creator><pubDate>Wed, 02 Sep 2020 13:55:36 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Wed, 02 Sep 2020 13:43:26 GMT]]></title><description><![CDATA[<p dir="auto">This question was covered in the last Q&amp;A <a href="https://youtu.be/50Ar0aJuGWk" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/50Ar0aJuGWk</a> basically it is not enabled as UT has no open ports that need blocking. The blog and audio of Q&amp;A83 will be released shortly for full details or use YouTube link.</p>
]]></description><link>https://forums.ubports.com/post/39492</link><guid isPermaLink="true">https://forums.ubports.com/post/39492</guid><dc:creator><![CDATA[Lakotaubp]]></dc:creator><pubDate>Wed, 02 Sep 2020 13:43:26 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Wed, 02 Sep 2020 12:37:50 GMT]]></title><description><![CDATA[<p dir="auto">When checking ufw status my OP3T returns</p>
<p dir="auto"><em>Warn: Uid is 0 but '/' is owned by 109<br />
Status: Active</em></p>
<p dir="auto">Could anyone explain please?</p>
]]></description><link>https://forums.ubports.com/post/39491</link><guid isPermaLink="true">https://forums.ubports.com/post/39491</guid><dc:creator><![CDATA[3T_Ed]]></dc:creator><pubDate>Wed, 02 Sep 2020 12:37:50 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Fri, 21 Aug 2020 12:51:37 GMT]]></title><description><![CDATA[<p dir="auto">@Tellina said in <a href="/post/38888">Error when enabeling ufw</a>:</p>
<blockquote>
<p dir="auto">Two questions to the community:</p>
<p dir="auto">How to overcome the read-only issue?</p>
</blockquote>
<p dir="auto">You can remount the Filesystem RW, but it's not recommended.<br />
Your issue is to modify the file, so you can use vi instead of nano ; vi does not create a file in the home directory if not explicitly asked.</p>
<blockquote>
<p dir="auto">Did I have overseen something how to configure ufw just to get it up and running?</p>
</blockquote>
<p dir="auto">UT is not a traditional Linux distro so it's a bit hacky to make modifications like that to your system.<br />
About how to run a script automatically after a reboot, there is an open thread here in the forum.</p>
]]></description><link>https://forums.ubports.com/post/38898</link><guid isPermaLink="true">https://forums.ubports.com/post/38898</guid><dc:creator><![CDATA[AppLee]]></dc:creator><pubDate>Fri, 21 Aug 2020 12:51:37 GMT</pubDate></item><item><title><![CDATA[Reply to Error when enabeling ufw on Fri, 21 Aug 2020 10:12:49 GMT]]></title><description><![CDATA[<p dir="auto">@Tellina Due to the lack of other issues with my phone I looked a second time to ufw.</p>
<p dir="auto">First I set default rules:<br />
<em>sudo ufw default deny incoming<br />
sudo ufw default allow outgoing</em><br />
And activated access from my internal network:</p>
<p dir="auto"><em>SSH: sudo ufw allow from 192.XXX.XXX.1/24 to any port 22<br />
FTP: sudo ufw allow from 192.XXX.XXX.1/24 to any port 21</em></p>
<p dir="auto">Because no errors poped up, I also ran to display the maintained rules:<br />
<em>sudo ufw status verbose</em></p>
<p dir="auto">Then started the firewall:<br />
<em>sudo ufw enable</em></p>
<p dir="auto">Unfortunately I got this errors:<br />
<em>ERROR: problem running ufw-init<br />
ERROR: Could not load logging rules</em></p>
<p dir="auto">So what to do? To fix the problem with "logging rules" I switched them off.<br />
<em>sudo ufw logging off</em></p>
<p dir="auto">And in case problems occure with IPv6 this is disabled in ufw config with:<br />
sudo nano /etc/default/ufw<br />
by setting: IPV6=no</p>
<p dir="auto">After this modifications I tried again to start ufw:<br />
<em>sudo ufw enable</em></p>
<p dir="auto">And firewall has been activated. <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
<p dir="auto">But, I recognized until now one additional issue. After a boot of the device ufw is not acitve. Damn!</p>
<p dir="auto">To fix this, I tried:</p>
<p dir="auto"><em>sudo nano /lib/systemd/system/ufw.service</em><br />
To edit the UNIT section in the ufw.service file.<br />
Change: Before=network.target to After=network-online.target</p>
<p dir="auto">What a pitty, I ended up with this message:<br />
<strong>unable to create directory /root/.nano: Read-only system</strong></p>
<p dir="auto">Two questions to the community:</p>
<ol>
<li>How to overcome the read-only issue?</li>
<li>Did I have overseen something how to configure ufw just to get it up and running?</li>
</ol>
<p dir="auto">Thanks<br />
T.</p>
]]></description><link>https://forums.ubports.com/post/38888</link><guid isPermaLink="true">https://forums.ubports.com/post/38888</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Fri, 21 Aug 2020 10:12:49 GMT</pubDate></item></channel></rss>