Control access to the internet for non-static apps on Linux.
Nosocks uses library preloading to limit access to the internet for apps that are dynamically linked to libc - or do not have libc statically linked.
- Download zip file from github to Archlinux.
- Unzip, cd to zipped directory, in the terminal run makepkg, and then pacman -U nosocks-*
- As root user edit app names in the /etc/nosocks/nosocks.conf. Use - instead of a space for app names with spaces. For example "python3 script.py" should be "python3-script.py".
- Close and restart apps to check internet access. nosocks does not apply to the root user
- For wine apps you need to add /usr/bin/wineserver, and the exe name separately
Export NOSOCKS_DEBUG=2 to see verbose messages
Export NOSOCKS_DEBUG_FILE=yourfile to log messages to a file
- 1-2020 Initial release
- 5-2020 Add wine exe support
- 5-2021 Fix broken readelf
- 2-2022 Fixes for python scripts