zw963 / asuswrt-merlin-transparent-proxy

transparent proxy base on ss, v2ray, xray, ipset, iptables, chinadns on asuswrt merlin or side router.
MIT License
380 stars 80 forks source link

请教一下AC68U用户 #81

Closed erlijie closed 5 years ago

erlijie commented 5 years ago

不是自己的VPS, 运行的一键部署是ss+dnsmasq+dnscrypt还是ss+dnsmasq+dnscrypt2 公共服务器能否使用ss+dnsmasq+dnscrypt dnscrypt-proxy.sh应该如何编辑?

zw963 commented 5 years ago

有些必须的配置文件没有手动建立,你可以检查下脚本源码,我稍后可以搞的更友好一些,给个提示。

erlijie notifications@github.com 于 2019年4月24日周三 上午11:35写道:

ubuntu@ubuntu:~$ ./ss+dnsmasq+dnscrypt2 admin@192.168.50.1 bash: ./ss+dnsmasq+dnscrypt2: No such file or directory

按照wiki执行到这里卡住了 好像很多人都是这个问题

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zw963/asuswrt-merlin-transparent-proxy/issues/81, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEGCBXV7R6KZX6TLBAPA6DPR7IO7ANCNFSM4HIACB7A .

erlijie commented 5 years ago

感谢回复,确实需要一个详细点的教程。 优盘版ubuntu 按照wiki部署ss+dnsmasq+dnscrypt2,toggle_proxy.sh这个文件是存在的

ubuntu@ubuntu:~/asuswrt-merlin-transparent-proxy-master$ ./ss+dnsmasq+dnscrypt2 sh: /opt/etc/toggle_proxy.sh: not found

看之前的兄台部署成功,运行有问题。

zw963 commented 5 years ago

ubuntu@ubuntu:~/asuswrt-merlin-transparent-proxy-master$ ./ss+dnsmasq+dnscrypt2 sh: /opt/etc/toggle_proxy.sh: not found

第一次部署,有这个 not found 提示是没问题的,

我那个是在部署前, 先关闭已经部署好的代理, 没部署过, 当然没有脚本, 但是会继续安装的。

erlijie commented 5 years ago

pem的密钥还没学会怎么自动加载 目前运行脚本后提示


Remote deploy scripts is started !!


ben@ubentu:~/asuswrt-merlin-transparent-proxy-master$ 貌似是不成功的,shadowsocks.json使用的是某cloud的服务器。

erlijie commented 5 years ago

F6FA52CB@224FE40(04-24-17-32-17)

摸索了一下,但是并未生效。 如何进行下一步检查呢代理不成功的原因呢?

admin@RT-AC68U-11B0:/tmp/home/root# opkg --version opkg version d4ba162bb3f931bd5a019154270a548cf1f0853b (2019-01-31)

zw963 commented 5 years ago

类似问题提过很多次, 但是都自己解决了, 你有没有测试过 "sudo ln -sf /bin/bash /bin/sh" ?

erlijie commented 5 years ago

感谢回复,重新运行了一次,重启路由器,依然没有运行成功,请问下一步应该怎么检查呢?

ben@ubentu:~/asuswrt-merlin-transparent-proxy-master$ ssh 192.168.50.1

ASUSWRT-Merlin RT-AC68U 384.10-2 Wed Apr 3 22:29:02 UTC 2019 admin@RT-AC68U-11B0:/tmp/home/root# opkg --version opkg version d4ba162bb3f931bd5a019154270a548cf1f0853b (2019-01-31) admin@RT-AC68U-11B0:/tmp/home/root# exit Connection to 192.168.50.1 closed. ben@ubentu:~/asuswrt-merlin-transparent-proxy-master$ sudo ln -sf /bin/bash /bin/sh [sudo] ben 的密码: ben@ubentu:~/asuswrt-merlin-transparent-proxy-master$ ./ss+dnsmasq+dnscrypt2 admin@192.168.50.1 Disable proxy ... Clean iptables rule ... Clean iptables rule done. dnsmasq: syntax check OK. Proxy is disabled. dnscrypt-proxy.toml 100% 414 196.3KB/s 00:00
foreign_domains.conf 100% 34 13.8KB/s 00:00
apply_ipset_rule.sh 100% 2254 925.9KB/s 00:00
apply_iptables_rule.sh 100% 1295 590.1KB/s 00:00
clean_iptables_rule.sh 100% 604 287.2KB/s 00:00
toggle_proxy.sh 100% 816 721.7KB/s 00:00
switch_proxy.sh 100% 517 187.8KB/s 00:00
patch_router 100% 3719 78.5KB/s 00:00
restart_dnsmasq 100% 84 41.8KB/s 00:00
localips 100% 265 127.9KB/s 00:00
update_ip_whitelist 100% 870 390.8KB/s 00:00
update_dns_whitelist 100% 805 260.6KB/s 00:00
shadowsocks.json 100% 231 115.9KB/s 00:00


