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

Shadowsocks tcp_only and udp_only #215

Open
knano opened this issue Jan 5, 2021 · 2 comments
Open

Shadowsocks tcp_only and udp_only #215

knano opened this issue Jan 5, 2021 · 2 comments

Comments

@knano
Copy link

knano commented Jan 5, 2021

Currently shadowsocks works on both TCP and UDP by default. Is it possible to add tcp_only and udp_only option?
This may be helpful to separate the TCP and UDP forward chain:

SS-TCP Listener  --->  Forwarder1 (may only support tcp)  --->  Internet
SS-UDP Listener  --->  Forwarder2 (support udp)  --->  Internet

Thanks.

@nadoo
Copy link
Owner

nadoo commented Jan 11, 2021

Hi @knano , may I ask why don't you use 2 instances to achieve your goal?
glider -verbose -listen :8443 -forward ss://forwarder1(may only support tcp)
glider -verbose -listen :8444 -forward ss://forwarder2(support udp)

@knano
Copy link
Author

knano commented Jan 11, 2021

Hi @knano , may I ask why don't you use 2 instances to achieve your goal?
glider -verbose -listen :8443 -forward ss://forwarder1(may only support tcp)
glider -verbose -listen :8444 -forward ss://forwarder2(support udp)

Hi @nadoo , thanks for your relay. In fact, in my case, I use a "shadowsocks forwarding server" rather than a client. For example, on the server:

glider -listen ss-tcp-only://method:[email protected]:8388 -forward vmess://forwarder1(may not be so friendly to udp)
glider -listen ss-udp-only://method:[email protected]:8388 -forward ss://forwarder2(support udp, and even Full cone NAT)

Then, users can use any shadowsocks clients to connect to the server above, and enjoy both tcp and udp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants