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 syntax #9

Open lostsoul6 opened 1 year ago

lostsoul6 commented 1 year ago

Hello friends ,

I'm trying to use 1 domestic server and send traffic to 2 foreign servers . I have a problem with syntax

in domestic vps I have :

-L=tcp://:2087/:2096 -F relay+ws://domain1.com:2053 -F=relay+ws://domain2.com:8443

in foreign vps I have :

-L=relay+ws://:2053/:2087 -L=relay+ws://:8443/:2096

is this syntax correct ?

woodlyer commented 1 year ago

it's not right. -F chainA -F chainB means first to A , and then from A to B.

lostsoul6 commented 1 year ago

can you please help me with the correct syntax ?

what I want is to forward traffic on port 2087 of the domestic vps to port 2053 of the first foreign server ( domain1.com ) and forward the traffic on port 2096 of the domestic vps to port 8443 of the second foreign server ( domain2.com )

on the foreign VPS I have v2ray on ports 2087 and 2096 .

woodlyer commented 1 year ago
# server  domain1 and domain2
./gost -L relay+ws://:9000

#client
./gost  -L tcp://:2087/:2053 -F relay+ws://domain1:9000
./gost  -L tcp://:2096/:8443 -F relay+ws://domain2:9000
woodlyer commented 1 year ago

cmd updated