making sysctl tweaks more versatile and just reload sysctl settings
This commit is contained in:
parent
1c38fef482
commit
c53f3e2219
|
@ -28,7 +28,6 @@ case "$1" in
|
||||||
SWANCTLCONFIG="etc/swanctl/conf.d/wit-swanctl.conf"
|
SWANCTLCONFIG="etc/swanctl/conf.d/wit-swanctl.conf"
|
||||||
IPSECCONFIG="etc/ipsec.conf.wit"
|
IPSECCONFIG="etc/ipsec.conf.wit"
|
||||||
IPSECSECRETS="etc/ipsec.secrets"
|
IPSECSECRETS="etc/ipsec.secrets"
|
||||||
SYSCTLTWEAKS="etc/sysctl.d/10-frr.conf"
|
|
||||||
CAPATH="/etc/ipsec.d"
|
CAPATH="/etc/ipsec.d"
|
||||||
CACURLURL="http://bastion"
|
CACURLURL="http://bastion"
|
||||||
|
|
||||||
|
@ -416,11 +415,11 @@ case "$1" in
|
||||||
|
|
||||||
## START configuring services as we need it
|
## START configuring services as we need it
|
||||||
|
|
||||||
|
sysctl --system
|
||||||
|
|
||||||
systemctl enable strongswan || true ## in case we kick-start or done have it enabled for some reason
|
systemctl enable strongswan || true ## in case we kick-start or done have it enabled for some reason
|
||||||
systemctl enable firewall
|
systemctl enable firewall
|
||||||
systemctl restart firewall
|
systemctl restart firewall
|
||||||
|
|
||||||
sysctl -p $SYSCTLTWEAKS
|
|
||||||
|
|
||||||
## END services section
|
## END services section
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue