proxy

package
v0.16.10 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 30 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

NET.PROXY

net proxy is a commandline tool that offers creation of one or several HTTP reverse proxies, in order to gather Netcap audit records from them.

Description

A file for each proxy will be created that contains HTTP audit records. Multiple proxies can be configured with a YAML config file.

The naming scheme is HTTP[remoteURL].ncap.gz, e.g: HTTP[github.com].ncap.gz

Read more about this tool in the documentation: https://docs.netcap.io

Usage examples

Use a single reverse proxy:

$ net proxy -local 127.0.0.1:4444 -remote https://github.com

Specify maximum number of idle connections:

$ net proxy -local 127.0.0.1:4444 -remote https://github.com -maxIdle 300

Dump audit records while capturing:

$ net proxy -local 127.0.0.1:4444 -remote https://github.com -dump

Help

Caution when supplying the config for this tool: for the proxy configuration use the proxy-config, to overwrite the commandline flags use -config!

$ net proxy -h
                       / |
 _______    ______   _10 |_     _______   ______    ______
/     / \  /    / \ / 01/  |   /     / | /    / \  /    / \
0010100 /|/011010 /|101010/   /0101010/  001010  |/100110  |
01 |  00 |00    00 |  10 | __ 00 |       /    10 |00 |  01 |
10 |  01 |01001010/   00 |/  |01 \_____ /0101000 |00 |__10/|
10 |  00 |00/    / |  10  00/ 00/    / |00    00 |00/   00/
00/   10/  0101000/    0010/   0010010/  0010100/ 1010100/
                                                  00 |
Network Protocol Analysis Framework               00 |
created by Philipp Mieden, 2018                   00/
v0.5

proxy tool usage examples:
        $ net proxy -local 127.0.0.1:4444 -remote https://github.com
        $ net proxy -local 127.0.0.1:4444 -remote https://github.com -maxIdle 300
        $ net proxy -local 127.0.0.1:4444 -remote https://github.com -dump

  -config="": read configuration from file at path
  -debug=false: set debug mode
  -dialTimeout=30: seconds until dialing to the backend times out
  -dump=false: dumps audit record as JSON to stdout
  -format=true: format when dumping JSON
  -gen-config=false: generate config
  -idleConnTimeout=90: seconds until a connection times out
  -local="": set local endpoint
  -maxIdle=120: maximum number of idle connections
  -membuf-size=10485760: set size for membuf
  -proxy-config="net.proxy-config.yml": set config file path
  -remote="": set remote endpoint
  -skipTlsVerify=false: skip TLS verification
  -tlsTimeout=15: seconds until a TLS handshake times out
  -trace=true: trace HTTP requests to retrieve additional information
  -version=false: print netcap package version and exit

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flags added in v0.6.6

func Flags() []string

Flags returns all flag names for the proxy subcommand.

func GetFlags added in v0.9.0

func GetFlags() []cli.Flag

GetFlags returns the CLI flags for the proxy subcommand.

func Run added in v0.6.6

func Run()

Run parses the subcommand flags and handles the arguments. This is a compatibility wrapper for the old Run() interface.

func RunWithContext added in v0.9.0

func RunWithContext(ctx context.Context, c *cli.Command) error

RunWithContext runs the proxy command with a CLI context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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