I am running Ubuntu 20.04.4
It used to work fine, until 3-4 days ago I installed Cape2 to create a cuckoo sandbox, using this script : https://github.com/doomedraven/Tools/blob/master/Sandbox/cape2.sh
Afterwards, there was an error on startup ("Failed to start Anonymizing overlay network for TCP"), which has to do with tor, so I disabled services that had been installed with cape2.sh, such as tor and suricata
However, now on startup the WiFi (or the ethernet, if plugged in) are not managed properly, since even though I have internet connection, I can not browse nor do anything that requires Internet such as e.g. apt update and upgrade.
The only thing that I can do now is every time run
$ sudo dhclient wlp3s0
(this is the name of the WiFi network), or
$ sudo dhclient enp0s25
(ethernet)
And then I can function normally.
In summary, I would like that the connection to WiFi be automatically done on startup, instead of having to run dhclient every time, and to automatically switch to ethernet if this is connected: i.e. the default behaviour on a fresh ubuntu installation.
I am using an installation of Ubuntu 20.04.4 in a Lenovo Thinkpad T430