added config service manager, added custom loading of subdirs for config based services, added configurations for config services

This commit is contained in:
Blake Harnden 2020-01-17 11:40:29 -08:00
parent cf7dda816c
commit 433327c0ae
7 changed files with 194 additions and 52 deletions

View file

@ -0,0 +1,6 @@
#!/bin/sh
# auto-generated by DefaultRoute service
# config: ${config}
% for address in addresses:
ip route add default via ${address}
% endfor

View file

@ -0,0 +1,16 @@
#!/bin/sh
# auto-generated by IPForward service (utility.py)
sysctl -w net.ipv4.conf.all.forwarding=1
sysctl -w net.ipv4.conf.default.forwarding=1
sysctl -w net.ipv6.conf.all.forwarding=1
sysctl -w net.ipv6.conf.default.forwarding=1
sysctl -w net.ipv4.conf.all.send_redirects=0
sysctl -w net.ipv4.conf.default.send_redirects=0
sysctl -w net.ipv4.conf.all.rp_filter=0
sysctl -w net.ipv4.conf.default.rp_filter=0
# setup forwarding for node interfaces
% for devname in devnames:
sysctl -w net.ipv4.conf.${devname}.forwarding=1
sysctl -w net.ipv4.conf.${devname}.send_redirects=0
sysctl -w net.ipv4.conf.${devname}.rp_filter=0
% endfor