Skip to content

depler/Albion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Albion

Non-interactive firewall based on WFP (Windows Filtering Platform)

Usage (code sample)

using var engine = new FilteringEngine();

//init and clear existing filters
engine.Initialize();
engine.ClearFilters();

//prevent port scanning
engine.SetSilentBlockInV4();
engine.SetSilentBlockInV6();

//block all incoming connections
engine.AddFilterInV4(false);
engine.AddFilterInV6(false);

//allow incoming ping requests
engine.AddFilterInV4(true, new[] { Native.IPPROTO.ICMP });

//allow incoming requests for DNS, HTTP, HTTPS
engine.AddFilterInV4(true, new[] { Native.IPPROTO.TCP }, new [] { "53", "80", "443" });

//allow SMB and RDP incoming connections from specified network
engine.AddFilterInV4(true, new[] { Native.IPPROTO.TCP }, new[] { "445", "3389" }, new[] { "192.168.1.0/24" });

About

Non-interactive firewall based on WFP (Windows Filtering Platform)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages