This gist provides key guideline to make Clash tun handle Telegram's pure IP traffic.
- The IP list file
telegram.listis located in/etc/asn/ 7892isredir-portin Clash's config file- iptables module
iptables-mod-extrais required for the--match-setusage
- Prepare your Clash service with:
- Run
setup_firewallafter starting service - Run
reset_firewallafter stopping service
- Start Clash service with tun enabled