Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gfwlist在哪里? #1

Open
nu1ee opened this issue Nov 20, 2016 · 2 comments
Open

gfwlist在哪里? #1

nu1ee opened this issue Nov 20, 2016 · 2 comments

Comments

@nu1ee
Copy link

nu1ee commented Nov 20, 2016

mkdir -p /var/etc/dnsmasq-go.d
###### Anti-pollution configuration ######
if [ -n "$vt_safe_dns" ]; then
	if [ "$vt_safe_dns_tcp" = 1 ]; then
		start_pdnsd "$vt_safe_dns"
		awk -vs="127.0.0.1#$PDNSD_LOCAL_PORT" '!/^$/&&!/^#/{printf("server=/%s/%s\n",$0,s)}' \
			/etc/gfwlist/$vt_gfwlist > /var/etc/dnsmasq-go.d/01-pollution.conf
	else
		awk -vs="$vt_safe_dns#$vt_safe_dns_port" '!/^$/&&!/^#/{printf("server=/%s/%s\n",$0,s)}' \
			/etc/gfwlist/$vt_gfwlist > /var/etc/dnsmasq-go.d/01-pollution.conf
	fi
else
	echo "WARNING: Not using secure DNS, DNS resolution might be polluted if you are in China."
fi

###### dnsmasq-to-ipset configuration ######
case "$vt_proxy_mode" in
	M|V)
		awk '!/^$/&&!/^#/{printf("ipset=/%s/'"$vt_gfwlist"'\n",$0)}' \
			/etc/gfwlist/$vt_gfwlist > /var/etc/dnsmasq-go.d/02-ipset.conf
		;;
esac

变量都见到有 但是列表在哪里
还有可否加入ip 控制

@sxx1314
Copy link
Owner

sxx1314 commented Dec 6, 2016

这是 另一个程序 ipsetlists 维护的gfwlist 你也可以直接转换之后放入目录 有空我再把那个小工具上传

@jack338c
Copy link

jack338c commented Jan 19, 2017

请问你说的"放入目录"具体是哪个目录?

我把ipsetlists和你的源码编译进固件后,启用TCP方式,全局可以,GFWLIST方式不行,不知道原因出在哪里
(下面的横线不是我加的)

root@lede:# /etc/init.d/ssr-redir.sh restart
uci: Entry not found
2017-01-19 07:18:54 INFO: protocol auth_sha1_v2
2017-01-19 07:18:54 INFO: protocol_param
2017-01-19 07:18:54 INFO: method rc4-md5
2017-01-19 07:18:54 INFO: obfs tls1.2_ticket_auth
2017-01-19 07:18:54 INFO: obfs_param
udhcpc: started, v1.25.1
udhcpc: sending discover
udhcpc: no lease, failing
WARNING: Attached dnsmasq rules will cause the service startup failure. Removed those configuratio
udhcpc: started, v1.25.1
udhcpc: sending discover
udhcpc: no lease, failing
root@lede:
# /etc/init.d/dnsmasq restart
udhcpc: started, v1.25.1
udhcpc: sending discover
udhcpc: no lease, failing
root@lede:~# /etc/init.d/pdnsd restart
Restarting proxy DNS server: pdnsd...
Stopping proxy DNS server: pdnsd .
Starting proxy DNS server: pdnsd .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants