Score:0

Ubuntu server resets to work only locally

np flag

This is maybe a very stupid question as I am very new to this. Just lost so much time looking for the solution, but couldn't find any so far. So any tips would be appreciated.

My problem is with web server based on Ubuntu 20.04.5 LTS (GNU/Linux 5.4.0-126-generic x86_64), which I use hosting my personal website and ftp.

I manage to setup everything (linux, apache, ftp server, mysql, php, wp, ufw, router, etc) and all runs perfectly. But after physical restart of machine something happens and it only works locally (website and ftp). Can't access server from outside. Nothing changed in router settings or firewall. Ports are still open. All works well after I reinstall everything from beginning. But this is not a great solution.

I guess there should be something simple, but couldn't find what it is. Hope you can offer any tips.

ewong avatar
bd flag
Welcome to Serverfault. What do you mean by 'only works locally'? i.e. locally as in localhost only, or local as in LAN only? something must have changed.
Svajunas avatar
np flag
@ewokx as in LAN. If I try to access outside my LAN it doesn't work. Says website is not reachable. The same for FTP. Something changed, but where to start looking? I checked several times router and ufw settings. They are ok. What else to look?
ewong avatar
bd flag
port forwarding on the router, port changed on the web server? if a full reset/reinstall fixed it, then it's apparent something in the settings had changed.
Svajunas avatar
np flag
@ewokx ip and port forwarding didn't change. I can assess everything with outside ip or local ip, website name too, but only if I am connected in my LAN. From outside network get ERR_CONNECTION_TIMED_OUT.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.