Yesterday I(newbie on linux) port forwarded the port 42420 to play Vintage Story with some friends. After enabling it on the router and telling firewall-cmd what port to allow, we played without any issues.
But today - after a shutdown over night, I find that the machine boots up a lot slower than before (used to take ~10s, now takes 2 minutes, consistently), and on top of that no ethernet connection works, neither does the cable that worked yesterday, nor does usb tethering with my phone.
Using Ubuntu 22.04, on bare metal, linux version 6.5.0-15-generic.
Output of systemd-analyze blame
tells me that
plymouth-quit-wait.service
takes 21sNetworkManager-wait-online.service
takes 3s- any other is 1s or less.
The firwall-cmd command was firewall-cmd --permanent --zone=public --add-port=42420/tcp
, which (I think) allows absolutely everyone to connect, but I assume it's safe because no application uses that port for anything, apart from Vintage Story.
I know I still have access to internet because wifi still works (on my phone, machine doesn't have a wifi adapter).
Maybe the ISP blocked every connection on my device to stop "potential attackers", I doubt that because not even usb tethering works.
Does anybody know what the problem could be? any help is greatly appreciated.
Photo of systemd-analyze plot > test.svg
:
Solution to both problems, thanks to @Daniel T: Apparently I had both ufw and firewalld insatalled are they were conflicting, uninstalling firewalld seems to have solved both problems - internet and boot time are back to normal.
systemd-analyze plot > test.svg; open test.svg
, and you are free tosudo systemctl disable NetworkManager-wait-online
. I doubt your ISP is slowing down your boot, but in doubt, unplug your ethernet as unconnected computers should boot with the same speed. Are you sure your game did not fill up your disk space? – Daniel T Jan 28 '24 at 10:25systemd-analyze critical-chain; systemd-analyze blame | head
? – Daniel T Jan 28 '24 at 11:09