-
开启混杂模式
ip link set eth0 promisc on
-
docker创建网络,注意将网段改为你自己的
docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 -o parent=eth0 macnet
-
提前准备好正确的clash config , 必须打开redir在7892, 以及dns在53端口
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### 使用说明 ##### | |
# 1. 请填写 proxy-providers - subscribe - url 为订阅链接 | |
# 2. 下载 https://github.com/Loyalsoldier/clash-rules/archive/refs/heads/release.zip 并解压至 ./profiles/ruleset 文件夹下 | |
# 3. 若需要自动更新 ruleset, 请编辑 rule-providers-config - type 为 http | |
##### 参考链接 ##### | |
# 1. clash 样例配置文件 | |
# https://lancellc.gitbook.io/clash/clash-config-file/an-example-configuration-file | |
# 2. clash 规则集 | |
# https://github.com/Loyalsoldier/clash-rules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh /etc/rc.common | |
START=99 | |
STOP=15 | |
USE_PROCD=1 | |
start_service(){ | |
procd_open_instance clash | |
procd_set_param command /usr/bin/clash -d /etc/clash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.demo{ | |
/*flex布局(作用于容器)*/ | |
display: flex; | |
/*项目拉伸对齐,也就是所左边的高度为拉伸到和右边等高,默认是拉伸的*/ | |
/*align-items: stretch;*/ | |
} | |
.demo .left{ | |
/*左边固定宽度,必须设置其最小宽度和最大宽度*/ |