0

I am running squirrelmail, apache2, and postfix on Ubuntu 16.04 server edition. The server works fine, but if I don't use it for about an hour port 80 and 25 become closed for anyone trying to connect using my public ip.

Then if I reboot, everything will work fine for about an hour. All my debian servers still work so I know the problem is with Ubuntu and not my router.

7
  • I have purged ufw and iptables.
    – Andrew
    Apr 30, 2016 at 2:07
  • I presume that you mean that you purged the iptables userspace tools and not that you deleted the entire kernel since iptables itself is of course a core kernel component responsible for all IP handling and routing on the system. Really it's hard to diagnose the issue without more details, have you even checked to make sure that the daemons are still running, what about checking the webserver logs/error logs, mailserver logs/error logs, also the main system log files like /var/log/syslog etc they may give clues. How does your apache and postfix configuration look etc?
    – MttJocy
    Apr 30, 2016 at 2:26
  • Yes, postfix and apache2 are both still running and I'm going to assume that the configuration files are ok because squirrelmail still works fine after it goes down, but only by local ip not public.
    – Andrew
    Apr 30, 2016 at 4:16
  • I have also check my arp, dns, and ip stack everything looks fine. I can ping and resolve host names correctly. I know my router is functioning properly because all my other servers work using the same public ip.
    – Andrew
    Apr 30, 2016 at 4:20
  • When I ping from the server to 8.8.8.8, the first ping is ridiculously slow, about 2000ms. While all the rest are less then 30ms.
    – Andrew
    Apr 30, 2016 at 5:37

1 Answer 1

0

The problem had to do with my router not getting the correct arp information. I fixed the problem by giving my router static arp entries.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .