https://github.com/rumpelsepp/rtcp
A simple TCP relay
https://github.com/rumpelsepp/rtcp
go relay tcp
Last synced: 4 months ago
JSON representation
A simple TCP relay
- Host: GitHub
- URL: https://github.com/rumpelsepp/rtcp
- Owner: rumpelsepp
- License: mit
- Created: 2024-01-04T20:45:46.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-10-01T06:04:40.000Z (9 months ago)
- Last Synced: 2025-10-30T11:56:24.181Z (8 months ago)
- Topics: go, relay, tcp
- Language: Go
- Homepage:
- Size: 41 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rtcp (Relay TCP)
`rtcp` is a very simple TCP relay.
Its only purpose is to accept TCP connections, dial out to a remote host:port and forward everything.
## Build
```
$ make
```
## Run
This opens port 8000 on all interfaces and forwards everything to 1.1.1.1:80.
Concurrent connections, hostnames, and IPv4/IPv6 addresses are supported.
```
$ rtcp -l :8000 -t 1.1.1.1:80
```
For better readability, long arguments are supported:
```
$ rtcp --listen :8000 --target 1.1.1.1:80
```
TCP keepalive probes can be enabled as well:
```
$ rtcp --keep-alive --listen :8000 --target 1.1.1.1:80
```