NM.DeviceWireGuard

g GObject.Object GObject.Object NM.Object NM.Object GObject.Object->NM.Object NM.Device NM.Device NM.DeviceWireGuard NM.DeviceWireGuard NM.Device->NM.DeviceWireGuard NM.Object->NM.Device

Subclasses:

None

Methods

Inherited:

NM.Device (54), NM.Object (2), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_fwmark ()

get_listen_port ()

get_public_key ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Device (32), NM.Object (2)

Name

Type

Flags

Short Description

fwmark

int

r

listen-port

int

r

public-key

GLib.Bytes

r

Signals

Inherited:

NM.Device (1), GObject.Object (1)

Fields

Inherited:

NM.Device (1), GObject.Object (1)

Class Details

class NM.DeviceWireGuard(**kwargs)
Bases:

NM.Device

Abstract:

No

Structure:

NM.DeviceWireGuardClass

New in version 1.14.

get_fwmark()
Returns:

0 if fwmark not in use, 32-bit fwmark value otherwise

Return type:

int

Gets the fwmark (firewall mark) for this interface. It can be used to set routing policy for outgoing encrypted packets. See: ip-rule(8)

New in version 1.14.

get_listen_port()
Returns:

UDP listen port

Return type:

int

Gets the local UDP port this interface listens on

New in version 1.14.

get_public_key()
Returns:

the GLib.Bytes containing the 32-byte public key

Return type:

GLib.Bytes

Gets the public key for this interface

New in version 1.14.

Property Details

NM.DeviceWireGuard.props.fwmark
Name:

fwmark

Type:

int

Default Value:

0

Flags:

READABLE

Optional firewall mark - see ip-rule(8). Used when setting routing policy for outgoing encrypted packets. Set to 0 to disable the mark (default).

New in version 1.14.

NM.DeviceWireGuard.props.listen_port
Name:

listen-port

Type:

int

Default Value:

0

Flags:

READABLE

Local UDP listen port. Set to 0 to allow a random port to be chosen (default).

New in version 1.14.

NM.DeviceWireGuard.props.public_key
Name:

public-key

Type:

GLib.Bytes

Default Value:

None

Flags:

READABLE

32-byte public key, derived from the current private key.

New in version 1.14.