tcp

package
v0.0.0-...-9b16b4d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package tcp proxies TCP connections between a WireGuard peer and a destination accessible by the machine where Wiretap is running.

Adapted from https://github.com/tailscale/tailscale/blob/2cf6e127907641bdb9eb5cd8e8cf14e968b571d7/wgengine/netstack/netstack.go Adapted from https://github.com/sandialabs/wiretap/blob/21e6aba408e2fd3a059fa299ee040f1ff2ea7293/src/transport/tcp/tcp.go Copyright (c) Tailscale Inc & AUTHORS SPDX-License-Identifier: BSD-3-Clause

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(c Config) func(*tcp.ForwarderRequest)

Handler manages a single TCP flow.

Types

type Config

type Config struct {
	CatchTimeout      time.Duration
	ConnTimeout       time.Duration
	KeepaliveIdle     time.Duration
	KeepaliveInterval time.Duration
	KeepaliveCount    int
	Tnet              *netstack.Net
	StackLock         *sync.Mutex
}

Configure TCP handler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL