Add ipsec.user.conf & secrets for user defined connections (e.g. XAUTH).

This commit is contained in:
Arne Fitzenreiter
2010-06-26 19:44:02 +02:00
parent 3f97f51735
commit 63043a1b44
5 changed files with 14 additions and 0 deletions

View File

@@ -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"
}