Skip to content

picopock/clash_premium_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Clash Premium Config

Create Clash Config file

  • Directory Structure

    .
    β”œβ”€β”€ Country.mmdb
    β”œβ”€β”€ config.yaml
    β”œβ”€β”€ custom_rules
    β”‚   β”œβ”€β”€ direct.yaml
    β”‚   β”œβ”€β”€ proxy.yaml
    β”‚   └── reject.yaml
    β”œβ”€β”€ dashboard
    β”‚Β Β  β”œβ”€β”€ CNAME
    β”‚Β Β  β”œβ”€β”€ assets
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ index-5e90ca00.js
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ index-6d88662b.css
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ logo-b453e72f.png
    β”‚Β Β  β”‚Β Β  └── vendor-827b5617.js
    β”‚Β Β  β”œβ”€β”€ index.html
    β”‚Β Β  β”œβ”€β”€ manifest.webmanifest
    β”‚Β Β  β”œβ”€β”€ sw.js
    β”‚Β Β  └── workbox-e0782b83.js
    β”œβ”€β”€ online_rules
    β”‚   β”œβ”€β”€ apple.yaml
    β”‚   β”œβ”€β”€ applications.yaml
    β”‚   β”œβ”€β”€ cncidr.yaml
    β”‚   β”œβ”€β”€ direct.yaml
    β”‚   β”œβ”€β”€ gfw.yaml
    β”‚   β”œβ”€β”€ google.yaml
    β”‚   β”œβ”€β”€ greatfire.yaml
    β”‚   β”œβ”€β”€ icloud.yaml
    β”‚   β”œβ”€β”€ lancidr.yaml
    β”‚   β”œβ”€β”€ private.yaml
    β”‚   β”œβ”€β”€ proxy.yaml
    β”‚   β”œβ”€β”€ reject.yaml
    β”‚   β”œβ”€β”€ telegramcidr.yaml
    β”‚   └── tld-not-cn.yaml
    └── proxies
    
    • Note

      config.yaml and dashboard are requried。
      dashboard can download from here。
      Add your subscribe address to ./custom_rules/direct.yaml file.

  • config.yaml

Create tun device on host

ip tuntap add dev tun mod tun
  • Delete tun device

    ip tuntap del dev tun mod tun

Create clash container

docker run -d --net=macvlan --ip=10.0.0.8 --ip6=fc00:1::8 --mac-address=02:42:0a:00:00:08 --name=clash-premium --restart=always --hostname=clash --env TZ=Asia/Shanghai --cap-add=NET_ADMIN --device=/dev/net/tun:/dev/net/tun -v /volume1/docker/clash:/root/.config/clash dreamacro/clash-premium:latest

Packages

No packages published

Languages