Table of Contents

Class NetFilter

Namespace
VpnHood.Core.Filtering.Abstractions
Assembly
VpnHood.Core.Filtering.Abstractions.dll

Holds the filters a VPN client or server applies to its flows: an IP filter, a domain filter and an IP mapper, each optional.

public class NetFilter : IDisposable
Inheritance
NetFilter
Implements
Inherited Members

Properties

DomainFilter

Gets the domain filter pipe, or null for none.

public IDomainFilter? DomainFilter { get; init; }

Property Value

IDomainFilter

IpFilter

Gets the IP filter pipe, or null for none.

public IIpFilter? IpFilter { get; init; }

Property Value

IIpFilter

IpMapper

Gets the IP mapper, or null for none.

public IIpMapper? IpMapper { get; init; }

Property Value

IIpMapper

Methods

Dispose()

Disposes the IP mapper and both filter pipes.

public void Dispose()

Reconfigure(CancellationToken)

Tells both filter pipes that their configuration outside the program may have changed: the IP pipe, then the domain pipe (Reconfigure(CancellationToken)).

public Task Reconfigure(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The token to monitor for cancellation requests.

Returns

Task

A task that represents the asynchronous operation.