|
本帖最后由 safehorse 于 2020-1-12 21:31 编辑
最近有个角落缺个上外网的, 弄了下NEWIFI-D2的OP, 在移动线路下用的,目前还算稳定
DHCP 设置
--------------------------
1. DNS 转发: 127.0.0.1#5353 (5353为Chin.aDNS 端口)
2. 忽略解析文件: 打勾
dnscr.ypt-proxy设置
--------------------------
config dnscrypt-proxy ns1
option address '127.0.0.1'
option port '5354'
option resolver 'cisco-familyshield'
option syslog '0'
Chin.DNS设置
--------------------------
打开运行着就好, 端口5353
上游服务器: 本地移动的DNS,127.0.0.1#5300 (5300为pdnsd端口)
pdnsd配置
--------------------------
global {
perm_cache=4096;
cache_dir="/var/pdnsd";
# pid_file = /var/run/pdnsd.pid;
run_as="nobody";
server_ip = 127.0.0.1;
server_port = 5300;
status_ctl = on;
# paranoid=on;
query_method=tcp_only;
min_ttl=1d; # Retain cached entries at least 15 minutes.
max_ttl=1w; # One week.
timeout=10; # Global timeout option (10 seconds).
neg_domain_pol=on;
# udpbufsize=1024;
# udpbufsize=1024; # Upper limit on the size of UDP messages.
}
server {
label = "mobile";
ip = 211.140.188.188,114.114.114.114,208.67.222.222;
timeout = 6;
proxy_only = on;
uptest = none; # Test if the network interface is active.
# root_server = on;
}
server {
label = "dnscrypt-proxy";
ip = 127.0.0.1;
port = 5354; # DNSCR.YPT-PROXY端口
# proxy_only = on;
timeout = 6;
uptest = none; # Test if the network interface is active.
interface = eth0; # The name of the interface to check.
interval = 10m; # Check every 10 minutes.
purge_cache = off; # Keep stale cache entries in case the ISP's
# DNS servers go offline.
edns_query = yes;
}
S.S配置
--------------------------
平时可以关掉, 要用的时候设置成启动延时5秒, 开主服务器+UDP中继服务器两个就好
|
|