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

suggest modifying memlock unlimited #37

Open
wangliangliang2 opened this issue Nov 8, 2022 · 1 comment
Open

suggest modifying memlock unlimited #37

wangliangliang2 opened this issue Nov 8, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@wangliangliang2
Copy link

link

To modify this limit globally, you can modify the /etc/security/limits.conf file and add two lines:
* hard memlock unlimited
* soft memlock unlimited

origin method don't work on debian 11 and this work on debian 11
echo "DefaultLimitMEMLOCK=infinity" >> /etc/systemd/system.conf && reboot

another thing:
can shadow-tls relay client's udp data to backend which is shadowsocks?

@ihciah
Copy link
Owner

ihciah commented Nov 8, 2022

Thanks for report! It seems you modify the ulimit in another way.

No. ShadowTLS is only a tcp wrapper. And shadowsocks will relay udp traffic with tcp stream. So if you want to relay udp directly with ShadowTLS, it will not work. But if you carry udp packet with shadowsocks, and wrap shadowsocks with ShadowTLS, it works.

@ihciah ihciah added the documentation Improvements or additions to documentation label Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants