holeysocks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DarnSocks

func DarnSocks(config MainConfig) error

DarnSocks creates a new SOCKS5 server at the provided ports and remote-forwards the port to another machine over SSH

func ForwardService

func ForwardService(config MainConfig) error

ForwardService implements reverse port forwarding similar to the -R flag in openssh-client. Configuration is done in the /configs/config.json file. NOTE The generated keys and config.json data are embedded in the binary so take the appropriate precautions when setting up the ssh server user.

Types

type MainConfig

type MainConfig struct {
	SSH   sshConfig   `json:"ssh"`
	Socks socksConfig `json:"socks"`
}

MainConfig contains SSH and Socks configuration variables

Jump to

Keyboard shortcuts

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