Skip to content

Commit

Permalink
IPsec - mute enc0 down as well and remove sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Jan 25, 2023
1 parent 4ec76cd commit 1acb831
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/etc/inc/plugins.inc.d/ipsec.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1272,11 +1272,8 @@ function ipsec_configure_do($verbose = false, $interface = '')
/* try to stop charon */
mwexec('/usr/local/etc/rc.d/strongswan onestop', true);

/* wait for process to die */
sleep(2);

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

return;
} else {
Expand Down

0 comments on commit 1acb831

Please sign in to comment.