ishidawataru / sctp

SCTP library for the Go programming language
Apache License 2.0
132 stars 57 forks source link

SCTP based TCP relay to a proxy. #28

Open elico opened 6 years ago

elico commented 6 years ago

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:

elico commented 6 years ago

@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.