From 00254822407e6f3dca3637b3af65cd78a870f9a9 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 13 Nov 2020 23:07:18 +0100 Subject: [PATCH] nodes/home.router: install cronjob to re-establish pppoe connection at night --- nodes/home/router.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nodes/home/router.py b/nodes/home/router.py index c0ac875..4c7f197 100644 --- a/nodes/home/router.py +++ b/nodes/home/router.py @@ -25,6 +25,13 @@ nodes['home.router'] = { 'backups': { 'exclude_from_backups': True, }, + 'cron': { + # Our internet provider resets the connection if you're + # connected longer than 24 hours. We install this cronjob + # to make sure we don't get disconnected randomly during the + # day. + 'restart_pppd': '23 2 * * * root systemctl restart pppoe', + }, 'iptables': { 'custom_rules': [ 'iptables_both -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT',