Skip to content

sten-schmidt/JTeeProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JTeeProxy

JTeeProxy is a simple teeproxy implemented in Java. It allows you to transparently forward a TCP port to a primary- and a secondary host and port. Both hosts can be set to localhost for internal port redirection.

[Client] <<----->> [JTeeProxy-Server:Port] 
                              | <<-------->> [PRIMARY-Server:Port]
                              | ---------->> [SECONDARY-Server:Port]

The responsed data from PRIMARY-Server can be logged by the JTeePoroxy-Process an will be forwarded the Client. The responsed data from SECONDARY-Server can be logged by the JTeeProxy-Process, but will not be forwared to the Client.

Quickstart

#Build
.\build.ps1

#Start Server A
java -cp .\JTeeProxy.jar net.jteeproxy.testtools.EchoServer 6789 
 
#Start Server B
java -cp .\JTeeProxy.jar net.jteeproxy.testtools.EchoServer 6790 

#Start the Proxy
java -cp .\JTeeProxy.jar net.jteeproxy.JTeeProxy 1234 localhost 6789 localhost 6790 

#Connect the Client to the Proxy
java -cp .\JTeeProxy.jar net.jteeproxy.testtools.EchoClient localhost 1234
#Type some Text and press Enter

TODO / planned features

  • HTTPS / SSL Support
  • One primary server and a list of secondary servers

About

JTeeProxy is a simple TCP bridging software that allows you to transparently forwarded a TCP port to a primary- and an secondary-host and port. Both hosts can be set to localhost for internal port redirection.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors