Last change
on this file was
48bf314,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
fixed libreswan public key support. status fix
|
-
Property mode set to
100755
|
File size:
854 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | ln -s /home/system/ipsec.d /etc 2>/dev/null |
---|
3 | |
---|
4 | #for some ipsec tools |
---|
5 | ln -s /usr/bin/mktemp /bin 2>/dev/null |
---|
6 | |
---|
7 | #neccesary the first time, see https://libreswan.org/wiki/3.14_X509 |
---|
8 | ipsec checknss |
---|
9 | |
---|
10 | |
---|
11 | if ! syn3-ipsecpubkey; then |
---|
12 | #obsolete |
---|
13 | rm /etc/ipsec.d/ipsec.pub 2>/dev/null |
---|
14 | |
---|
15 | echo Generating ipsec key |
---|
16 | ipsec newhostkey --bits 2192 || exit 1 |
---|
17 | syn3-ipsecpubkey || exit 1 |
---|
18 | fi |
---|
19 | depmod -a |
---|
20 | |
---|
21 | #deze werd niet geroteerd en dus veel te groot. |
---|
22 | #logging gaat nu via syslog naar /var/log/secure. |
---|
23 | rm /var/log/ipsec.log |
---|
24 | |
---|
25 | #VPN monitoring check script wordt vanuit hier in de crontab gezet |
---|
26 | if ! crontab -l | grep syn3-ipseccheck; then |
---|
27 | crontab -l > /tmp/$$.cron || exit 1 |
---|
28 | echo '* * * * * /sbin/syn3-ipseccheck > /dev/null' >> /tmp/$$.cron || exit 1 |
---|
29 | cat /tmp/$$.cron | crontab - || exit 1 |
---|
30 | rm /tmp/$$.cron |
---|
31 | fi |
---|
32 | |
---|
33 | |
---|
34 | |
---|
35 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.