Skip to content
View dsmmyq's full-sized avatar

Block or report dsmmyq

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
dsmmyq/README.md

docker-proxy

使用clash +docker 进行路由转发实现全局透明代理

食用方法

  1. 开启混杂模式

    ip link set eth0 promisc on

  2. docker创建网络,注意将网段改为你自己的

    docker network create -d macvlan --subnet=192.168.10.0/24 --gateway=192.168.0.1 -o parent=eth0 macnet

  3. 提前准备好正确的clash config , 必须打开redir在7892, 以及dns在53端口

  4. 运行容器

    sudo docker run --name clash_tp -d -v /your/path/clash_config:/clash_config --network macnet --ip 192.168.1.100 --privileged dsmmyq/clash-proxy

  5. 将手机/电脑等客户端 网关设置为容器ip,如192.168.1.100 ,dns也设置成这个

Popular repositories Loading

  1. dsmmyq dsmmyq Public

    Config files for my GitHub profile.

    Makefile

  2. docker-clash-ui docker-clash-ui Public

    Forked from rinex20/docker-clash-ui

    Shell

  3. Netflix_IP Netflix_IP Public

    Forked from QiuSimons/Netflix_IP

    Shell

  4. mosdns-docker mosdns-docker Public

    Forked from IrineSistiana/mosdns-docker

    https://github.com/IrineSistiana/mosdns

    Dockerfile

  5. Openwrt-Compile Openwrt-Compile Public

    Forked from hellohitworker/Openwrt-Compile

    C

  6. Profiles Profiles Public

    Forked from chuheme/Profiles

    🌐Dial-up Internet access