I have two computers behind firewall with no port forwarding set up. These two computers need to communicate with each other by using only outbound connections.
I'm looking for a proxy tool that would be launched on the server and work in following way:
- Bob periodically checks with the server if Alice wants to talk.
- Alice sends request to the server that she wants to talk with Bob.
- Bob checks with the server and gets information that Alice wants to talk - he accepts.
- Proxy server opens inbound ports 8100 and 8200 for incoming TCP connections.
- Alice connects to port 8100 and waits for Bob to join her.
- Bob connects to port 8200.
- HELO packets are sent to Alice and Bob indicating that the connection has been established by both parties.
- The connection then is changed into duplex forwarding mode where Alice can send packets to port 8100 and they will be forwarded from port 8200 to Bob.
- Bob can also send packets to port 8200 and they will be forwarded from port 8100 to Alice.
- Bob disconnects and connection for Alice is dropped as well.
I wanted to ask if there is such proxy protocol already available. Before writing my own implementation I decided to ask here about any available solutions (preferably for Linux).
The idea is just a simple packet forwarder that is able to join two inbound connections together. I'd appreciate if anyone could share the knowledge of any similar open-source projects.