We continue to configure the router.

I installed Ubuntu. I tried to upgrade, downloaded it from China for a terribly long time, replaced the servers:

# /etc/apt/sources.list
deb http://ports.ubuntu.com/ubuntu-ports/ focal main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse

deb http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse

deb http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse

deb http://ports.ubuntu.com/ubuntu-ports/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

#deb http://archive.canonical.com/ubuntu focal partner
#deb-src http://archive.canonical.com/ubuntu focal partner

I set everything up, but it worked terribly slowly. And then it broke down altogether. It turned out that I used some kind of left sd card. I put it to a friend – everything started working fine.

The hardware is weak and without a fan, so I decided not to torment it too much and focus on network functions: VPN server/client, NTP, DNS (internal for services and devices – .local works, but not for everything and not in all cases), Traefik, Uptime Kuma, Heimdall. I will not describe it - there is nothing new, the network is full of examples. The only thing is that turning on the VPN client leads the network subsystem into some kind of broken state - it is not yet clear how to configure it, I will write about it separately as I will do.

DHCP could not be used because of HUAWEI WiFi AX3: it cuts responses from the internal server for all WiFi clients and through its ports. Disabling his DHCP and brandmaur did not help. In general, it’s not scary, but it’s unpleasant - you could have set it up better. Judging by https://www.reddit.com/r/pihole/comments/pnzxf0/howto_set_your_pihole_as_dns_on_huawei_ax3 / it used to work…

DNS also had adventures because of HUAWEI WiFi AX3: it does not allow you to set up a DNS server for your DHCP router, and you cannot register an internal IP for WAN DNS either. According to rumors from the forums there is an OpenWRT inside and they have not closed / redone everything. So a particularly inquisitive forum member found a solution – https://4pda.to/forum/index.php?showtopic=989679&st=11200 .

As a result, I am quite satisfied with the device. Unfortunately, the software is still a bit damp: OpenWRT is no longer needed on modern hardware, and DNS and network management web (routing, iptables, etc.) are not yet available in general distributions (the closest is Cockpit, but there are no such modules there).

Next, you can configure Raspberry Pi 4 as a home cloud.