woodlyer / gostExample

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

Help with Tunneling #1

Open SmileDs opened 1 year ago

SmileDs commented 1 year ago

Hello, I hope you're doing okay, Thank you for these Examples, I have a question regarding the tunnel between two servers:

For Example, if we have Two Servers: 1- Server A Domestic VPS 2- Server B Foreign VPS ( Have V2ray Installed )

How can we configure a tunnel between these two servers so we can bypass the interanet situation and have access to free net, Thank you very much

woodlyer commented 1 year ago

v2ray support many protocol. such as SS. You can use SS+KCP or SS+SSL in this condition. SS is not safe, but SS+kcp is very safe and efficiency.
SS+KCP is listed in document.
SS+SSL only need a little modification.

woodlyer commented 1 year ago

If you really want to use vless or vmess protocal. please use vless-tcp mode or vmess-tcp mode.

https://github.com/XTLS/Xray-examples/blob/main/VLESS-TCP/config_server.json

https://github.com/XTLS/Xray-examples/blob/main/VMess-TCP/config_server.json

# v2ray listen on v2ray_port
# kcp can be set to tls ,quic, ws. or other transport protocols 
./gost -L relay+kcp://:9000  
./gost -L=tcp://127.0.0.1:8388/v2ray_server:v2ray_port   -F relay+kcp://server_ip:9000   
SmileDs commented 1 year ago

v2ray support many protocol. such as SS. You can use SS+KCP or SS+SSL in this condition. SS is not safe, but SS+kcp is very safe and efficiency. SS+KCP is listed in document. SS+SSL only need a little modification.

Thank you Very Much for your guidance, one more question regarding filtering, if we use TCP relay+ws for our tunnel then create vless + grpc + tls (domain with SSL full strict and set on tls version 1.3) with sni and fallback to 8001 is it safe? or should we do more config in xray configurations to prevent the servers to be filtered by the wall?

SmileDs commented 1 year ago

If you really want to use vless or vmess protocal. please use vless-tcp mode or vmess-tcp mode.

https://github.com/XTLS/Xray-examples/blob/main/VLESS-TCP/config_server.json https://github.com/XTLS/Xray-examples/blob/main/VMess-TCP/config_server.json

# v2ray listen on v2ray_port
# kcp can be set to tls ,quic, ws. or other transport protocols 
./gost -L relay+kcp://:9000  
./gost -L=tcp://127.0.0.1:8388/v2ray_server:v2ray_port   -F relay+kcp://server_ip:9000   

this helps a lot I really do appreciate it, thank you. the reason I use Vless is I can create multiple connections with only one Port ( for example 443 ) in panel but for ss there is no option to add more clients by default , is there a way to confiq ss in v2ray so we can create multiple connections with one port for ss, so we can use relay+kcp for more security?

because there is a new bug that I found, when you create a vless with gost tunnel between foreign and domestic vps, most of the programs in PC, ios, and Android won't support it, only a program called napsternet would support this vless based on tunnel, and this connection wont work in any other programs, I still couldn't find a solution to it.

woodlyer commented 1 year ago

gost is just a tunnel. It will not change the data in tunnel.
you can try my example for vless+gost.
https://github.com/woodlyer/gostExample/tree/main/v2ray