[新服务] clubsim卡通过v2ray免流+手机root热点
https://notion.1024.ee/newservice-v2ray-clubsim-data-free
#bm #network
https://notion.1024.ee/newservice-v2ray-clubsim-data-free
#bm #network
root@MiserlyBlushing-VM:~# cat /etc/network/interfaces
source /etc/network/interfaces.d/*
# Generated by SolusVM
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address xx
netmask 255.255.255.0
gateway xx
dns-nameservers 8.8.8.8 8.8.4.4
iface eth0 inet6 static
address xx
netmask 64
gateway xx
metric 100
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
address xx
netmask 64
endpoint xx
local 4xx
ttl 255
gateway xx
# 设置更高的metric值(数值越大优先级越低)
metric 200network:
version: 2
ethernets:
eth0:
match:
macaddress: "xx"
addresses:
- "xx/64"
nameservers:
addresses:
- 2606:4700:4700::1111
- 2001:4860:4860::8888
dhcp4: true
accept-ra: false
set-name: "eth0"
routes:
- to: "default"
via: "xx"
metric: 100
tunnels:
he-ipv6:
mode: sit
remote: xx
local: xx
addresses:
- "xx/64"
routes:
- to: default
via: "xx"
metric: 1000我的 Linux机器的 netplan 配置是这样:
[netplan 文件]
我还在想在此基础之上,添加一个 he.net tunnel broker, 官网给出的配置是这样的
[he tunnel broker 配置]
而且我想让这个 tunnel broker 的优先级别最低,一般不让他走这个ip。那我应该怎么配置?如果想加入 routed/64 的 ip,
那么可以在以上 netplan 的配置基础上,原 client ipv6 后面另起一行,加入 routed/64 的 ip 即可,去一个尾号大点的,比如aedf。client ipv6 不能删掉,必须留着。
这样这个界面在访问外部 ip 时,默认走这个 routed/64 ip
{
"inbounds": [
{
// 此处省略具体 inbound 配置
"tag": "inbound-xxx"
}
],
"outbounds": [
{
"protocol": "freedom",
"streamSettings": {
"sockopt": {
"tcpFastOpen": true,
"interface": "WARP"// 指定使用名为 WARP 的网卡
}
},
"settings": {
"domainStrategy": "AsIs"
},
"tag": "my-warp"
}
],
"routing": {
"rules": [
{// 将 inbound 和 outbound 通过路由绑定:inbound-xxx -> my-warp
"inboundTag": [
"inbound-xxx"
],
"network": "tcp,udp",
"outboundTag": "my-warp",
"type": "field"
}
]
}
}docker pull docker.1ms.run/whyyour/qinglong:debian