Skip to content

Evulpes/IPSecDotNet5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPSecDotNet5

netsh ipsec static add policy ExamplePolicy
netsh ipsec static add filterlist ExampleFilterList
netsh ipsec static add filter filterlist=ExampleFilterList srcaddr=any dstaddr=any protocol=tcp dstport=8080
netsh ipsec static add filteraction ExampleFilterAction action=block
netsh ipsec static add rule name=ExampleRule policy=ExamplePolicy filterlist=ExampleFilterList filteraction=ExampleFilterAction
netsh ipsec static set policy ExamplePolicy assign=y
netsh ipsec static set policy ExamplePolicy assign=n

Progress:

ipsec.CreatePolicy(policyData)

ipsec.CreatePortFilter("ExampleFilterList", new IPSec.Port[] { new IPSec.Port { port = 8080, portType = IPSec.PortType.TCP } }, out IPSEC_FILTER_DATA data);
ipsec.CreateFilterAction("ExampleFilterAction", IPSec.FilterActionType.Block, out IPSEC_NEGPOL_DATA myFilterAction);
ipsec.CreateRule(policyData.PolicyIdentifier, nfaData);
ipsec.AssignPolicy(policyData.PolicyIdentifier);
ipsec.UnassignPolicy(policyData.PolicyIdentifier);

https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-GPIPSEC/%5BMS-GPIPSEC%5D.pdf

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages