woodlyer / gostExample

Some examples for building proxy and tunnel with gost.
GNU General Public License v3.0
71 stars 9 forks source link

Multiple port forwarding #3

Open omid-j-d opened 1 year ago

omid-j-d commented 1 year ago

I wanted to do port forwarding from an X server to a Y and Z server. I create a service and run gost and I use this command, now how to add another server?

gost -L=tcp://:8080 -F forward+tls://1.1.1.1:8443

woodlyer commented 1 year ago

I didn't test .
You can try this. forward :1080 to server_Z:1080

X:       gost -L tls://:8443
Y:       gost -L kcp://:8443
Z:       gost -L tls://:8443

client:
         gost -L=tcp://:1080/:1080  -F=forward+tls://server_X:8443 -F=forward+kcp://server_Y:8443 -F=forward+tls://server_Z:8443

image from this page. https://github.com/ginuerzh/gost image