Remote deploy scripts is started !!


ben@ubentu:~/asuswrt-merlin-transparent-proxy-master$

zw963 commented 5 years ago
 ╰─ $ ls -sl /bin/sh
0 lrwxrwxrwx 1 root root 4 2019-03-31 01:35 /bin/sh -> bash*

宿主机输出结果和我一样吗? (不是路由器里面)

erlijie commented 5 years ago

ben@ubentu:~/asuswrt-merlin-transparent-proxy-master$ ls -sl /bin/sh 0 lrwxrwxrwx 1 root root 9 4月 25 09:32 /bin/sh -> /bin/bash ben@ubentu:~/asuswrt-merlin-transparent-proxy-master$

要不要reset路由器重新来过?

zw963 commented 5 years ago

你先翻一下老的 issue, 他们是怎么解决的, 告诉你的 Ubuntu 版本, 我也测试一下。

erlijie commented 5 years ago

这两天都在翻 我先reset,AC68U 固件版本:384.10_2 Ubuntu 18.04.2 LTS

erlijie commented 5 years ago

重置了路由器,重新一键部署, 之后修改jason,找了个确认能用的ss(不是ssr) 然后路由器端运行 /opt/etc/patch_router 代理启动了,不过有错误/S22shadowsocks: not found 好像只能上国内网站了 文件不存在

ASUSWRT-Merlin RT-AC68U 384.10-2 Wed Apr 3 22:29:02 UTC 2019 admin@RT-AC68U-11B0:/tmp/home/root# /opt/etc/patch_router ipset v6.32: Element cannot be added to the set: it's already added /opt/etc/patch_router: line 12: /opt/etc/init.d/S22shadowsocks: not found

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Apply ipset rule ... ipset v6.32: Set cannot be created: set with the same name already exists ipset v6.32: Set cannot be created: set with the same name already exists Name: CHINAIP Type: hash:ip Revision: 4 Header: family inet hashsize 1024 maxelem 65536 Size in memory: 260 References: 1 Number of entries: 5 Members: 81.4.123.217 151.101.40.133 151.101.76.133 202.12.29.205 103.125.250.150 ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added Apply ipset rule done. Enable proxy ... Clean iptables rule ... Clean iptables rule done. Apply iptables rule ... Apply iptables rule done.

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Proxy is enabled. admin@RT-AC68U-11B0:/tmp/home/root#

erlijie commented 5 years ago

目前只有这一个错误提示了:

admin@RT-AC68U-11B0:/tmp/mnt/sda/entware# vi /opt/etc/shadowsocks.json admin@RT-AC68U-11B0:/tmp/mnt/sda/entware# /opt/etc/patch_router

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Apply ipset rule ... ipset v6.32: Set cannot be created: set with the same name already exists ipset v6.32: Set cannot be created: set with the same name already exists Name: CHINAIP Type: hash:ip Revision: 4 Header: family inet hashsize 1024 maxelem 65536 Size in memory: 300 References: 0 Number of entries: 6 Members: 103.125.250.153 103.125.250.150 151.101.40.133 81.4.123.217 151.101.76.133 202.12.29.205 ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added Apply ipset rule done. Enable proxy ... Clean iptables rule ... Clean iptables rule done. Apply iptables rule ... Apply iptables rule done.

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Proxy is enabled. admin@RT-AC68U-11B0:/tmp/mnt/sda/entware#

erlijie commented 5 years ago

按照教程的话只能执行到这一部,请问接下来应该如何排查呢?

ben@ubentu:~/asuswrt-merlin-transparent-proxy-master$ ./ss+dnsmasq+dnscrypt2 admin@192.168.50.1 sh: /opt/etc/toggle_proxy.sh: not found dnscrypt-proxy.toml 100% 414 231.6KB/s 00:00
foreign_domains.conf 100% 34 37.3KB/s 00:00
apply_ipset_rule.sh 100% 2254 1.5MB/s 00:00
apply_iptables_rule.sh 100% 1295 1.1MB/s 00:00
clean_iptables_rule.sh 100% 604 592.5KB/s 00:00
toggle_proxy.sh 100% 816 774.0KB/s 00:00
switch_proxy.sh 100% 517 454.3KB/s 00:00
patch_router 100% 3719 2.1MB/s 00:00
restart_dnsmasq 100% 84 93.8KB/s 00:00
localips 100% 265 274.8KB/s 00:00
update_ip_whitelist 100% 870 787.4KB/s 00:00
update_dns_whitelist 100% 805 719.5KB/s 00:00
shadowsocks.json 100% 191 187.3KB/s 00:00
Installing bash (5.0-2) to root... Downloading http://bin.entware.net/armv7sf-k2.6/bash_5.0-2_armv7-2.6.ipk Installing libncursesw (6.1-3) to root... Downloading http://bin.entware.net/armv7sf-k2.6/libncursesw_6.1-3_armv7-2.6.ipk Installing libncurses (6.1-3) to root... Downloading http://bin.entware.net/armv7sf-k2.6/libncurses_6.1-3_armv7-2.6.ipk Installing libreadline (8.0-1a) to root... Downloading http://bin.entware.net/armv7sf-k2.6/libreadline_8.0-1a_armv7-2.6.ipk Installing perl (5.28.1-1) to root... Downloading http://bin.entware.net/armv7sf-k2.6/perl_5.28.1-1_armv7-2.6.ipk Configuring libncursesw. Configuring libncurses. Configuring libreadline. Configuring bash. Configuring perl.


Remote deploy scripts is started !!


erlijie commented 5 years ago

ASUSWRT-Merlin RT-AC68U 384.10-2 Wed Apr 3 22:29:02 UTC 2019 admin@RT-AC68U-11B0:/tmp/home/root# /opt/etc/patch_router ipset v6.32: The set with the given name does not exist /opt/etc/patch_router: line 12: /opt/etc/init.d/S22shadowsocks: not found Update DNS whitelist ... Disable proxy ... Clean iptables rule ... Clean iptables rule done. dnsmasq: syntax check OK. Proxy is disabled. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2092k 100 2092k 0 0 17259 0 0:02:04 0:02:04 --:--:-- 21365 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2367 100 2367 0 0 2167 0 0:00:01 0:00:01 --:--:-- 2187 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3492 100 3492 0 0 2738 0 0:00:01 0:00:01 --:--:-- 2760 Enable proxy ... Clean iptables rule ... Clean iptables rule done. Apply iptables rule ... iptables v1.4.15: Set CHINAIPS doesn't exist.

Try `iptables -h' or 'iptables --help' for more information. iptables v1.4.15: Set CHINAIP doesn't exist.

Try `iptables -h' or 'iptables --help' for more information. Apply iptables rule done.

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Proxy is enabled. Update DNS whitelist done. Update IP whitelist ... Disable proxy ... Clean iptables rule ... Clean iptables rule done. dnsmasq: syntax check OK. Proxy is disabled. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2873k 100 2873k 0 0 24427 0 0:02:00 0:02:00 --:--:-- 24655 Enable proxy ... Clean iptables rule ... Clean iptables rule done. Apply iptables rule ... iptables v1.4.15: Set CHINAIPS doesn't exist.

Try `iptables -h' or 'iptables --help' for more information. iptables v1.4.15: Set CHINAIP doesn't exist.

Try `iptables -h' or 'iptables --help' for more information. Apply iptables rule done.

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Proxy is enabled. Update IP whitelist done.

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Apply ipset rule ... Applying China ipset rule, it maybe take several minute to finish ... Name: CHINAIP Type: hash:ip Revision: 4 Header: family inet hashsize 1024 maxelem 65536 Size in memory: 60 References: 0 Number of entries: 0 Members: Apply ipset rule done. Enable proxy ... Clean iptables rule ... Clean iptables rule done. Apply iptables rule ... Apply iptables rule done.

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Proxy is enabled. admin@RT-AC68U-11B0:/tmp/home/root# /opt/etc/patch_router ipset v6.32: Element cannot be added to the set: it's already added /opt/etc/patch_router: line 12: /opt/etc/init.d/S22shadowsocks: not found

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Apply ipset rule ... ipset v6.32: Set cannot be created: set with the same name already exists ipset v6.32: Set cannot be created: set with the same name already exists Name: CHINAIP Type: hash:ip Revision: 4 Header: family inet hashsize 1024 maxelem 65536 Size in memory: 260 References: 1 Number of entries: 5 Members: 151.101.40.133 151.101.76.133 202.12.29.205 81.4.123.217 103.125.250.107 ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added Apply ipset rule done. Enable proxy ... Clean iptables rule ... Clean iptables rule done. Apply iptables rule ... Apply iptables rule done.

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Proxy is enabled. admin@RT-AC68U-11B0:/tmp/home/root#

