Hello! I (tried, at least) converted an old laptop to a Debian home server, and I was trying to set up duckdns.org and to enable port forwarding on my router. internet connection was working, I installed packages, docker, immich, etc, and then suddenly (I don’t know exactly when) it refuses to connect to the internet. It does connect to local addresses (I can ssh into it) but ping google.com
and any other internet-involving command fail. I had set up a rule on the router to forward port 80 to the device’s port 80, but I then removed the rule and it still does not connect to the internet. I rebooted the router but nothing changed. Any idea what could be? the router is a Vodafone router.
I changed the hostname to debianserver but on the router it is still written debian. Also, it’s the only device with unknown ipv6
thanks in advance!
thanks for the answer! Sorry I didn’t specified very well: only the server has problems, all other devices work as before
I bet it has something to do with the LAN DHCP setup, since you have to set a static IP for the server…
Update - That won’t work at all if it is indeed the issue. Let me think for a sec on how to pull external ip by doing a IP wget…
it waits like 10 seconds and then exits without any output
Yeah, I realized after the fact. This should work:
wget 104.18.114.97
, and you should get a ERROR 403: Forbidden if your server has any internet connection.tubbadu@debianserver:~$ wget 104.18.114.97 --2024-01-18 21:35:38-- http://104.18.114.97/ Connecting to 104.18.114.97:80... failed: No route to host.
really really thanks for the help!
Please try
wget https://104.18.114.97
, if this one goes through I’d think the problem could be related to a faulty forwarding of regular internet traffic (port 80). If that fails as well I’d guess it’s to due with the DHCP/Static IP’s and involves your router. I’m absolutely clueless about Vodafone routers though.Edit: Any connection would show “The certificate’s owner does not match hostname ‘104.18.114.97’”
sorry I don’t think I understand, where should this be written?
Here I’ve tried
wget https://104.18.114.97
. It’s able to connect to the IP on port 443, but shows an error message since I’m not using a domain name. But at least I know I’ve reached the server.same as before:
tubbadu@debianserver:~$ wget https://104.18.114.97 --2024-01-18 21:52:29-- https://104.18.114.97/ Connecting to 104.18.114.97:443... failed: No route to host.
Something is completely shutting your server off from the internet, despite it having full LAN access. The only time I’ve run into this exact issue was when I misconfigured the firewall on a server, effectively only allowing for local connections. I simply started over by reinstalling Debian, wiping all my mistakes. But it could also be a setting on your router, and without you knowing what changes you made it’s hard to give any reasonable advice.
These are just shots in the dark, and other might offer better solutions but I’d try;
Boot the laptop into a live session directly from USB. All settings are default. Test again, either wget or maybe ping a website. If it works, it’s the server setup and I’d start over. If not…
Try reversing all changes on the router, give the server a different static IP.
Back up the router configuration to a file, consider making notes of important changes, reset the router and try again. If it STILL doesn’t work you can restore the important settings. If it works, you can reimplement the settings from your notes. (unless we’re talking manually imported VPN certificates and similar lol)
Sorry I wasn’t able to help you out, I’m hosting from home and it’s a fantastic thing when things
Haha yes, as mentioned. The issue is a setting on your laptop server installation. The simplest thing is just reinstalling and starting over.
this is probably a good news I think, because it’s only tedious but easy to solve If there’s a way to do it without having to reinstall immich on docker would be awesome, but perhaps it’s faster to reinstall everything than to look for a way to do this
thank you very very very VERY much for your help!!!