diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-28 04:37:39 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-28 04:37:39 +0000 |
commit | 66c284c93b76bd7cebd9210592dd6abce2eb41bc (patch) | |
tree | 1464ec31fd134589e46801762b0d711068bbdaee /packages/carp_status.php | |
parent | 665ef04603f8b9f1b1b222f907e2c35207e25339 (diff) | |
download | pfsense-packages-66c284c93b76bd7cebd9210592dd6abce2eb41bc.tar.gz pfsense-packages-66c284c93b76bd7cebd9210592dd6abce2eb41bc.tar.bz2 pfsense-packages-66c284c93b76bd7cebd9210592dd6abce2eb41bc.zip |
* Turn off carp sysctl first
* Down interface then delete
Diffstat (limited to 'packages/carp_status.php')
-rw-r--r-- | packages/carp_status.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/carp_status.php b/packages/carp_status.php index 2bcb7efa..c76ba0fa 100644 --- a/packages/carp_status.php +++ b/packages/carp_status.php @@ -40,9 +40,11 @@ if($_POST['disablecarp'] <> "") { if($status == true) { $savemsg = "{$carp_counter} ip's have been disabled."; $carp_counter=find_number_of_created_carp_interfaces(); - for($x=0; $x<$carp_counter; $x++) - mwexec("/sbin/ifconfig carp{$x} delete"); mwexec("/sbin/sysctl net.inet.carp.allow=0"); + for($x=0; $x<$carp_counter; $x++) { + mwexec("/sbin/ifconfig carp{$x} down"); + mwexec("/sbin/ifconfig carp{$x} delete"); + } } else { $savemsg = "Carp has been enabled."; mwexec("/sbin/sysctl net.inet.carp.allow=1"); |