You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>Determines whether this object starts delivering events to the event delegate.</summary>
27
+
/// <returns>Returns <see langword="true" /> when this object can deliver events to the event delegate, and returns <see langword="false" /> when this object has stopped delivery.</returns>
28
+
/// <exception cref="EventLogNotFoundException">If the <c>EventLogQueryFacade.path</c> cannot be found while setting <c>Enabled</c> to <see langword="true" />.</exception>
New-Service-Name "Fail2Ban4Win"-DisplayName "Fail2Ban4Win"-Description "After enough incorrect passwords from a remote client, block them using Windows Firewall."-BinaryPathName $binaryPathName.Path
LOGGER.Info("Added Windows Firewall rule to block inbound traffic from {0}, which will be removed at {1:F} (in {2:g}).",subnet,unbanTime,configuration.banPeriod);
123
+
LOGGER.Info("Added Windows Firewall rule to block inbound traffic from {0}, which will be removed at {1:F} (in {2:g}).",subnet,unbanDuration,configuration.banPeriod);
123
124
124
125
LOGGER.Trace("Clearing internal history of failures for {0} now that a firewall rule has been created.",subnet);
/// <summary>For first offenses, this returns <c>banPeriod</c> (from <c>configuration.json</c>). For repeated offenses, the ban period is increased by <c>banRepeatedOffenseCoefficient</c> each time. The ban period stops increasing after <c>banRepeatedOffenseMax</c> offenses. <list type="bullet">sfsdf</list></summary>
133
+
/// <remarks>
134
+
/// <para>Example using <c>banPeriod</c> = 1 day, <c>banRepeatedOffenseCoefficient</c> = 1, and <c>banRepeatedOffenseMax</c> = 4:</para>
/// <param name="banCount">How many times the subnet in question has been banned, including this time. Starts at <c>1</c> for a new subnet that is being banned for the first time.</param>
137
+
/// <returns>How long the offending subnet should be banned.</returns>
0 commit comments