mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Add ipsec.user.conf & secrets for user defined connections (e.g. XAUTH).
This commit is contained in:
2
config/etc/ipsec.user.conf
Normal file
2
config/etc/ipsec.user.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
# user connections that should not overwritten by the webif
|
||||
#
|
||||
2
config/etc/ipsec.user.secrets
Normal file
2
config/etc/ipsec.user.secrets
Normal file
@@ -0,0 +1,2 @@
|
||||
# user secrets that should not overwritten by the webif
|
||||
#
|
||||
@@ -15,6 +15,8 @@ etc/hddtemp.db
|
||||
etc/host.conf
|
||||
etc/inittab
|
||||
etc/inputrc
|
||||
#etc/ipsec.user.conf
|
||||
#etc/ipsec.user.secrets
|
||||
etc/issue
|
||||
etc/ld.so.conf
|
||||
etc/logrotate.conf
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
etc/ipsec.conf
|
||||
etc/ipsec.user.conf
|
||||
#etc/ipsec.d
|
||||
etc/ipsec.d/aacerts
|
||||
etc/ipsec.d/acerts
|
||||
@@ -9,6 +10,7 @@ etc/ipsec.d/ocspcerts
|
||||
etc/ipsec.d/private
|
||||
etc/ipsec.d/reqs
|
||||
etc/ipsec.secrets
|
||||
etc/ipsec.user.secrets
|
||||
etc/strongswan.conf
|
||||
#usr/lib/libcharon.a
|
||||
#usr/lib/libcharon.la
|
||||
|
||||
@@ -289,6 +289,12 @@ sub writeipsecfiles {
|
||||
#print CONF "\tdisablearrivalcheck=no\n";
|
||||
print CONF "\n";
|
||||
|
||||
# Add user includes to config file
|
||||
print CONF "include /etc/ipsec.user.conf\n";
|
||||
print CONF "\n";
|
||||
|
||||
print SECRETS "include /etc/ipsec.user/secrets\n";
|
||||
|
||||
if (-f "${General::swroot}/certs/hostkey.pem") {
|
||||
print SECRETS ": RSA ${General::swroot}/certs/hostkey.pem\n"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user