Open bhzhu203 opened 2 days ago
tun_name: utun
这里改成
tun_name: utun5
之类的,数字需要自己试一下,看哪个没被占用
tun_name: utun
这里改成
tun_name: utun5
之类的,数字需要自己试一下,看哪个没被占用
是因为utun5没用 我才改成utun的 都没用
19.23.212.0/16 这个表示法有错误。/16 表示子网掩码,意味着网络前缀长度为16位,即前两个八位组表示网络部分,后两个八位组表示主机部分。因此,正确的网络地址应该是 19.23.0.0/16,而不是 19.23.212.0/16。在 /16 网络中,最后两个八位组(即 212.0 部分)应该是主机地址的一部分,而不是网络地址的一部分。
发了个新版本,会自动处理这个问题
1.删除没用配置
rules:
- 'DOMAIN,audio-ssl.itunes.apple.com,DIRECT'
- 'DOMAIN,gspe1-ssl.ls.apple.com,REJECT'
- 'DOMAIN-SUFFIX,aaplimg.com,DIRECT'
- 'DOMAIN-SUFFIX,apple.co,DIRECT'
- 'DOMAIN-KEYWORD,bbcfmt,PROXY'
- 'DOMAIN-KEYWORD,uk-live,PROXY'
- 'DOMAIN-SUFFIX,snssdk.com,DIRECT'
- 'DOMAIN-SUFFIX,toutiao.com,PROBE'
# - 'IP-CIDR,19.23.212.0/16,PROXY'
# - 'IP-CIDR,19.23.21.0/16,PROBE'
- 'IP-CIDR,10.10.10.0/24,DIRECT'
- 'GEOIP,CN,DIRECT'
- 'MATCH,PROBE'
2.停止系统dns服务器 systemctl stop systemd-resolved
就可以使用了,不过还是有些报错,好像有些端口被占用了:
./seeker -c seeker.conf
Starting....thread 'async-std/runtime' panicked at ./home/bhzhu/source/seeker/hermesdns/src/dns/server.rs:177:70:
called `Result::unwrap()` on an `Err` value: Os { code: 99, kind: AddrNotAvailable, message: "Address not available" }
stack backtrace:
Started!
0: 0x7ffff75db52a - <unknown>
1: 0x7ffff722d4b3 - <unknown>
2: 0x7ffff75d3c43 - <unknown>
3: 0x7ffff75db382 - <unknown>
4: 0x7ffff75dc386 - <unknown>
5: 0x7ffff75dc1d0 - <unknown>
6: 0x7ffff75dc927 - <unknown>
7: 0x7ffff75dc7ca - <unknown>
8: 0x7ffff75db9d9 - <unknown>
9: 0x7ffff75dc46c - <unknown>
10: 0x7ffff710dbc0 - <unknown>
11: 0x7ffff710dfc6 - <unknown>
12: 0x7ffff74dd048 - <unknown>
13: 0x7ffff74bab76 - <unknown>
14: 0x7ffff7142931 - <unknown>
15: 0x7ffff713b1b7 - <unknown>
16: 0x7ffff713b635 - <unknown>
17: 0x7ffff75e076b - <unknown>
thread 'async-std/runtime' panicked at /home/bhzhu/source/seeker/hermesdns/src/dns/server.rs:177:70:
called `Result::unwrap()` on an `Err` value: Os { code: 99, kind: AddrNotAvailable, message: "Address not available" }
stack backtrace:
0: 0x7ffff75db52a - <unknown>
1: 0x7ffff722d4b3 - <unknown>
2: 0x7ffff75d3c43 - <unknown>
3: 0x7ffff75db382 - <unknown>
4: 0x7ffff75dc386 - <unknown>
5: 0x7ffff75dc1d0 - <unknown>
6: 0x7ffff75dc927 - <unknown>
7: 0x7ffff75dc7ca - <unknown>
8: 0x7ffff75db9d9 - <unknown>
9: 0x7ffff75dc46c - <unknown>
10: 0x7ffff710dbc0 - <unknown>
11: 0x7ffff710dfc6 - <unknown>
12: 0x7ffff74dd048 - <unknown>
13: 0x7ffff74bab76 - <unknown>
14: 0x7ffff7142931 - <unknown>
15: 0x7ffff713b1b7 - <unknown>
16: 0x7ffff713b635 - <unknown>
17: 0x7ffff75e076b - <unknown>
thread 'async-std/runtime' panicked at /home/bhzhu/source/seeker/hermesdns/src/dns/server.rs:177:70:
called `Result::unwrap()` on an `Err` value: Os { code: 98, kind: AddrInUse, message: "Address in use" }
stack backtrace:
0: 0x7ffff75db52a - <unknown>
1: 0x7ffff722d4b3 - <unknown>
2: 0x7ffff75d3c43 - <unknown>
3: 0x7ffff75db382 - <unknown>
4: 0x7ffff75dc386 - <unknown>
5: 0x7ffff75dc1d0 - <unknown>
6: 0x7ffff75dc927 - <unknown>
7: 0x7ffff75dc7ca - <unknown>
8: 0x7ffff75db9d9 - <unknown>
9: 0x7ffff75dc46c - <unknown>
10: 0x7ffff710dbc0 - <unknown>
11: 0x7ffff710dfc6 - <unknown>
12: 0x7ffff74dd048 - <unknown>
13: 0x7ffff74bab76 - <unknown>
14: 0x7ffff7142931 - <unknown>
15: 0x7ffff713b1b7 - <unknown>
16: 0x7ffff713b635 - <unknown>
17: 0x7ffff75e076b - <unknown>
^CStop server. Bye bye...
root [ /home/bhzhu/source/seeker/target/x86_64-unknown-linux-musl/release ]# ./seeker -c seeker.conf Starting....thread 'main' panicked at sysconfig/src/command.rs:12:9: ip route add 19.23.212.0/16 via 10.0.0.1 dev utun stdout: stderr: RTNETLINK answers: Invalid argument
stack backtrace: 0: 0x7ffff6feb55a -
1: 0x7ffff6c332d3 -
2: 0x7ffff6fe3c73 -
3: 0x7ffff6feb3b2 -
4: 0x7ffff6fec3b6 -
5: 0x7ffff6fec200 -
6: 0x7ffff6fec957 -
7: 0x7ffff6fec7fa -
8: 0x7ffff6feba09 -
9: 0x7ffff6fec49c -
10: 0x7ffff6b0bb50 -
11: 0x7ffff700d1dd -
12: 0x7ffff700f318 -
13: 0x7ffff70376e3 -
14: 0x7ffff6f7ae66 -
15: 0x7ffff6ebf003 -
16: 0x7ffff6f95b22 -
17: 0x7ffff6f026d3 -
18: 0x7ffff6f01a1d -
19: 0x7ffff6fdc387 -
20: 0x7ffff6fab49c -
系统没有产生 utun设备 所以执行 ip route失败
ip add 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 3c:06:a7:ce:64:cb brd ff:ff:ff:ff:ff:ff inet 10.10.10.167/24 brd 10.10.10.255 scope global noprefixroute dynamic enp1s0 valid_lft 27079sec preferred_lft 27079sec inet6 fe80::bfe4:a2e3:d528:af5/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 00:e0:70:d7:7c:ed brd ff:ff:ff:ff:ff:ff inet 192.168.1.84/24 brd 192.168.1.255 scope global noprefixroute dynamic eno1 valid_lft 243078sec preferred_lft 243078sec inet6 240e:391:c89:a30::c/128 scope global noprefixroute dynamic valid_lft 2575878sec preferred_lft 588678sec inet6 240e:391:c89:a30:2f6e:eceb:a5e3:1a8c/64 scope global noprefixroute dynamic valid_lft 547sec preferred_lft 547sec inet6 fe80::79c0:96a6:e620:87cc/64 scope link noprefixroute valid_lft forever preferred_lft forever