nodes/home.router: install cronjob to re-establish pppoe connection at night
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-11-13 23:07:18 +01:00
parent 870a5252e5
commit 0025482240
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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',