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

https://joyus.org/rules/cn.txt

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

https://joyus.org/rules/ch.txt

See also VPS Configuration .

Shadowrocket Rules

style-notepad len:580 crease:64% color:0
Aug 9, 2020

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

https://joyus.org/rules/cn.txt

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

https://joyus.org/rules/ch.txt

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 .

VPS Configuration

style-sticky len:503 crease:75% color:3
Aug 9, 2020

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 .