socks5map

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2016 License: MIT Imports: 8 Imported by: 0

README

socks5map

Development SOCKS5 server to handle fake DNS resolution. Thin layer over https://github.com/armon/go-socks5

  1. Start socks5map, by default listens to :1080, can be controller with -l flag.
  2. Configure browser to use SOCKS5 proxy (ie. 127.0.0.1:1080).
  3. Now any hostname will be "proxied" to localhost, where you should have a web server.
  4. You can also resolve particular domains to particular IPs instead of a wildcard using the -r flag.

Usage

socks5map [-h] [-l addr] [-r rules]
  • -h Help screen
  • -l Listen address (default ":8080")
  • -r Comma separated list of "domain:IP" for DNS resolving; * or empty matches any name. Domains not matched by any rule resolve through regular system DNS. (default :127.0.0.1, meaning anything to localhost)

Example:

Listen to 127.0.0.2:9000, resolve hostname home to IP 127.0.0.1 and extension.domain.com to 192.168.0.100, other domains will be resolved by system's DNS.

socks5map -l 127.0.0.2:9000 -r 'home:127.0.0.1,extension.domain.com:192.168.0.100'

Installation

go get github.com/dberstein/socks5map

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