Simple TCP and Unix-Socket Proxy
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
smf
.gitignore
README.md
main.js
package.json

README.md

core-proxy

Simple TCP and Unix-Socket Proxy

Install

npm install -g core-proxy

Usage

Options:
  --source, -s       [required]  [default: "::1:3306"]
  --destination, -d  [required]
  • --source: Path to UNIX Socket or hostname:port for TCP
  • --destination: hostname:port (TCP only)

All parameters can be passed multiple times.

Example

Listen on IPv6 loopback address:

proxy -s /var/mysql/mysql.sock -s ::1:3306 -d db1.example.com:3306 -d db2.example.com:3306