Documentation ¶
Index ¶
- func AddHostsToExceptions(IPs []net.IP, onlyForICMP bool) error
- func AllowLAN(allowLan bool, allowLanMulticast bool) error
- func ClientConnected(clientLocalIPAddress net.IP, clientPort int, serverIP net.IP, serverPort int, ...) error
- func ClientDisconnected() error
- func ClientPaused()
- func ClientResumed()
- func GetEnabled() (bool, error)
- func Initialize() error
- func SetEnabled(enable bool) error
- func SetManualDNS(addr net.IP) error
- func SetPersistant(persistant bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHostsToExceptions ¶
AddHostsToExceptions - allow comminication with this hosts Note!: all added hosts will be removed from exceptions after client disconnection (after call 'ClientDisconnected()')
func ClientConnected ¶
func ClientConnected(clientLocalIPAddress net.IP, clientPort int, serverIP net.IP, serverPort int, isTCP bool) error
ClientConnected - allow communication for local vpn/client IP address
func ClientDisconnected ¶
func ClientDisconnected() error
ClientDisconnected - Remove all hosts exceptions
func Initialize ¶
func Initialize() error
Initialize is doing initialization stuff Must be called on application start
func SetManualDNS ¶
SetManualDNS - configure firewall to allow DNS which is out of VPN tunnel Applicable to Windows implementation (to allow custom DNS from local network)
func SetPersistant ¶
SetPersistant - set persistant firewall state and enable it if necessary
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.