Configurations and tooling for sing-box, the universal proxy platform.
This repository provides guides to help bypass Myanmar Internet Restrictions using sing-box configurations on both the client and server side.
-
rules/
Scripts for collecting and generating routing rules from OONI data.
For more details, see theroute-rulesbranch. -
api/
Client-side configuration generator exposed as an API. -
generator/
Server-side sing-box configuration generator.
The repository name nekohasekai comes from the author of Project S.
Please consider supporting the original project and its maintainers ❤️
This setup is designed with Docker in mind. Before getting started, ensure your system meets the following requirements:
- Docker with the Compose plugin installed
- TCP Brutal Multiplexing (for TCP-based proxies)
- BBR congestion control (recommended for TUIC)
- Swap memory (optional, but strongly recommended for low-RAM VPS)
wget -qO- https://get.docker.com | bash
sudo usermod -aG docker $USER # Let's just add your user to the docker group
newgrp docker # Apply the new group membership without logging out
docker pull ghcr.io/sagernet/sing-box:v1.12.14
⚠️ Not recommended in most cases, as Brutal mode can result in overly flat bandwidth behavior for TCP connections.
bash <(curl -fsSL https://tcp.hy2.sh/)BBR significantly improves performance for UDP-based protocols such as TUIC.
echo net.core.default_qdisc=fq | sudo tee -a /etc/sysctl.conf
echo net.ipv4.tcp_congestion_control=bbr | sudo tee -a /etc/sysctl.conf
sudo sysctl -pRecommended for low-memory servers to avoid out-of-memory (OOM) issues.
fallocate -l 1G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
echo 'vm.swappiness=10' | sudo tee -a /etc/sysctl.conf
echo 'vm.vfs_cache_pressure=50' | sudo tee -a /etc/sysctl.conf
sudo sysctl -pStart with the generator/ directory to generate and deploy server-side configurations.
There will be a lot of terms like ECH, TUIC, Brutal, etc.
If you are unfamiliar with these, please do research on each of them