zw963 commented 5 years ago

你测试一下这个分支的 ss+dnsmasq+dnscrypt2 脚本是否工作.

https://github.com/zw963/asuswrt-merlin-transparent-proxy/tree/test_for_ubuntu_18.04.2

erlijie commented 5 years ago

感谢答复, 重置了路由器和优盘,重新部署 弱问一下Remote deploy scripts is started !!开始以后如何查看远程执行情况? 或者需要等待多久?

ben@ubentu:~$ cd ~/asuswrt-merlin-transparent-proxy-test_for_ubuntu_18.04.2 ben@ubentu:~/asuswrt-merlin-transparent-proxy-test_for_ubuntu_18.04.2$ ./ss+dnsmasq+dnscrypt2 admin@192.168.50.1 sh: /opt/etc/toggle_proxy.sh: not found dnscrypt-proxy.toml 100% 414 386.1KB/s 00:00
foreign_domains.conf 100% 34 38.2KB/s 00:00
apply_ipset_rule.sh 100% 2254 1.6MB/s 00:00
apply_iptables_rule.sh 100% 1295 1.0MB/s 00:00
clean_iptables_rule.sh 100% 604 612.1KB/s 00:00
toggle_proxy.sh 100% 816 706.3KB/s 00:00
switch_proxy.sh 100% 517 323.8KB/s 00:00
patch_router 100% 3719 2.1MB/s 00:00
restart_dnsmasq 100% 84 84.5KB/s 00:00
localips 100% 265 251.0KB/s 00:00
update_ip_whitelist 100% 870 796.0KB/s 00:00
update_dns_whitelist 100% 805 746.1KB/s 00:00
shadowsocks.json 100% 191 198.1KB/s 00:00
Installing bash (5.0-2) to root... Downloading http://bin.entware.net/armv7sf-k2.6/bash_5.0-2_armv7-2.6.ipk Installing libncursesw (6.1-3) to root... Downloading http://bin.entware.net/armv7sf-k2.6/libncursesw_6.1-3_armv7-2.6.ipk Installing libncurses (6.1-3) to root... Downloading http://bin.entware.net/armv7sf-k2.6/libncurses_6.1-3_armv7-2.6.ipk Installing libreadline (8.0-1a) to root... Downloading http://bin.entware.net/armv7sf-k2.6/libreadline_8.0-1a_armv7-2.6.ipk Installing perl (5.28.1-1) to root... Downloading http://bin.entware.net/armv7sf-k2.6/perl_5.28.1-1_armv7-2.6.ipk Configuring libncursesw. Configuring libncurses. Configuring libreadline. Configuring bash. Configuring perl.


Remote deploy scripts is started !!


ben@ubentu:~/asuswrt-merlin-transparent-proxy-test_for_ubuntu_18.04.2$

十分钟后登入路由器, ben@ubentu:~$ ssh admin@192.168.50.1

ASUSWRT-Merlin RT-AC68U 384.10-2 Wed Apr 3 22:29:02 UTC 2019 admin@RT-AC68U-11B0:/tmp/home/root# /opt/etc/patch_router ipset v6.32: The set with the given name does not exist /opt/etc/patch_router: line 12: /opt/etc/init.d/S22shadowsocks: not found Update DNS whitelist ... Disable proxy ... Clean iptables rule ... Clean iptables rule done. dnsmasq: syntax check OK. Proxy is disabled. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2093k 100 2093k 0 0 32541 0 0:01:05 0:01:05 --:--:-- 52545 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2367 100 2367 0 0 1492 0 0:00:01 0:00:01 --:--:-- 1501 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3492 100 3492 0 0 4770 0 --:--:-- --:--:-- --:--:-- 4836 Enable proxy ... Clean iptables rule ... Clean iptables rule done. Apply iptables rule ... iptables v1.4.15: Set CHINAIPS doesn't exist.

Try `iptables -h' or 'iptables --help' for more information. iptables v1.4.15: Set CHINAIP doesn't exist.

Try `iptables -h' or 'iptables --help' for more information. Apply iptables rule done.

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Proxy is enabled. Update DNS whitelist done. Update IP whitelist ... Disable proxy ... Clean iptables rule ... Clean iptables rule done. dnsmasq: syntax check OK. Proxy is disabled. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2873k 100 2873k 0 0 388k 0 0:00:07 0:00:07 --:--:-- 561k Enable proxy ... Clean iptables rule ... Clean iptables rule done. Apply iptables rule ... iptables v1.4.15: Set CHINAIPS doesn't exist.

Try `iptables -h' or 'iptables --help' for more information. iptables v1.4.15: Set CHINAIP doesn't exist.

Try `iptables -h' or 'iptables --help' for more information. Apply iptables rule done.

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Proxy is enabled. Update IP whitelist done.

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Apply ipset rule ... Applying China ipset rule, it maybe take several minute to finish ... Name: CHINAIP Type: hash:ip Revision: 4 Header: family inet hashsize 1024 maxelem 65536 Size in memory: 60 References: 0 Number of entries: 0 Members: Apply ipset rule done. Enable proxy ... Clean iptables rule ... Clean iptables rule done. Apply iptables rule ... Apply iptables rule done.

dnsmasq: bad port at line 1 of /opt/etc/dnsmasq.d//foreign_domains.conf Proxy is enabled. admin@RT-AC68U-11B0:/tmp/home/root#

zw963 commented 5 years ago

新的脚本, 在 输出 Remote deploy scripts is started !! 之后, 还是立刻就退出了吗?

erlijie commented 5 years ago

Remote deploy scripts is started !!

ben@ubentu:~/asuswrt-merlin-transparent-proxy-test_for_ubuntu_18.04.2$

是的,然后手动启动proxy以后就只能访问国内地址了。

gitx6 commented 5 years ago

目录 /opt/etc/init.d/里面有什么文件?

zw963 commented 5 years ago

Remote deploy scripts is started !!

ben@ubentu:~/asuswrt-merlin-transparent-proxy-test_for_ubuntu_18.04.2$

是的,然后手动启动proxy以后就只能访问国内地址了。

好吧, 到底是什么问题呢? 以前真的有很多人报过这个错误, 然后就没有然后了. 我明天装个虚拟机是一下吧, 请详细描述一下你在 Ubuntu 下面的操作步骤. 从下载代码开始, 一直到 "Remote deploy scripts is started !!" 立即退出.

erlijie commented 5 years ago

优盘运行的ubuntu应该也可以

好的,全新安装ubuntu 路由器 两个jffs选项选择是,然后重启 格式化优盘为ex3 配置ubuntu访问路由器的key

然后操作就是我之前贴的,

1、安装entware-setup.sh,选择1,之后查看version 2、$: curl -L https://github.com/zw963/asuswrt-merlin-transparent-proxy/archive/master.zip > transparent-proxy.zip $: unzip transparent-proxy.zip

新增shadowsocks.json,编辑

3、运行$ ./ss+dnsmasq+dnscrypt2

上载完毕,出现 Remote deploy scripts is started !!

结束。

运行 /opt/etc/patch_router有报错,开启proxy以后仅可以访问国内网站。

erlijie commented 5 years ago

目录 /opt/etc/init.d/里面有什么文件?

rc.func rc.unslung

gitx6 commented 5 years ago

安装不成功。基本的shadowsocks客户端的启动文件都没有

erlijie commented 5 years ago

安装不成功。基本的shadowsocks客户端的启动文件都没有 对,一键部署,拷贝完就退出了, 不知道有没有手动部署的指南。

erlijie commented 5 years ago

Remote deploy scripts is started !! ben@ubentu:~/asuswrt-merlin-transparent-proxy-test_for_ubuntu_18.04.2$ 是的,然后手动启动proxy以后就只能访问国内地址了。

好吧, 到底是什么问题呢? 以前真的有很多人报过这个错误, 然后就没有然后了. 我明天装个虚拟机是一下吧, 请详细描述一下你在 Ubuntu 下面的操作步骤. 从下载代码开始, 一直到 "Remote deploy scripts is started !!" 立即退出.

没有mac,我需要换debian试一下吗?

zw963 commented 5 years ago

这个问题我在 Ubuntu 18.04 下面重现了, 不过没来得及解决, 虚拟机坏掉了.

可以首先尝试以下解决方案:

  1. 确保 /bin/sh 指向 /bin/bash

  2. 确保 apt update bash 到最新版, 我记得至少应该是 4.4 以上.

如果还未解决: 尝试修改脚本第一行, #!/bin/bash, 为 #!/bin/sh, 再试一下.

erlijie commented 5 years ago

“从Ubuntu 6.10开始,默认使用dash(theDebian Almquist Shell)而不是bash(the GNUBourne-Again Shell).” ——可能是这个原因? 我工作日试一下,或者换deepin试试。

erlijie commented 5 years ago

重新安装了open suse 部署成功,不过启动后路由器提示: 互联网状态:联机中断


Remote deploy scripts is started !!


zw963 commented 5 years ago

互联网状态:联机中断

