Forums

Joop
Joop
Offline
Resolved
0 votes
Hi all,

Today I was scanning the logging of my ClearOS 7 server and I noticed the following in the SysWatch log:

Fri Sep 20 10:26:32 2019 warn: enp2s0 - connection is down
Fri Sep 20 10:26:32 2019 info: system - WAN network is not up
Fri Sep 20 10:26:52 2019 info: enp2s0 - ping check on server #1 failed - 8.8.8.8 (ping size: 64)
Fri Sep 20 10:27:05 2019 info: enp2s0 - ping check on server #2 failed - 1.1.1.1 (ping size: 64)
Fri Sep 20 10:27:05 2019 warn: enp2s0 - connection is down
Fri Sep 20 10:27:05 2019 info: system - WAN network is not up
Fri Sep 20 10:27:25 2019 info: enp2s0 - ping check on server #1 failed - 8.8.8.8 (ping size: 64)
Fri Sep 20 10:27:38 2019 info: enp2s0 - ping check on server #2 failed - 1.1.1.1 (ping size: 64)
Fri Sep 20 10:27:38 2019 warn: enp2s0 - connection is down ...

This goes on for ever.
But the enp2s0 is the (only) network interface and I can reach the server, so that must be working. And the WAN network also seems to be UP, because of the fact that I can reach the websites hosted on my server.
The 8.8.8.8 must be the DNS, but the 1.1.1.1 is not known by me. There is also a second DNS entry: 8.8.4.4, but I do not see an error for this one.

So, what is going wrong here, or can someone explain me what's happening here?

Thanx for all help and info!

Joop
Friday, September 20 2019, 01:23 PM
Share this post:
Responses (6)
  • Accepted Answer

    Monday, September 23 2019, 08:08 PM - #Permalink
    Resolved
    0 votes
    Odd - that means the WAN interface is up(!)

    Just had a look at my logs .. I see exactly the same reports when the server reboots. I'm guessing that if you look further everything sorts itself out - it does in mine. In retrospect, I don't think there's a problem.
    The reply is currently minimized Show
  • Accepted Answer

    Joop
    Joop
    Offline
    Monday, September 23 2019, 04:14 PM - #Permalink
    Resolved
    0 votes
    Hi Richard,

    The websites on my server can be visited from the internet, that's not the problem. And I can use the Marketplace of COS to load new apps. So the server can reach the internet and vv.
    The connection is via a cable modem. And the DHCP also runs on the cable modem. The server and the modem has a static IP address. The address of the modem is used as gateway address.

    Joop
    The reply is currently minimized Show
  • Accepted Answer

    Monday, September 23 2019, 02:00 PM - #Permalink
    Resolved
    0 votes
    That says to me that the reason you can access your server and websites is because you are 'contacting' them via the DNS entries on your own network - you aren't going outside your own network. I'm guessing therefore, that WAN access (internet) to your websites is via port forward on your router, and as the WAN appears to be down, you won't be able to get to them UNLESS you're on your own network. You can check this by using your phone (iPhone?); turn off the phone's WiFi and just connect to the internet via mobile data. If you use the phone's web browser and put in the website address (like www.google.com), you'll probably find that you can't get a response - that will confirm that the WAN is down.

    Next question; presumably your router provides local IP addresses(?) - or is the DHCP server held on on the server? - in my case, I have 2 standalone servers, with a router (static local IP address) acting as the gateway to the internet (via cable modem), and the DHCP server hosted on one of the (private) servers, the DHCP server built into the router is turned off, and the IP address I've allocated to the router is defined as the 'gateway' field in the DHCP server settings on the server. That means that PCs on my network know to access (via local DNS) local servers directly, but unknown DNS lookups are sent directly to the router for servicing outside my local network.
    If the DHCP server is on the server, make sure the router has a static address so the server knows where/how to get to the WAN (via your router) - which will be the gateway address you've defined in the DHCP server.
    Either way, make sure you only have ONE active DHCP server running on your network - either in your COS server or in the router.

    Next: is the WAN (internet) via a cable modem or is it an ADSL modem? (ADSL being a glorified dial-up). In either case, from what you've said, it's likely to be physically part of your router.
    The difference is that a cable modem connection is there all the time, and will be there assuming the ISP side of things is up and you've paid your bills :). If it's ADSL, then the connection can either be 'on demand' or 'permanent' - that's a setting in the ADSL router, and it would need to be set to the 'permanent connection' if you want your webserver to be visible from the web all the time.
    The reply is currently minimized Show
  • Accepted Answer

    Joop
    Joop
    Offline
    Monday, September 23 2019, 09:12 AM - #Permalink
    Resolved
    0 votes
    Hi Nick and Richard,

    Thanks for your answers and explanation.
    FYI: networkmode is Standalone, everything is connected by cable, server can be reached from outside via port forwarding on router, but then it's local network, I presume.

    Can you say something more now?

    Joop
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 21 2019, 12:28 PM - #Permalink
    Resolved
    0 votes
    Syswatch was changed a few months ago to use GoogleDNS first then CloudFlare as ping targets to check if ClearOS is on line. It should only use CloudFlare if pings to Google fail. When we changed things, we wondered about using CloudFlare first as they seem to have very slightly lower pings. The ping servers can be overridden in /etc/syswatch.

    It is also worth noting that if you have high latency on your WAN, you can change the ping timeout and even the method (ICMP, UDP or TCP) in /etc/syswatch.

    When The WAN ping check fails, it should fall back to pinging its Gateway - your external router - and should then report that you may have an ISP problem. That used to work.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, September 20 2019, 02:57 PM - #Permalink
    Resolved
    0 votes
    8.8.8.8 and 8.8.4.4 are the Google DNS servers. 1.1.1.1 appears to be CloudFlare's Public DNS IP address, and reports seem to indicate they are the source of a lot of spam and DDoS attacks. You'll need to check your settings to see where that's appeared from.

    When you say you can reach your server and websites, I assume you mean from inside your local network - in which case that just means that your local connectivity is working as you're not going 'outside' to get access to them. So the question then becomes "how do you connect to the WAN?" - cable?
    And you say you've only got one network interface .. how is your server configured? Public server? Private server? And how does the server physically connect to your local and WAN networks?
    The reply is currently minimized Show
Your Reply