mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 09:29:02 +08:00
parent
0b966ab1da
commit
d2b29999ff
@ -66,10 +66,14 @@ inputs:
|
||||
{
|
||||
servers =
|
||||
[
|
||||
{ address = "223.5.5.5"; domains = [ "geosite:geolocation-cn" ]; port = 53; tag = "dns-direct"; }
|
||||
{ address = "8.8.8.8"; domains = [ "geosite:geolocation-!cn" ]; port = 53; tag = "dns-proxy"; }
|
||||
{ address = "223.5.5.5"; expectIPs = [ "geoip:cn" ]; tag = "dns-direct"; }
|
||||
{ address = "8.8.8.8"; tag = "dns-proxy"; }
|
||||
{ address = "223.5.5.5"; domains = [ "geosite:geolocation-cn" ]; port = 53; }
|
||||
{
|
||||
address = "8.8.8.8";
|
||||
domains = [ "geosite:geolocation-!cn" "domain:worldcat.org" "domain:mstdn.one" ];
|
||||
port = 53;
|
||||
}
|
||||
{ address = "223.5.5.5"; expectIPs = [ "geoip:cn" ]; }
|
||||
{ address = "8.8.8.8"; }
|
||||
];
|
||||
disableCache = true;
|
||||
queryStrategy = "UseIPv4";
|
||||
@ -152,8 +156,8 @@ inputs:
|
||||
[
|
||||
{ inboundTag = [ "dns-in" ]; outboundTag = "dns-out"; }
|
||||
{ inboundTag = [ "xmu-in" ]; outboundTag = "xmu-out"; }
|
||||
{ inboundTag = [ "dns-direct" "direct-in" ]; outboundTag = "direct"; }
|
||||
{ inboundTag = [ "dns-proxy" "proxy-in" "proxy-socks-in" ]; outboundTag = "proxy-vless"; }
|
||||
{ inboundTag = [ "direct-in" ]; outboundTag = "direct"; }
|
||||
{ inboundTag = [ "proxy-in" "proxy-socks-in" ]; outboundTag = "proxy-vless"; }
|
||||
{
|
||||
inboundTag = [ "common-in" ];
|
||||
domain = [ "geosite:geolocation-cn" ];
|
||||
@ -233,6 +237,7 @@ inputs:
|
||||
${ipset} create noproxy_src_net hash:net
|
||||
|
||||
${ipset} create proxy_net hash:net
|
||||
${ipset} add proxy_net 8.8.8.8
|
||||
|
||||
${iptables} -t mangle -N v2ray -w
|
||||
${iptables} -t mangle -A PREROUTING -j v2ray -w
|
||||
|
Loading…
Reference in New Issue
Block a user