这个 .... 可能是因为红鱼 DNS 失效了, 你试着参照 https://www.rubyfish.cn/config-dnscrypt-proxy 改一下路由器中的 opt/etc/dnscrypt-proxy.toml

zw963 commented 5 years ago

你重新部署一下, 或者手动改一下 config, 用 https://github.com/zw963/asuswrt-merlin-transparent-proxy/blob/master/router/opt/etc/dnscrypt-proxy.toml 替换你路由器里部署的, 我试过了, 可以工作, 如果想要较好的打开速度, 还是建议自己部署 dnscrypt-server.

erlijie commented 5 years ago

你重新部署一下, 或者手动改一下 config, 用 https://github.com/zw963/asuswrt-merlin-transparent-proxy/blob/master/router/opt/etc/dnscrypt-proxy.toml 替换你路由器里部署的, 我试过了, 可以工作, 如果想要较好的打开速度, 还是建议自己部署 dnscrypt-server.

重新部署,这次看起来正常了。 非常感谢您的解答,让windows用户也能成功部署了透明代理, 我继续学习一样,看看会不会有什么故障发生。

erlijie commented 5 years ago

好像不不太稳定,间歇性不能用。 http://www.ip111.cn/ 从国外测试 :是我的VPS地址 从谷歌测试 :失败

1.好像和这位兄台的问题一样 https://github.com/zw963/asuswrt-merlin-transparent-proxy/issues/79#issuecomment-485641613 现在没有vps,有没有其他可靠的公共服务可以使用呢?

2.部署 dnscrypt-server在国内的服务器上可以使用吗?

重新部署

runtime stack: runtime.throw(0x48defb, 0x16) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/panic.go:617 +0x5c fp=0xbe8e7a6c sp=0xbe8e7a58 pc=0x3debc runtime.sysMap(0xc00000, 0x400000, 0x869298) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mem_linux.go:170 +0xac fp=0xbe8e7a90 sp=0xbe8e7a6c pc=0x26eb0 runtime.(linearAlloc).alloc(0x85ce1c, 0x400000, 0x400000, 0x869298, 0x0) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/malloc.go:1299 +0x9c fp=0xbe8e7aa8 sp=0xbe8e7a90 pc=0x1c1e0 runtime.(mheap).sysAlloc(0x85cb48, 0x2000, 0x11f74, 0x362fc) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/malloc.go:539 +0x54 fp=0xbe8e7b04 sp=0xbe8e7aa8 pc=0x1a2f4 runtime.(mheap).grow(0x85cb48, 0x1, 0x0) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mheap.go:1232 +0x2c fp=0xbe8e7b34 sp=0xbe8e7b04 pc=0x36804 runtime.(mheap).allocSpanLocked(0x85cb48, 0x1, 0x8692a8, 0x0) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mheap.go:1150 +0x42c fp=0xbe8e7b50 sp=0xbe8e7b34 pc=0x36704 runtime.(mheap).alloc_m(0x85cb48, 0x1, 0x1e, 0x0) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mheap.go:977 +0xd0 fp=0xbe8e7b78 sp=0xbe8e7b50 pc=0x35c38 runtime.(mheap).alloc.func1() /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mheap.go:1048 +0x3c fp=0xbe8e7b90 sp=0xbe8e7b78 pc=0x68a24 runtime.(mheap).alloc(0x85cb48, 0x1, 0x1001e, 0x0) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mheap.go:1047 +0x60 fp=0xbe8e7bb4 sp=0xbe8e7b90 pc=0x35fe4 runtime.(mcentral).grow(0x85d5c0, 0x0) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mcentral.go:256 +0x9c fp=0xbe8e7be0 sp=0xbe8e7bb4 pc=0x26ae8 runtime.(mcentral).cacheSpan(0x85d5c0, 0x1) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mcentral.go:106 +0x370 fp=0xbe8e7c14 sp=0xbe8e7be0 pc=0x26568 runtime.(mcache).refill(0x400d9004, 0x1e) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mcache.go:135 +0x94 fp=0xbe8e7c28 sp=0xbe8e7c14 pc=0x25f78 runtime.(*mcache).nextFree(0x400d9004, 0x1e, 0x856fec, 0x857b18, 0x400dd008) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/malloc.go:786 +0x7c fp=0xbe8e7c48 sp=0xbe8e7c28 pc=0x1ab24 runtime.mallocgc(0xe0, 0x47e168, 0x41001, 0x857790) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/malloc.go:939 +0x790 fp=0xbe8e7cb0 sp=0xbe8e7c48 pc=0x1b46c runtime.newobject(0x47e168, 0x12db3aee) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/malloc.go:1068 +0x2c fp=0xbe8e7cc4 sp=0xbe8e7cb0 pc=0x1b860 runtime.malg(0x8000, 0x3f) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/proc.go:3220 +0x1c fp=0xbe8e7ce0 sp=0xbe8e7cc4 pc=0x47214 runtime.mpreinit(...) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/os_linux.go:311 runtime.mcommoninit(0x857b18) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/proc.go:618 +0x108 fp=0xbe8e7cf8 sp=0xbe8e7ce0 pc=0x411b8 runtime.schedinit() /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/proc.go:540 +0x60 fp=0xbe8e7d20 sp=0xbe8e7cf8 pc=0x40c10 runtime.rt0_go(0xbe8e7e5e, 0xbe8e7e6d, 0xbe8e7e74, 0x0, 0xbe8e7e91, 0xbe8e7e9c, 0xbe8e7ebe, 0xbe8e7ec6, 0xbe8e7ed1, 0xbe8e7ee7, ...) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/asm_arm.s:163 +0x7c fp=0xbe8e7d60 sp=0xbe8e7d20 pc=0x6a830 tnt@linux-0tdx:~/asuswrt-merlin-transparent-proxy-master>

