interception

package
v1.6.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Packets is a stream of interception network packets.
	Packets = make(chan packet.Packet, 1000)

	// BandwidthUpdates is a stream of bandwidth usage update for connections.
	BandwidthUpdates = make(chan *packet.BandwidthUpdate, 1000)
)

Functions

func DeactivateNfqueueFirewall

func DeactivateNfqueueFirewall() error

DeactivateNfqueueFirewall drops portmaster related IP tables rules. Any errors encountered accumulated into a *multierror.Error.

func ResetVerdictOfAllConnections

func ResetVerdictOfAllConnections() error

ResetVerdictOfAllConnections resets all connections so they are forced to go thought the firewall again.

func StartNfqueueInterception

func StartNfqueueInterception(packets chan<- packet.Packet) (err error)

StartNfqueueInterception starts the nfqueue interception.

func StopNfqueueInterception

func StopNfqueueInterception() error

StopNfqueueInterception stops the nfqueue interception.

func UpdateVerdictOfConnection

func UpdateVerdictOfConnection(conn *network.Connection) error

UpdateVerdictOfConnection deletes the verdict of the given connection so it can be initialized again with the next packet.

Types

type Interception added in v1.6.19

type Interception struct {
	// contains filtered or unexported fields
}

Interception is the packet interception module.

func New added in v1.6.19

func New(instance instance) (*Interception, error)

New returns a new Interception module.

func (*Interception) Manager added in v1.6.19

func (i *Interception) Manager() *mgr.Manager

Manager returns the module manager.

func (*Interception) Start added in v1.6.19

func (i *Interception) Start() error

Start starts the module.

func (*Interception) Stop added in v1.6.19

func (i *Interception) Stop() error

Stop stops the module.

Directories

Path Synopsis
ebpf
Package nfq contains a nfqueue library experiment.
Package nfq contains a nfqueue library experiment.
Package windowskext provides network interception capabilities on windows via the Portmaster Kernel Extension.
Package windowskext provides network interception capabilities on windows via the Portmaster Kernel Extension.
Package windowskext provides network interception capabilities on windows via the Portmaster Kernel Extension.
Package windowskext provides network interception capabilities on windows via the Portmaster Kernel Extension.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL