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

multiple port forwarding syntax #9

Open
lostsoul6 opened this issue Jun 16, 2023 · 4 comments
Open

multiple port forwarding syntax #9

lostsoul6 opened this issue Jun 16, 2023 · 4 comments

Comments

@lostsoul6
Copy link

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
Copy link
Owner

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

@lostsoul6
Copy link
Author

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
Copy link
Owner

woodlyer commented Jun 16, 2023

# 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
Copy link
Owner

cmd updated

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

2 participants