Skip to content

amazingchow/traffic-forwarder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A high-performance TCP traffic forwarding tool implemented in Golang, designed for efficient network traffic routing between local and remote endpoints. It's a robust, memory-optimized TCP proxy that forwards traffic from local sockets to remote sockets with minimal latency and resource consumption. Built with Go 1.21+, it leverages zero-copy techniques and advanced connection management for optimal performance in production environments.

Requirements

  • Go 1.21 or later
  • Linux, macOS, or Windows
  • Network access to target endpoints

Installation

From Source

git clone https://github.com/amazingchow/traffic-forwarder.git
cd traffic-forwarder
mv .env.example .env
make build release=1

Quick Start

Basic Usage

  1. Update the .env file:

    change the .env file according to your needs

  2. Start the service:

    make run
  3. Stop the service:

    make stop

Optimized Build

For production deployments with enhanced memory management:

make build release=1 memory_optimized=1

About

A TCP Traffic Forwarder

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published