go-tcp-proxy icon indicating copy to clipboard operation
go-tcp-proxy copied to clipboard

A small TCP proxy written in Go

Results 14 go-tcp-proxy issues
Sort by recently updated
recently updated
newest added

Added support for [proxy protocol](https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt) allows passing the real IP address of the connected user. This is usefull if between the end server and the proxy is another piece like...

e.g. [client] -> [tcp proxy] -> [https terminator]

question

Can I change remote address dynamicly and restart gorutine by condition? For example, I opened TCP connect, parse some HTTP package, choose remote server from External API, How shoud I...

Currently each connection only reads and sends a packet then closed immediately, could you add an option to keep the connection alive?

All the double-negatives are a little difficult to unpack but I think the `-n` flag and: https://github.com/jpillora/go-tcp-proxy/blob/master/proxy.go#L76 is not doing anything because `SetNoDelay(true)` is the default: https://pkg.go.dev/net#TCPConn.SetNoDelay

I need a proxy to imitate a port mirroring (SPAN) that will be used for a logging. There is some NGINX module http://nginx.org/en/docs/http/ngx_http_mirror_module.html but it mirrors only requests. For my...

Here is the testing output. After the target IP address changes and the DNS record is updated, we retry the `net.ResolveTCPAddr`: ``` Connection #001 Closed (10109150 bytes sent, 9 bytes...

hi do you have support for ssl?

is it possible to use this as a reverse proxy? For example have a webserver locally, but make it available from the cloud. Something like ngrok is doing.