Skip to content

Commit

Permalink
Create rundir
Browse files Browse the repository at this point in the history
- Create /run/pluto which is used as rundir in Libreswan 3.22 and newer
- Fixes hwdsl2#407
  • Loading branch information
hwdsl2 committed Jun 10, 2018
1 parent d5a01f5 commit 59f8175
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions extras/vpnupgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ sed -i".old-$(date +%F-%T)" \
-e "s/^[[:space:]]\+phase2alg=.\+\$/$PHASE2_NEW/" /etc/ipsec.conf

# Restart IPsec service
mkdir -p /run/pluto
service ipsec restart

echo
Expand Down
1 change: 1 addition & 0 deletions extras/vpnupgrade_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ sed -i".old-$(date +%F-%T)" \
-e "s/^[[:space:]]\+phase2alg=.\+\$/$PHASE2_NEW/" /etc/ipsec.conf

# Restart IPsec service
mkdir -p /run/pluto
service ipsec restart

echo
Expand Down
1 change: 1 addition & 0 deletions vpnsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ chmod 600 /etc/ipsec.secrets* /etc/ppp/chap-secrets* /etc/ipsec.d/passwd*
iptables-restore < "$IPT_FILE"

# Restart services
mkdir -p /run/pluto
service fail2ban restart 2>/dev/null
service ipsec restart 2>/dev/null
service xl2tpd restart 2>/dev/null
Expand Down
1 change: 1 addition & 0 deletions vpnsetup_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ if grep -qs "release 7" /etc/redhat-release; then
fi

# Restart services
mkdir -p /run/pluto
modprobe -q pppol2tp
service fail2ban restart 2>/dev/null
service ipsec restart 2>/dev/null
Expand Down

0 comments on commit 59f8175

Please sign in to comment.