zw963 commented 5 years ago

一定要用自己的 dnscrypt-proxy2 服务器,我最近刚刚更新了 WiKi, 并且提供了一键部署脚本。

erlijie commented 5 years ago

一定要用自己的 dnscrypt-proxy2 服务器,我最近刚刚更新了 WiKi, 并且提供了一键部署脚本。

部署 dnscrypt-server在国内的独立ip服务器上可以使用吗?我试了下自己的ubuntu server 12.04 没有成功,准备换个系统。

zw963 commented 5 years ago

当然要可以访问外网。

erlijie commented 5 years ago

无奈只有国内的服务器,试了几个公共地址,间歇性呢用吧,多谢解答。

cisco

Remove your DNS blind spot

Warning: modifies your queries to include a copy of your network address when forwarding them to a selection of companies and organizations.

sdns://AQAAAAAAAAAADjIwOC42Ny4yMjAuMjIwILc1EUAgbyJdPivYItf9aR6hwzzI1maNDL4Ev6vKQ_t5GzIuZG5zY3J5cHQtY2VydC5vcGVuZG5zLmNvbQ

cisco-familyshield

Block websites not suitable for children

Warning: modifies your queries to include a copy of your network address when forwarding them to a selection of companies and organizations.

sdns://AQAAAAAAAAAADjIwOC42Ny4yMjAuMTIzILc1EUAgbyJdPivYItf9aR6hwzzI1maNDL4Ev6vKQ_t5GzIuZG5zY3J5cHQtY2VydC5vcGVuZG5zLmNvbQ

cisco-ipv6

Cisco OpenDNS IPv6 sandbox

Warning: modifies your queries to include a copy of your network address when forwarding them to a selection of companies and organizations.

sdns://AQAAAAAAAAAAD1syNjIwOjA6Y2NjOjoyXSC3NRFAIG8iXT4r2CLX_WkeocM8yNZmjQy-BL-rykP7eRsyLmRuc2NyeXB0LWNlcnQub3BlbmRucy5jb20

https://github.com/DNSCrypt/dnscrypt-resolvers/blob/master/v2/public-resolvers.md

zw963 commented 5 years ago

好吧, 那么你的 ss 帐号哪里来的? 不需要自己搭建服务器? 跟别人买的?

erlijie commented 5 years ago

好吧, 那么你的 ss 帐号哪里来的? 不需要自己搭建服务器? 跟别人买的?

搬瓦工太容易被封,收费机场节点更多。不过重新部署的时候还是有内存不足的提示。 重启路由访问ip111.cn代理正常

login as: admin admin@192.168.50.1's password:

ASUSWRT-Merlin RT-AC68U 384.10-2 Wed Apr 3 22:29:02 UTC 2019 admin@RT-AC68U-11B0:/tmp/home/root# /opt/etc/patch_router ipset v6.32: Element cannot be added to the set: it's already added Shutting down ss-redir... done. Starting ss-redir... done.

dnsmasq: could not get memory Apply ipset rule ... ipset v6.32: Set cannot be created: set with the same name already exists ipset v6.32: Set cannot be created: set with the same name already exists Name: CHINAIP Type: hash:ip Revision: 4 Header: family inet hashsize 1024 maxelem 65536 Size in memory: 260 References: 1 Number of entries: 5 Members: 61.216.38.199 202.12.29.205 151.101.76.133 151.101.40.133 81.4.123.217 ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added ipset v6.32: Element cannot be added to the set: it's already added Apply ipset rule done. Enable proxy ... Clean iptables rule ... Clean iptables rule done. Apply iptables rule ... Apply iptables rule done. dnsmasq: syntax check OK.

