Replies: 3 comments 3 replies
-
第一个是存储 ipv4 地址的集合,第二个是存储 ipv6 地址的集合。其实和 --ipset-name4/6 一样,只是合并为一个选项。 所以,不支持你描述的这种操作(如指定两个 ipv4 地址集合)。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
刚测了下这个功能,我向 chinadns-ng 请求了两次 google.com, 发现日志出现了两次 Fri Aug 11 23:55:05 2023 daemon.info chinadns-ng[23463]: 2023-08-11 15:55:05 I [main.c:155 handle_local_packet] query [google.com] from 192.168.1.100#55753 (2)
Fri Aug 11 23:55:05 2023 daemon.info chinadns-ng[23463]: 2023-08-11 15:55:05 I [main.c:203 handle_local_packet] forward [google.com] to 8.8.8.8 (trustdns)
Fri Aug 11 23:55:05 2023 daemon.info chinadns-ng[23463]: 2023-08-11 15:55:05 I [main.c:203 handle_local_packet] forward [google.com] to 8.8.4.4 (trustdns)
Fri Aug 11 23:55:06 2023 daemon.info chinadns-ng[23463]: 2023-08-11 15:55:06 I [main.c:342 handle_remote_packet] reply [google.com] from 8.8.4.4 (2), result: accept
Fri Aug 11 23:55:06 2023 daemon.info chinadns-ng[23463]: 2023-08-11 15:55:06 I [main.c:344 handle_remote_packet] add the answer ip of name-tag:gfw [google.com] to ipset
Fri Aug 11 23:55:06 2023 daemon.info chinadns-ng[23463]: 2023-08-11 15:55:06 I [main.c:313 handle_remote_packet] reply [google.com] from 8.8.8.8 (2), result: ignore
Fri Aug 11 23:55:06 2023 daemon.info chinadns-ng[23463]: 2023-08-11 15:55:06 I [main.c:313 handle_remote_packet] reply [google.com] from 8.8.4.4 (2), result: ignore
Fri Aug 11 23:55:06 2023 daemon.info chinadns-ng[23463]: 2023-08-11 15:55:06 I [main.c:313 handle_remote_packet] reply [google.com] from 8.8.8.8 (2), result: ignore
Fri Aug 11 23:55:06 2023 daemon.info chinadns-ng[23464]: 2023-08-11 15:55:06 I [main.c:155 handle_local_packet] query [google.com] from 192.168.1.100#55754 (4)
Fri Aug 11 23:55:06 2023 daemon.info chinadns-ng[23464]: 2023-08-11 15:55:06 I [main.c:203 handle_local_packet] forward [google.com] to 8.8.8.8 (trustdns)
Fri Aug 11 23:55:06 2023 daemon.info chinadns-ng[23464]: 2023-08-11 15:55:06 I [main.c:203 handle_local_packet] forward [google.com] to 8.8.4.4 (trustdns)
Fri Aug 11 23:55:06 2023 daemon.info chinadns-ng[23464]: 2023-08-11 15:55:06 I [main.c:342 handle_remote_packet] reply [google.com] from 8.8.8.8 (4), result: accept
Fri Aug 11 23:55:06 2023 daemon.info chinadns-ng[23464]: 2023-08-11 15:55:06 I [main.c:344 handle_remote_packet] add the answer ip of name-tag:gfw [google.com] to ipset
Fri Aug 11 23:55:06 2023 daemon.info chinadns-ng[23464]: 2023-08-11 15:55:06 I [main.c:313 handle_remote_packet] reply [google.com] from 8.8.4.4 (4), result: ignore
Fri Aug 11 23:55:06 2023 daemon.info chinadns-ng[23464]: 2023-08-11 15:55:06 I [main.c:313 handle_remote_packet] reply [google.com] from 8.8.8.8 (4), result: ignore
Fri Aug 11 23:55:06 2023 daemon.info chinadns-ng[23464]: 2023-08-11 15:55:06 I [main.c:313 handle_remote_packet] reply [google.com] from 8.8.4.4 (4), result: ignore |
Beta Was this translation helpful? Give feedback.
1 reply
-
还有就是如果在 chinadns-ng 运行时,销毁这两个选项所指定的 ipset,是否会有影响? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
新版本发现新增了这两个选项,请问它们支持多个 ip 集合吗?
例如
--add-tagchn-ip ipset1,ipset2
Beta Was this translation helpful? Give feedback.
All reactions