Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TunnelCmd = &cobra.Command{ Use: "tunnel [SERVER NAME]", 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 a remote server alpacon tunnel [SERVER NAME] -l [LOCAL PORT] -r [REMOTE PORT] // Forward local port 9000 to remote server's port 8082 alpacon tunnel [SERVER NAME] --local 9000 --remote 8082 // Forward local port 2222 to remote server's SSH port (22) alpacon tunnel [SERVER NAME] -l 2222 -r 22 // Specify username and groupname for the tunnel alpacon tunnel [SERVER NAME] -l [LOCAL PORT] -r [REMOTE PORT] -u [USER NAME] -g [GROUP NAME] Flags: -l, --local [PORT] Local port to listen on (required). -r, --remote [PORT] Remote port to connect to (required). -u, --username [USER NAME] Username for the tunnel. -g, --groupname [GROUP NAME] Groupname for the tunnel. -v, --verbose Show connection logs. `, Args: cobra.ExactArgs(1), Run: runTunnel, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.