nfq

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package nfq contains a nfqueue library experiment.

Index

Constants

View Source
const (
	MarkAccept       = 1700
	MarkBlock        = 1701
	MarkDrop         = 1702
	MarkAcceptAlways = 1710
	MarkBlockAlways  = 1711
	MarkDropAlways   = 1712
	MarkRerouteNS    = 1799
	MarkRerouteSPN   = 1717
)

Firewalling marks used by the Portmaster. See TODO on packet.mark() on their relevance and a possibility to remove most IPtables rules.

Variables

This section is empty.

Functions

func DeleteAllMarkedConnection added in v0.9.8

func DeleteAllMarkedConnection() error

DeleteAllMarkedConnection deletes all marked entries from the conntrack table.

func DeleteMarkedConnection added in v1.0.1

func DeleteMarkedConnection(conn *network.Connection) error

DeleteMarkedConnection removes a specific connection from the conntrack table.

func InitNFCT added in v1.0.1

func InitNFCT() error

InitNFCT initializes the network filter conntrack library.

func TeardownNFCT added in v1.0.1

func TeardownNFCT()

TeardownNFCT deinitializes the network filter conntrack library.

Types

type Queue

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

Queue wraps a nfqueue.

func New

func New(qid uint16, v6 bool) (*Queue, error)

New opens a new nfQueue.

func (*Queue) Destroy

func (q *Queue) Destroy()

Destroy destroys the queue. Any error encountered is logged.

func (*Queue) PacketChannel

func (q *Queue) PacketChannel() <-chan pmpacket.Packet

PacketChannel returns the packet channel.

Jump to

Keyboard shortcuts

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