Coder Social home page Coder Social logo

johnnyp382 / clash_premium_config Goto Github PK

View Code? Open in Web Editor NEW

This project forked from picopock/clash_premium_config

0.0 0.0 0.0 3.77 MB

clash premium config for tun mode

Home Page: https://blog.picopock.com/2023/02/12/debian/debian/#toc-heading-19

HTML 100.00%

clash_premium_config's Introduction

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

clash_premium_config's People

Contributors

johnnyp382 avatar picopock avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.