portmaster: github.com/safing/portmaster/firewall Index | Files | Directories

package firewall

import "github.com/safing/portmaster/firewall"

Index

Package Files

config.go dialer.go firewall.go master.go ports.go tunnel.go

func DecideOnCommunication Uses

func DecideOnCommunication(comm *network.Communication, pkt packet.Packet)

DecideOnCommunication makes a decision about a communication with its first packet.

func DecideOnCommunicationAfterIntel Uses

func DecideOnCommunicationAfterIntel(comm *network.Communication, fqdn string, rrCache *intel.RRCache)

DecideOnCommunicationAfterIntel makes a decision about a communication after the dns query is resolved and intel is gathered.

func DecideOnCommunicationBeforeIntel Uses

func DecideOnCommunicationBeforeIntel(comm *network.Communication, fqdn string)

DecideOnCommunicationBeforeIntel makes a decision about a communication before the dns query is resolved and intel is gathered.

func DecideOnLink(comm *network.Communication, link *network.Link, pkt packet.Packet)

DecideOnLink makes a decision about a link with the first packet.

func FilterDNSResponse Uses

func FilterDNSResponse(comm *network.Communication, fqdn string, rrCache *intel.RRCache) *intel.RRCache

FilterDNSResponse filters a dns response according to the application profile and settings.

func GetPermittedPort Uses

func GetPermittedPort() uint16

GetPermittedPort returns a local port number that is already permitted for communication. This bypasses the process attribution step to guarantee connectivity. Communication on the returned port is attributed to the Portmaster.

func PermittedAddr Uses

func PermittedAddr(network string) net.Addr

PermittedAddr returns an already permitted local address for the given network for reliable connectivity. Returns nil in case of error.

func PermittedTCPAddr Uses

func PermittedTCPAddr() *net.TCPAddr

PermittedTCPAddr returns an already permitted local tcp address for reliable connectivity. Returns nil in case of error.

func PermittedUDPAddr Uses

func PermittedUDPAddr() *net.UDPAddr

PermittedUDPAddr returns an already permitted local udp address for reliable connectivity. Returns nil in case of error.

Directories

PathSynopsis
inspection
inspection/tls
inspection/tls/tlslibPackage tls partially implements TLS 1.2, as specified in RFC 5246.
inspection/tls/verify
interception
interception/nfqueue
interception/windivert
interception/windivert/test
interception/windowskext
interception/windowskext/test
interception/windowskext/test/endian

Package firewall imports 25 packages (graph) and is imported by 1 packages. Updated 2019-07-18. Refresh now. Tools for package owners.