max3584 / rproxy-api

Reverse Proxy and Dynamic Port Bind
https://github.com/max3584/TCP-UDP-rproxy-ui
Other
1 stars 0 forks source link
dynamic-binding json-api rproxy tcp udp

TCP/UDP ReverseProxy

Usage:

# -- clone repository --
git clone https://github.com/max3584/TCP-UDP-rproxy.git

# -- reverse proxy build
cd TCP-UDP-rproxy

./forward -loglevel 2 \
          -debug false \
          -logfile ./proxy.log \
          -api_addr 127.0.0.1 \
          -api_port 8080 \
          -control_tcp_addr 127.0.0.2 \
          -control_udp_addr 127.0.0.3

reverse proxy setup

APIでTCP/UDPのデータReverseProxyを追加することができます。
例:
nc 127.0.0.1 8080
# UP TCP Reverse Proxy 
{"property":"UP","listen_addr":"192.168.1.1","listen_port":8888,"remote_addr":"192.168.1.2","remote_port":8080,"protocol":"TCP"}

# STOP TCP Reverse Proxy
nc 127.0.0.2 8888
{"property": "STOP"}

# TCP ReverseProxy Update remote address
nc 127.0.0.2 8888
{"property": "STOP", "parameter": "192.168.1.3:8081"}
このような形であれば何でも反応するようになっています。

About rproxy-api

rproxy-api is a derivative of the rproxy project by glacierx. The project utilizes core functionalities from the original rproxy implementation and introduces additional features, including API server capabilities and enhanced logging.

Original Project

Modifications

License

This project is licensed under the MIT License. See the LICENSE file for details.