No worries! If UFW isn’t installed, there might still be iptables rules in place. Let’s check and allow the necessary ports using iptables:
-
Check current iptables rules:
Open a terminal and run:sudo iptables -L
-
Allow the necessary ports:
To allow the default Valheim ports (2456-2458), run:sudo iptables -A INPUT -p udp --dport 2456:2458 -j ACCEPT
-
Save the iptables rules:
To make sure the rules persist after a reboot, save them using:sudo sh -c "iptables-save > /etc/iptables/rules.v4"
-
Verify the changes:
Run the first command again to ensure the rules are applied:sudo iptables -L
Give that a shot and let me know if that helps!