Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCTP based TCP relay to a proxy. #28

Open
elico opened this issue Oct 20, 2018 · 1 comment
Open

SCTP based TCP relay to a proxy. #28

elico opened this issue Oct 20, 2018 · 1 comment

Comments

@elico
Copy link

elico commented Oct 20, 2018

I want to write a code to a proxy which utilizes a TCP to SCTP to SCTP to TCP connection.
The basic idea is that the client will want to use a HTTP proxy(which can only be used over http/tcp) but to overcome couple network limitations such as roaming and couple other scenarios use SCTP.
The proxy(Squid-Cache) has a public IP address and listens on TCP but has no support for SCTP.
Since this proxy supports the PROXY protocol(from haproxy) it can provide the TCP proxy with the clients connections details such as src IP+port and dst IP+port.
Then the TCP proxy can apply ACL's that will take into account the src and destination IP+port.
So two SCTP proxies:

  • listens on TCP ip:port and always connects and forwards connections to a specific SCTP ip:port
  • listens on SCTP ip:port and forwards connections to the proxy(local) TCP ip:port with or without PROXY protocol connection header.
@elico
Copy link
Author

elico commented Oct 20, 2018

@ishidawataru I wrote two proxies with this library at:

Tested them to work well locally between two networks via FW.
I do not know if sctp works on VPS/compute instances at DigitalyOcean or another provides such as EC2 or Azure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant