Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sean-bradley/cpptcp4sockettunnel
A TCP 4 Socket Tunnel, to be used for creating multiple endpoints for a simple server or load balancing.
https://github.com/sean-bradley/cpptcp4sockettunnel
cplusplus cpp sockets tunnel
Last synced: 1 day ago
JSON representation
A TCP 4 Socket Tunnel, to be used for creating multiple endpoints for a simple server or load balancing.
- Host: GitHub
- URL: https://github.com/sean-bradley/cpptcp4sockettunnel
- Owner: Sean-Bradley
- Created: 2016-01-31T18:29:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-31T18:48:31.000Z (almost 9 years ago)
- Last Synced: 2024-05-02T02:13:40.659Z (7 months ago)
- Topics: cplusplus, cpp, sockets, tunnel
- Language: C++
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CPPTCP4SocketTunnel
A TCP 4 Socket Tunnel, to be used for creating multiple endpoints for a simple server or load balancing.
IF you start a socket server using my CPPMultiThreadedLowLatencyTCPSocketServer on one ip address,
and you want to hide that ip from the rest of the world, or create a load balancing solution,
you can start up a CPPTCP4Socket tunnel on another server, and expose that endpoint to your desired clients.
eg,
/ Client 1
---Tunnel 1 (192.168.1.2:8080) { Client 2
/ \ Client 3
/
Server (192.169.1.1:8080) {
\
\ / Client 4
--- Tunnel 2 (192.168.1.3:8080) { Client 5
\ Client 6
Have as many tunnels as you want.Use what ever ports you want,
Actually, use the tunnel for what ever you want.
To compile on linux
g++ TCP4Tunnel.cpp -pthread -std=c++11 -o SeansTCP4Tunnel
to run
./SeansTCP4Tunnel [local listen port] [destination ip] [destination port]
test using either the supplied tcp client in the other repository, or simply just telnet