Add NETMOUNTAINS IP Blocklist with complete data model

Co-authored-by: collinbarrett <6483057+collinbarrett@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-07-29 22:07:06 +00:00 committed by Collin Barrett
parent 2a958cb93e
commit eb4844676b
9 changed files with 88529 additions and 0 deletions

View file

@ -0,0 +1,89 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class AddNetmountainsIpBlocklist : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "FilterList",
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
values: new object[] { 2747, null, "Automatically updated IP blocklist maintained by NETMOUNTAINS® Group GmbH, a German IT security company providing threat intelligence and security services.", null, null, null, "https://netmountains.de/", null, 3, "NETMOUNTAINS IP Blocklist", null, null, null });
migrationBuilder.InsertData(
table: "Maintainer",
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
values: new object[] { 202, null, "NETMOUNTAINS® Group GmbH", null, "https://netmountains.de/" });
migrationBuilder.InsertData(
table: "FilterListMaintainer",
columns: new[] { "FilterListId", "MaintainerId" },
values: new object[] { 2747, 202 });
migrationBuilder.InsertData(
table: "FilterListSyntax",
columns: new[] { "FilterListId", "SyntaxId" },
values: new object[] { 2747, (short)9 });
migrationBuilder.InsertData(
table: "FilterListTag",
columns: new[] { "FilterListId", "TagId" },
values: new object[,]
{
{ 2747, 6 },
{ 2747, 20 }
});
migrationBuilder.InsertData(
table: "FilterListViewUrl",
columns: new[] { "FilterListId", "Id", "Primariness", "Url" },
values: new object[] { 2747, 3079, (short)1, "https://netmountains.de/feeds/ip_blacklist.txt" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "FilterListMaintainer",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 2747, 202 });
migrationBuilder.DeleteData(
table: "FilterListSyntax",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 2747, (short)9 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2747, 6 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2747, 20 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2747, 3079 });
migrationBuilder.DeleteData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2747);
migrationBuilder.DeleteData(
table: "Maintainer",
keyColumn: "Id",
keyValue: 202);
}
}
}

View file

@ -20361,6 +20361,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://github.com/elliotwutingfeng/United-States-SDN-List-Websites/issues",
LicenseId = 10,
Name = "United States SDN List (Pi-hole)"
},
new
{
Id = 2747,
Description = "Automatically updated IP blocklist maintained by NETMOUNTAINS® Group GmbH, a German IT security company providing threat intelligence and security services.",
HomeUrl = "https://netmountains.de/",
LicenseId = 3,
Name = "NETMOUNTAINS IP Blocklist"
});
});
@ -32545,6 +32553,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2746,
MaintainerId = 174
},
new
{
FilterListId = 2747,
MaintainerId = 202
});
});
@ -43947,6 +43960,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2746,
SyntaxId = (short)1
},
new
{
FilterListId = 2747,
SyntaxId = (short)9
});
});
@ -60349,6 +60367,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2746,
TagId = 20
},
new
{
FilterListId = 2747,
TagId = 6
},
new
{
FilterListId = 2747,
TagId = 20
});
});
@ -63239,6 +63267,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 201,
Name = "KodoPengin",
Url = "https://github.com/KodoPengin"
},
new
{
Id = 202,
Name = "NETMOUNTAINS® Group GmbH",
Url = "https://netmountains.de/"
});
});
@ -88118,6 +88152,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/elliotwutingfeng/United-States-SDN-List-Websites/main/urls-pihole.txt"
},
new
{
FilterListId = 2747,
Id = 3079,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://netmountains.de/feeds/ip_blacklist.txt"
});
});

View file

@ -17991,5 +17991,12 @@
"issuesUrl": "https://github.com/elliotwutingfeng/United-States-SDN-List-Websites/issues",
"licenseId": 10,
"name": "United States SDN List (Pi-hole)"
},
{
"description": "Automatically updated IP blocklist maintained by NETMOUNTAINS® Group GmbH, a German IT security company providing threat intelligence and security services.",
"homeUrl": "https://netmountains.de",
"id": 2747,
"licenseId": 3,
"name": "NETMOUNTAINS IP Blocklist"
}
]

View file

@ -6178,5 +6178,9 @@
{
"filterListId": 2746,
"maintainerId": 174
},
{
"filterListId": 2747,
"maintainerId": 202
}
]

View file

@ -9106,5 +9106,9 @@
{
"filterListId": 2746,
"syntaxId": 1
},
{
"filterListId": 2747,
"syntaxId": 9
}
]

View file

@ -13106,5 +13106,13 @@
{
"filterListId": 2746,
"tagId": 20
},
{
"filterListId": 2747,
"tagId": 6
},
{
"filterListId": 2747,
"tagId": 20
}
]

View file

@ -16875,5 +16875,11 @@
"id": 3078,
"primariness": 1,
"url": "https://raw.githubusercontent.com/elliotwutingfeng/United-States-SDN-List-Websites/main/urls-pihole.txt"
},
{
"filterListId": 2747,
"id": 3079,
"primariness": 1,
"url": "https://netmountains.de/feeds/ip_blacklist.txt"
}
]

View file

@ -1038,5 +1038,10 @@
"id": 201,
"name": "KodoPengin",
"url": "https://github.com/KodoPengin"
},
{
"id": 202,
"name": "NETMOUNTAINS® Group GmbH",
"url": "https://netmountains.de"
}
]