Shadowrocket Rules
style-notepad
len:580
crease:64%
color:0
1. Install Cloudflare DoH Profile
Ensure you are using DNS over HTTPS (DoH).
Download cloudflare-doh.mobileconfig
, keep the
.mobileconfig extension, open to install, and follow the on screen
instructions. Works for both macOS and iOS.
2. Shadowrocket Rules
Open Shadowrocket, switch to the Config menu and scan the QR code.
Rules to use when in China
- Block Ads
- Proxy all traffic not targeted to GEOIP=CN
Rules to use when in Switzerland
- Block Ads
- Skip CDNs and most visited sites
- Skip sites triggering reCAPTCHA or proxy bans
- Proxy all other traffic
See also VPS Configuration .
VPS Configuration
style-sticky
len:503
crease:75%
color:3
VPS Setup
curl -L joyus.org/vps/init | bash -s ymattw
Change Hostname
new="newhostname"
sudo hostnamectl set-hostname $new
sudo sed -i "s/\b$(hostname -s)\b/$new/g" /etc/hosts
Change Timezone<
Auto-detect from server IP location:
tz=$(curl -s http://ip-api.com/line?fields=timezone)
sudo timedatectl set-timezone $tz
Or set manually (e.g., Zurich):
sudo timedatectl set-timezone Europe/Zurich
Xray Setup
curl -L joyus.org/vps/xray | bash -s xx.joyus.org
See also Shadowrocket Rules .