Skip to content

Port Forwarding

Accessing Intranet HTTP Services with GOST

Original post: https://groups.google.com/g/go-gost/c/ouzBXF0Fqk8.

GOST 2.1 added remote port forwarding, which maps an intranet port to a specified external port. However, TCP remote port forwarding has a limitation: each time a connection is made to the external mapped port, the listening port closes and waits for the intranet gost to re-establish the connection and reopen it.

This limits its use to single-connection services like SSH, while multi-connection services like HTTP are not feasible.

GOST 2.2 added HTTP/2 support. Since HTTP/2 supports multiplexing β€” especially for HTTP β€” a single connection can transport multiple request/response pairs. This allows us to use HTTP/2 to access intranet HTTP services from the external network.