Table of Contents

Class TrackingOptions

Namespace
VpnHood.Core.Server.Access.Configurations
Assembly
VpnHood.Core.Server.Access.dll

Represents what the server's track log records of its sessions and their connections.

public class TrackingOptions
Inheritance
TrackingOptions
Inherited Members

Remarks

A setting left null takes its default, which the property of its name ending in Value gives. The track log is on where any of the client's IP, the source port, or the destination's IP or port is recorded (IsEnabled). It records what the server forwards itself, not what its VPN adapter carries.

Properties

IsEnabled

Gets a value indicating whether the track log is on: any of the client's IP, the source port, or the destination's IP or port is recorded.

[JsonIgnore]
public bool IsEnabled { get; }

Property Value

bool

TrackClientIp

Gets or sets a value indicating whether the session and track logs record the client's IP as it is, or null for false.

public bool? TrackClientIp { get; set; }

Property Value

bool?

TrackClientIpValue

Gets TrackClientIp, or its default, false.

[JsonIgnore]
public bool TrackClientIpValue { get; }

Property Value

bool

TrackDestinationIp

Gets or sets a value indicating whether the track log records the destination address of each connection the server forwards itself, as a token that tells one from another, or null for false.

public bool? TrackDestinationIp { get; set; }

Property Value

bool?

TrackDestinationIpValue

Gets TrackDestinationIp, or its default, false.

[JsonIgnore]
public bool TrackDestinationIpValue { get; }

Property Value

bool

TrackDestinationPort

Gets or sets a value indicating whether the track log records the destination port of each connection the server forwards itself, or null for false.

public bool? TrackDestinationPort { get; set; }

Property Value

bool?

TrackDestinationPortValue

Gets TrackDestinationPort, or its default, false.

[JsonIgnore]
public bool TrackDestinationPortValue { get; }

Property Value

bool

TrackIcmp

Gets or sets a value indicating whether the track log records ICMP, or null for true.

public bool? TrackIcmp { get; set; }

Property Value

bool?

TrackIcmpValue

Gets TrackIcmp, or its default, true.

[JsonIgnore]
public bool TrackIcmpValue { get; }

Property Value

bool

TrackLocalPort

Gets or sets a value indicating whether the track log records the source port of each connection the server forwards itself, or null for false.

public bool? TrackLocalPort { get; set; }

Property Value

bool?

TrackLocalPortValue

Gets TrackLocalPort, or its default, false.

[JsonIgnore]
public bool TrackLocalPortValue { get; }

Property Value

bool

TrackTcp

Gets or sets a value indicating whether the track log records TCP, or null for true.

public bool? TrackTcp { get; set; }

Property Value

bool?

TrackTcpValue

Gets TrackTcp, or its default, true.

[JsonIgnore]
public bool TrackTcpValue { get; }

Property Value

bool

TrackUdp

Gets or sets a value indicating whether the track log records UDP, or null for true.

public bool? TrackUdp { get; set; }

Property Value

bool?

TrackUdpValue

Gets TrackUdp, or its default, true.

[JsonIgnore]
public bool TrackUdpValue { get; }

Property Value

bool

Methods

ApplyDefaults()

Sets each option left null to its default.

public void ApplyDefaults()

Merge(TrackingOptions)

Copies over these options each one another set sets.

public void Merge(TrackingOptions obj)

Parameters

obj TrackingOptions

The options that win where they are set.