Documentation
¶
Index ¶
Constants ¶
View Source
const ( TCP = Protocol("tcp") UDP = Protocol("udp") )
View Source
const EveryPort = 0 // EveryPort should be sent through the tunnel
Variables ¶
This section is empty.
Functions ¶
func MarshalForwards ¶
MarshalForwards returns a forwards specification in json format.
Types ¶
type Forward ¶
type Forward struct {
Protocol Protocol // Protocol to be forwarded.
DstPrefix *net.IPNet // Traffic matching this network prefix will be sent via the tunnel.
DstPort int // Traffic with this destination port will be sent via the tunnel.
Path string // Path of the tunnel server.
}
Forward traffic for the given IP destination to the tunnel server on the Unix domain socket path.
func UnmarshalForwards ¶
UnmarshalForwards returns a parsed forwards specification.
type Request ¶
type Request struct {
Protocol Protocol
DstIP net.IP // DstIP is the Destination IP address.
DstPort int // DstPort is the Destination Port.
SrcIP net.IP // SrcIP is the Source IP address.
SrcPort int // SrcPort is the Source Port.
}
Request to open a tunnel.
func ReadRequest ¶
ReadRequest from vpnkit to open a tunnel to a remote service.
Click to show internal directories.
Click to hide internal directories.