Shadowrocket Rules

style-notepad len:562 crease:27% color:0 rot:1

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 CN

  • Block Ads
  • Skip CN traffic
  • Proxy all other traffic

Rules to use when in CH

  • Block Ads
  • Skip CH, CDNs & top sites
  • Skip sites triggering reCAPTCHA or proxy bans
  • Proxy all other traffic

See also VPS Configuration .

Shadowrocket Rules

style-notepad len:562 crease:27% color:0 rot:1
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 CN

  • Block Ads
  • Skip CN traffic
  • Proxy all other traffic

Rules to use when in CH

  • Block Ads
  • Skip CH, CDNs & top sites
  • Skip sites triggering reCAPTCHA or proxy bans
  • Proxy all other traffic

See also VPS Configuration .

VPS Configuration

style-sticky len:505 crease:49% color:3 rot:0

VPS Setup (init )

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 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 (xray )

curl -L joyus.org/vps/xray | bash -s xx.joyus.org

See also Shadowrocket Rules .

VPS Configuration

style-sticky len:505 crease:49% color:3 rot:0
Aug 9, 2020

VPS Setup (init )

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 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 (xray )

curl -L joyus.org/vps/xray | bash -s xx.joyus.org

See also Shadowrocket Rules .