dnsmasq: cannot fork into background: Cannot allocate memory Proxy is enabled. Use dnscrypt-proxy2 red fish source. Checking config file. fatal error: runtime: out of memory

runtime stack: runtime.throw(0x48defb, 0x16) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/panic.go:617 +0x5c fp=0xbece29dc sp=0xbece29c8 pc=0x3debc runtime.sysMap(0xc00000, 0x400000, 0x869298) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mem_linux.go:170 +0xac fp=0xbece2a00 sp=0xbece29dc pc=0x26eb0 runtime.(linearAlloc).alloc(0x85ce1c, 0x400000, 0x400000, 0x869298, 0x0) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/malloc.go:1299 +0x9c fp=0xbece2a18 sp=0xbece2a00 pc=0x1c1e0 runtime.(mheap).sysAlloc(0x85cb48, 0x2000, 0x11f74, 0x362fc) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/malloc.go:539 +0x54 fp=0xbece2a74 sp=0xbece2a18 pc=0x1a2f4 runtime.(mheap).grow(0x85cb48, 0x1, 0x0) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mheap.go:1232 +0x2c fp=0xbece2aa4 sp=0xbece2a74 pc=0x36804 runtime.(mheap).allocSpanLocked(0x85cb48, 0x1, 0x8692a8, 0x0) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mheap.go:1150 +0x42c fp=0xbece2ac0 sp=0xbece2aa4 pc=0x36704 runtime.(mheap).alloc_m(0x85cb48, 0x1, 0x1e, 0x0) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mheap.go:977 +0xd0 fp=0xbece2ae8 sp=0xbece2ac0 pc=0x35c38 runtime.(mheap).alloc.func1() /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mheap.go:1048 +0x3c fp=0xbece2b00 sp=0xbece2ae8 pc=0x68a24 runtime.(mheap).alloc(0x85cb48, 0x1, 0x1001e, 0x0) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mheap.go:1047 +0x60 fp=0xbece2b24 sp=0xbece2b00 pc=0x35fe4 runtime.(mcentral).grow(0x85d5c0, 0x0) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mcentral.go:256 +0x9c fp=0xbece2b50 sp=0xbece2b24 pc=0x26ae8 runtime.(mcentral).cacheSpan(0x85d5c0, 0x1) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mcentral.go:106 +0x370 fp=0xbece2b84 sp=0xbece2b50 pc=0x26568 runtime.(mcache).refill(0x400fd004, 0x1e) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/mcache.go:135 +0x94 fp=0xbece2b98 sp=0xbece2b84 pc=0x25f78 runtime.(*mcache).nextFree(0x400fd004, 0x1e, 0x856fec, 0x857b18, 0x40101008) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/malloc.go:786 +0x7c fp=0xbece2bb8 sp=0xbece2b98 pc=0x1ab24 runtime.mallocgc(0xe0, 0x47e168, 0x41001, 0x857790) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/malloc.go:939 +0x790 fp=0xbece2c20 sp=0xbece2bb8 pc=0x1b46c runtime.newobject(0x47e168, 0x3b439a1c) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/malloc.go:1068 +0x2c fp=0xbece2c34 sp=0xbece2c20 pc=0x1b860 runtime.malg(0x8000, 0x99a) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/proc.go:3220 +0x1c fp=0xbece2c50 sp=0xbece2c34 pc=0x47214 runtime.mpreinit(...) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/os_linux.go:311 runtime.mcommoninit(0x857b18) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/proc.go:618 +0x108 fp=0xbece2c68 sp=0xbece2c50 pc=0x411b8 runtime.schedinit() /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/proc.go:540 +0x60 fp=0xbece2c90 sp=0xbece2c68 pc=0x40c10 runtime.rt0_go(0xbece2ddb, 0xbece2dea, 0xbece2df1, 0x0, 0xbece2e0e, 0xbece2e19, 0xbece2e3b, 0xbece2e43, 0xbece2e4e, 0xbece2e6b, ...) /media/ware4/Entware.2018.02/staging_dir/host/go/src/runtime/asm_arm.s:163 +0x7c fp=0xbece2cd0 sp=0xbece2c90 pc=0x6a830 admin@RT-AC68U-11B0:/tmp/home/root#

zw963 commented 5 years ago

既然已经解决, 这个先关了。