tunnel

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TunnelCmd = &cobra.Command{
	Use:   "tunnel SERVER",
	Short: "Create a TCP tunnel to a remote server",
	Long: `
	This command creates a TCP tunnel that forwards local port traffic to a remote server's port.
	The tunnel uses WebSocket + smux multiplexing for efficient connection handling.
	`,
	Example: `
	# Create a tunnel to forward local port 9000 to remote port 8082
	alpacon tunnel my-server -l 9000 -r 8082

	# Forward local port 9000 to remote port 8082 (long flags)
	alpacon tunnel my-server --local 9000 --remote 8082

	# Forward local port 2222 to remote server's SSH port (22)
	alpacon tunnel my-server -l 2222 -r 22

	# Specify username and groupname for the tunnel
	alpacon tunnel my-server -l 9000 -r 8082 -u admin -g developers
	`,
	Args: cobra.ExactArgs(1),
	Run:  runTunnel,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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