Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Headless and offline!

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
Clivetimmins
Posts: 7
Joined: 2017-07-24 01:06

Headless and offline!

#1 Post by Clivetimmins »

Hi i am running debian 9 on a headless machine. It has a static IP never have any issues with that. Rebooting router causes no issues. But my isp have gone down twice in the last month when the internet comes back on. All my devices work except my server that stays offline. Tried rebooting router to see if that was the problem. The only fix is to reboot the server. Can't connect with it in anyway when it's offline so can't check anything

User avatar
makh
Posts: 651
Joined: 2011-10-09 09:16

Re: Headless and offline!

#2 Post by makh »

Clivetimmins wrote:But my isp have gone down twice in the last month when the internet comes back on. All my devices work except my server that stays offline.
I previously installed a program ifplugd. It may hep you.
ThinkPad E14: Arch, Debian Stable
GUI: Xfce

For new: Try MX Linux, Linux Mint; later join Debian Stable

TonyT
Posts: 575
Joined: 2006-09-04 11:57

Re: Headless and offline!

#3 Post by TonyT »

If the Internet goes down then the LAN connection is likely still alive. On the headless computer install openssh-server and on another comp install openssh-client. (check names of these packages) Then when the server loses its Internet connection and comes back on, and/or after rebooting the router, open a terminal and ssh into the server
ssh <username>@xxx.xxx.xxx.xxx
and restart networking using the command:
/etc/init.d/networking restart
or
service networking restart

May need to be root or sudo.

User avatar
makh
Posts: 651
Joined: 2011-10-09 09:16

Re: Headless and offline!

#4 Post by makh »

TonyT wrote:...
If this helps, you may put network restart command in cronjob, at intervals required.
ThinkPad E14: Arch, Debian Stable
GUI: Xfce

For new: Try MX Linux, Linux Mint; later join Debian Stable

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Headless and offline!

#5 Post by pylkko »

Also consider a script which pings a server on the internet and if no response then tries to reset.

Clivetimmins
Posts: 7
Joined: 2017-07-24 01:06

Re: Headless and offline!

#6 Post by Clivetimmins »

Ifplugd seems like a good idea. Hopefully it will work even if the cable isn't physically removed. Will try that and simulate a internet failure. The LAN disconnects as well as WAN. Can't ssh to it even locally, in the router setup it won't even show a connection after the failure. (The newest superhub from VM) it's mostly a cloud server with file sizes of up to 35Gb I wouldn't want a cron job resetting the adapter halfway into a 3 hour transfer. I like the ping idea. I could ping my 2 offsite servers. And OR the result to make sure it's down and not the other site down lol.

Thank you all for your replies they are appreciated. It seemed impossible to google that wuestion

TonyT
Posts: 575
Joined: 2006-09-04 11:57

Re: Headless and offline!

#7 Post by TonyT »

The LAN disconnects as well as WAN.
No router I have ever used or setup for clients does that. The LAN should remain ON even if the WAN connection goes OFF. Hunt around the router settings to see if can change that behavior, else get a better router. If stuck using an ISP provided router, such as FIOS router-modems, you can put the ISP device in bridge mode and use your own better router. It's also possible that the existing router has gone bad, the LAN should always remain ON unless the power goes out.

Clivetimmins
Posts: 7
Joined: 2017-07-24 01:06

Re: Headless and offline!

#8 Post by Clivetimmins »

I have a few always online devices that have no problems with this. It's only a problem with the debian machine. So must be a link there. It is currently in DMZ maybe that causes a issue?. Adding a second router that can handle my 350mps connection would a expensive fix Tbh. Thank you for your repplies :D

TonyT
Posts: 575
Joined: 2006-09-04 11:57

Re: Headless and offline!

#9 Post by TonyT »

Take it out of the dmz and test it by killing the wan connection.

Post Reply