shadowsocks / shadowsocks-android

A shadowsocks client for Android
Other
35.19k stars 11.57k forks source link

如何禁用China DNS #991

Closed jiuxiaxixi closed 7 years ago

jiuxiaxixi commented 7 years ago

Please read FAQ in wiki then answer these questions before submitting your issue. Thanks!

Environment

Configuration

Put an x inside the [ ] that applies.

What did you do?

What did you expect to see?

What did you see instead?

因为代理的服务器无法访问国外网站 总是会弹出校园网认证

madeye commented 7 years ago

Enable UDP forwarding.

jiuxiaxixi commented 7 years ago

感谢 我试试

jiuxiaxixi commented 7 years ago

服务器端用ss-server 也Enable UDP forwarding.

jiuxiaxixi commented 7 years ago

加上之后无法联通服务器了 网络环境:校园网 未认证 Dr.com 可以直连校园内某台服务器 服务器可以访问外网

madeye commented 7 years ago

Double check the configs of your ss-server and your server's firewall rules. Make sure UDP forwarding is enabled and UDP traffic is allowed.

jiuxiaxixi commented 7 years ago

如果 配置为仅代理中国大陆地址 就可以上网 不开UDP转发

jiuxiaxixi commented 7 years ago

iOS shadowsrockt没有问题

madeye commented 7 years ago

Try this on your server:

iptables -t nat -A OUTPUT -d 8.8.8.8 -j DNAT --to-destination 114.114.114.114