Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CfgOptionEnableFilterKey = "filter/enable"

	CfgOptionAskWithSystemNotificationsKey = "filter/askWithSystemNotifications"

	CfgOptionAskTimeoutKey = "filter/askTimeout"

	CfgOptionPermanentVerdictsKey = "filter/permanentVerdicts"
)

    Configuration Keys.

    Functions

    func DecideOnConnection

    func DecideOnConnection(ctx context.Context, conn *network.Connection, pkt packet.Packet)

      DecideOnConnection makes a decision about a connection. When called, the connection and profile is already locked.

      func DecideOnResolvedDNS

      func DecideOnResolvedDNS(
      	ctx context.Context,
      	conn *network.Connection,
      	q *resolver.Query,
      	rrCache *resolver.RRCache,
      ) *resolver.RRCache

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

        func GetPermittedPort

        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

          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

            func PermittedTCPAddr() *net.TCPAddr

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

              func PermittedUDPAddr

              func PermittedUDPAddr() *net.UDPAddr

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

                func PreventBypassing

                func PreventBypassing(conn *network.Connection) (endpoints.EPResult, string, nsutil.Responder)

                  PreventBypassing checks if the connection should be denied or permitted based on some bypass protection checks.

                  func SetNameserverIPMatcher

                  func SetNameserverIPMatcher(fn func(ip net.IP) bool) error

                    SetNameserverIPMatcher sets a function that is used to match the internal nameserver IP(s). Can only bet set once.

                    Types

                    This section is empty.

                    Directories

                    Path Synopsis
                    nfq
                    Package nfq contains a nfqueue library experiment.
                    Package nfq contains a nfqueue library experiment.
                    windowskext
                    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.