wg-nc

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

wg-nc

Simple Netcat tool written in Go. Fork of gonc with added userland wireguard support.

Install:

go get -u github.com/dnachev/wg-nc
Usage of wg-nc:
  -host string
        Remote host to connect, i.e. 127.0.0.1
  -listen
        Listen mode
  -port string
        Port to listen on or connect to (prepended by colon), i.e. :9999 (default ":9999")
  -proto string
        TCP/UDP mode (default "tcp")
  -proxy-port string
        Port to listen for connections to proxy, i.e :9999.
  -wg string
        Wireguard config file

Comments:

  • Send ~. to disconnect in UDP mode.
  • Proxy mode (when -proxy-port is provided) ignores process stdout and stdin and instead setups a persistent server, which forwards requests to the provided host + port.
  • Wireguard support was inspired by the Our User-Mode WireGuard Year blog post.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
SPDX-License-Identifier: MIT * * Copyright (C) 2019-2022 WireGuard LLC.
SPDX-License-Identifier: MIT * * Copyright (C) 2019-2022 WireGuard LLC.

Jump to

Keyboard shortcuts

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