Info
Version: | 2024.11.15.421 |
Author(s): | Walter Verhoeven, Stijn Snellinx |
Last Update: | Friday, November 15, 2024 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/Walter.Web.FireWall.SMTPLogger |
Install
Install-Package Walter.Web.FireWall.SMTPLogger
dotnet add package Walter.Web.FireWall.SMTPLogger
paket add Walter.Web.FireWall.SMTPLogger
Walter.Web.FireWall.SMTPLogger Download (Unzip the "nupkg" after downloading)
Dependencies
net5.0
- Walter.BOM(>= 2020.12.27.6)
- Walter.DataTools.MsSql(>= 2020.12.27.6)
- Walter.Web.Firewall(>= 2020.12.27.6)
- Walter(>= 2020.12.27.1)
- Walter.BOM(>= 2020.12.27.6)
- Walter.DataTools.MsSql(>= 2020.12.27.6)
- Walter.Web.Firewall(>= 2020.12.27.6)
- Walter(>= 2020.12.27.1)
- Walter.BOM(>= 2020.12.27.6)
- Walter.DataTools.MsSql(>= 2020.12.27.6)
- Walter.Web.Firewall(>= 2020.12.27.6)
- Walter(>= 2020.12.27.1)
Tags
and allows for the logging of incidents via E-Mail by using a E-Mail buffer and sends the emails at configured intervals.
The NuGet package is easily activated by dependency injection during service configuration
services.AddFireWall(FireWallTrial.License, FireWallTrial.DomainKey
, domainName: new Uri("https://www.your-domain.com", UriKind.Absolute)
, options =>
{
//your firewall settings
}).UseSMTPReportingDatabase(options =>{
options.Archive = TimeSpan.FromDays(180);
options.Server = "mail.server.com";
options.UserName = "[email protected]";
options.Password = "pa$$w0rd1234";
options.Port = 8889;
options.From = "[email protected]";
options.IgnoreServerCertificateErrors = true;
options.DefaultEmail = "[email protected]";
options.Archive = TimeSpan.FromDays(60);
options.MailingList.AddRange(new[] {
new EMailAddress("Security Admin","[email protected]") {
Frequency= TimeSpan.FromHours(1),
Roles= EMailRoles.FireWallAdministrationViolations | EMailRoles.UnauthorizedPhysicalFilesViolation },
new EMailAddress("WAF","[email protected]"){
Frequency= TimeSpan.FromHours(1),
Roles= EMailRoles.ProductUpdates | EMailRoles.OwnAccountRelatedViolations } ,
});
});
More information on how to use this Add-On is available in this manual
https://www.asp-waf.com/download/ASP-WAF-FireWall-Getting-Started.pdf
as well as on-line at
https://www.asp-waf.com/NuGet.