No Internet acces after install

#1

I installed Freedombox on a fresh install of Debian Stretch trough apt-get.
Everything worked fine until after the installation of the freedombox packages.
I can log into the web interface without problem.
However connecting to the internet is no longer possible from the server.
On the commandline I get the following errors when trying to run “apt-get update”:

root@servername:/home/userl# apt-get update Err:1 http://security.debian.org/debian-security stretch/updates InRelease Could not resolve 'security.debian.org' Err:2 http://ftp.be.debian.org/debian stretch InRelease Could not resolve 'ftp.be.debian.org' Err:3 http://ftp.be.debian.org/debian stretch-updates InRelease Could not resolve 'ftp.be.debian.org' Reading package lists... Done W: Failed to fetch http://ftp.be.debian.org/debian/dists/stretch/InRelease Could not resolve 'ftp.be.debian.org' W: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease Could not resolve 'security.debian.org' W: Failed to fetch http://ftp.be.debian.org/debian/dists/stretch-updates/InRelease Could not resolve 'ftp.be.debian.org' W: Some index files failed to download. They have been ignored, or old ones used instead.'

In fact it seems Domain names can’t be resolved anymore.
Ip adresses are still working fine.

I duck duck go’d around but couldn’t find a solution.

Anyone any ideas?

Sincerely,
Kai

#2

Let’s confirm that this is a DNS resolution problem. Try this:

ping 1.1.1.1

Press Ctrl+C after a few lines and see the results. If there’s 0% packet loss, then you have a working Internet connection but your FreedomBox is unable to resolve domain names. Otherwise, it’s an Internet connection problem.

#3

I did a test yesterday with ping 8.8.8.8 wich worked fine.
Tour be sure I tried again with 1.1.1.1:
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=25.6 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=58 time=24.8 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=58 time=25.3 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=58 time=25.2 ms
64 bytes from 1.1.1.1: icmp_seq=5 ttl=58 time=24.7 ms
64 bytes from 1.1.1.1: icmp_seq=6 ttl=58 time=24.7 ms
64 bytes from 1.1.1.1: icmp_seq=7 ttl=58 time=25.3 ms
^C
— 1.1.1.1 ping statistics —
7 packets transmitted, 7 received, 0% packet loss, time 6019ms
rtt min/avg/max/mdev = 24.735/25.140/25.661/0.322 ms

I am not sure what further logs or info would be helpfull here.

#4

One thing you could try is to set an explicit DNS server. For this, go to system, networks, click on a connection, Edit, Set the DNS server to ‘1.1.1.1’, then click ‘Edit Connection’. After this restart your FreedomBox from top right menu.

#5

Still nothing.
I found this under Diagnostics:
Screenshot_2019-05-09_16-40-50

#6

What is the output of cat /etc/resolv.conf. If this does not show nameserver 1.1.1.1 after your changes, then something wrong with the editing process, I guess. You can also add this line to the file to temporarily get connectivity (it will be overwritten later).

#7

Also System -> Networks -> Click on Network Connection: should show IPv4 DNS server as 1.1.1.1 after your changes.

#8

The nameserver was not included in resolv.conf.
Manually editing the file solved it.
For completion sake, this was the content of the network connection:
Screenshot_2019-05-09_21-19-55

#9

I totally missed the part where you said you installed freedombox using apt-get. If you already have a Debian system configured with network and install FreedomBox, then FreedomBox (which essentially uses Network Manager) does not touch your existing network setup at all. This is why we see ‘unmanaged’ in the state above.

Your network configuration will be in /etc/network/interfaces or /etc/network/interfaces.d/*. You can continue to use Debian’s plan old way of configuring the interface by editing those files. Add your DNS server there. See Debian documentation for this.

Alternatively, if you remove those files (or move them out), then Network Manager will take over on next reboot and do an automatic DHCP configuration for the network interface. After this, you can assign firewall zone (‘internal’ or ‘external’) and setup a custom DNS server if needed using the FreedomBox web interface. If something goes wrong, you can replace the files back into /etc/network/ and reboot to get back your old setup.

#10

I indeed already had a static ip config on Debian.
However I never touched the nameserver configuration as everything worked out of the box.
Only after running the install script for freedombox the system stopped finding domain names.