stdproxy

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 9 Imported by: 0

README

Stdproxy

Stdproxy is a program that can be used to proxy stdin & stdout throught a configured socks proxy

Usage

./stdproxy -h
Usage of ./stdproxy:
  -basic-auth
        Use basic authentication (default is to read 'PROXY_CREDS' environment variable)
  -creds-file string
        Filepath of proxy credentials
  -log
        Enable logging
  -log-file string
        Save log execution to file (default "/tmp/stdproxy_1669706846.log")
  -timeout duration
        Proxy connection timeout (default 5s)
  -version
        Show program version

You can configure this on your ssh config in the ProxyCommand option

Host foo_bar.com
  ProxyCommand /usr/local/bin/stdproxy proxy.internal.domain:3128 %h %p

Host foo_baz.es
  ProxyCommand /usr/local/bin/stdproxy --creds-file /tmp/secret.creds proxy.internal.domain:3128 %h %p 

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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