package
0.0.0-20250225105205-8289a55d8107
Repository: https://github.com/mysteriumnetwork/node.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AddInboundRule adds new inbound rule to the platform specific firewall.
AllowIPAccess adds IP based exception.
AllowURLAccess adds exception to blocked traffic for specified URL (host part is usually taken).
BlockNonTunnelTraffic effectively disallows any outgoing traffic from consumer node with specified scope.
NewIncomingTrafficFirewall creates firewall instance for incoming traffic.
NewOutgoingTrafficFirewall creates firewall instance for outgoing traffic.
RemoveInboundRule removes inbound rule from the platform specific firewall.
Reset firewall state - usually called when cleanup is needed (during shutdown).

# Constants

Global scope overrides session scope and is not affected by session scope calls.
Session scope block is applied before connection session begins and is removed when session ends.

# Variables

DefaultOutgoingFirewall outgoing traffic firewall bootstrapped for global calls.

# Interfaces

IncomingTrafficFirewall defines provider side firewall, to control which traffic is enabled to pass and which not.
OutgoingTrafficFirewall defines consumer side firewall a.k.a.

# Type aliases

IncomingRuleRemove type defines function for removal of created rule.
OutgoingRuleRemove type defines function for removal of created rule.
Scope type represents scope of blocking consumer traffic.