Skip to content

A lightweight reverse proxy server that converts TLS traffic to TCP, allowing secure communication between clients and upstream servers.

License

Notifications You must be signed in to change notification settings

qianniaoge/tls_proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TLS Traffic Forwarder

A lightweight reverse proxy server that converts TLS traffic to TCP, allowing secure communication between clients and upstream servers.

Features

  • Accepts TLS connections from clients
  • Forwards decrypted traffic to upstream TCP servers
  • Easy to configure and use
  • Supports custom TLS certificates

Usage

./tproxy -l [local_address]:[port] -r [upstream_address]:[port] -c [cert_file] -k [key_file]

Options

  • -l: Local address and port to listen on (e.g., 127.0.0.1:8443)
  • -r: Upstream server address and port to forward traffic to (e.g., 127.0.0.1:8080)
  • -c: Path to the TLS certificate file (e.g., cert.pem)
  • -k: Path to the TLS private key file (e.g., key.pem)

Example

./tproxy -l 127.0.0.1:8443 -r 127.0.0.1:8080 -c cert.pem -k key.pem

This command starts the proxy server, listening on 127.0.0.1:8443 for TLS connections, and forwarding decrypted traffic to 127.0.0.1:8080 using the specified certificate and key files.

Building from Source

go build -o tproxy tproxy.go

License

MIT © phith0n

About

A lightweight reverse proxy server that converts TLS traffic to TCP, allowing secure communication between clients and upstream servers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%