Documentation
¶
Overview ¶
Package tunnel implements TCP/UDP forwarding over WireGuard.
Index ¶
- func Apoxy4To6Range() netip.Prefix
- func NewApoxy4To6Prefix(orgID uuid.UUID, endpoint string) netip.Prefix
- type Tunnel
- func (t *Tunnel) AddPeer(peerConf *wireguard.PeerConfig) error
- func (t *Tunnel) Close()
- func (t *Tunnel) ExternalAddress() netip.AddrPort
- func (t *Tunnel) InternalAddress() netip.Prefix
- func (t *Tunnel) ProxyAddress() string
- func (t *Tunnel) PublicKey() string
- func (t *Tunnel) RemovePeer(publicKey string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apoxy4To6Range ¶
Apoxy4To6Range returns the Unique Local Adddres prefix used by Apoxy for IPv4 to IPv6 translation.
Types ¶
type Tunnel ¶
type Tunnel struct {
// contains filtered or unexported fields
}
func CreateTunnel ¶
func CreateTunnel( ctx context.Context, projectID uuid.UUID, endpoint string, socksPort uint16, verbose bool, ) (*Tunnel, error)
CreateTunnel creates a new user-space WireGuard tunnel.
func (*Tunnel) ExternalAddress ¶
func (*Tunnel) InternalAddress ¶
func (*Tunnel) ProxyAddress ¶
func (*Tunnel) RemovePeer ¶
Click to show internal directories.
Click to hide internal directories.