Skip to content

Commit

Permalink
IPsec - mute onestop command
Browse files Browse the repository at this point in the history
(cherry picked from commit 4ec76cd)
(cherry picked from commit 1acb831)
  • Loading branch information
AdSchellevis authored and fichtner committed Jan 25, 2023
1 parent b2937eb commit 4e3c00a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/etc/inc/plugins.inc.d/ipsec.inc
Expand Up @@ -1270,13 +1270,10 @@ function ipsec_configure_do($verbose = false, $interface = '')

if (!isset($ipseccfg['enable'])) {
/* try to stop charon */
mwexec('/usr/local/etc/rc.d/strongswan onestop');

/* wait for process to die */
sleep(2);
mwexec('/usr/local/etc/rc.d/strongswan onestop', true);

/* disallow IPSEC, it is off */
mwexec("/sbin/ifconfig enc0 down");
mwexec("/sbin/ifconfig enc0 down", true);

return;
} else {
Expand Down

0 comments on commit 4e3c00a

Please sign in to comment.