HelloVolla / ubuntu-touch-beta-tests

Status overview and issues for beta tests of Ubuntu Touch on the Volla Phone
24 stars 1 forks source link

Firewall UFW fails to start #73

Open Blackoverflow opened 3 years ago

Blackoverflow commented 3 years ago

Details about installed OS version Ubuntu Touch OTA-14

Describe the bug On activating ufw with sudo ufw enable, I got:

WARN: uid is 0 but '/' is owned by 109
ERROR: problem running ufw-init
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.146+/modules.dep.bin'
modprobe: FATAL: Module nf_conntrack_ftp not found in directory /lib/modules/4.4.146+
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.146+/modules.dep.bin'
modprobe: FATAL: Module nf_nat_ftp not found in directory /lib/modules/4.4.146+
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.146+/modules.dep.bin'
modprobe: FATAL: Module nf_conntrack_netbios_ns not found in directory /lib/modules/4.4.146+
iptables-restore: line 77 failed
iptables-restore: line 30 failed
iptables-restore: line 39 failed
ip6tables-restore: line 138 failed

Problem running '/etc/ufw/before.rules'
Problem running '/etc/ufw/after.rules'
Problem running '/etc/ufw/user.rules'
Problem running '/etc/ufw/before6.rules'

The phone wasn't able to access websites as long as ufw was enabled.

Steps to reproduce the bug

  1. Start Terminal App
  2. Enter and submit sudo ufw enalbe
  3. Enter the password for sudo
  4. See error
  5. Be not able to access websites
  6. Disable ufw again with sudo ufw disable

Expected behavior

Additional context I configured the ufw rule sudo ufw allow ssh.

TellingBerto commented 3 years ago

Hi, this is not a bug. Everyone new at UT and interested in a FW will recognize this sooner or later. If you search for UFW in the forum you find plenty of entries. https://forums.ubports.com/search?term=UFW&in=titlesposts

JamiKettunen commented 3 years ago

I wonder if any other Ubuntu Touch device has working ufw, I tried to tweak the kernel so the mentioned modules could be non built-ins but just ended up breaking the build in the end with many errors :/