URenko / Accesser

🌏一个解决SNI RST导致维基百科、Pixiv等站点无法访问的工具 | A tool for solving SNI RST
GNU General Public License v3.0
872 stars 77 forks source link

如何在openwrt上使用 #136

Open sonrixmomo opened 1 year ago

sonrixmomo commented 1 year ago

能配合smartdns使用吗

URenko commented 1 year ago

没试过,看起来是可行的 python3 >= 3.10: https://openwrt.org/packages/pkgdata/python3 pyopenssl 有: https://openwrt.org/packages/pkgdata/python3-pyopenssl pip有: https://openwrt.org/packages/pkgdata/python3-pip 低版本 OpenWrt 可能需要编译 python>=3.10

用自己的DNS服务器改 config.toml 就行 https://github.com/URenko/Accesser/blob/89a24a6628d3bd1f862ade24df747fdaec97c0d8/accesser/config.toml#L47-L62

sonrixmomo commented 1 year ago

没试过,看起来是可行的 python3 >= 3.10: https://openwrt.org/packages/pkgdata/python3 pyopenssl 有: https://openwrt.org/packages/pkgdata/python3-pyopenssl pip有: https://openwrt.org/packages/pkgdata/python3-pip 低版本 OpenWrt 可能需要编译 python>=3.10

用自己的DNS服务器改 config.toml 就行

https://github.com/URenko/Accesser/blob/89a24a6628d3bd1f862ade24df747fdaec97c0d8/accesser/config.toml#L47-L62

那个证书怎么搞

URenko commented 1 year ago

那个证书怎么搞

通过 http://OpenWrt的地址:7654/CERT/root.crt 下载或者手动复制。

此外别忘了监听局域网的相关设置 https://github.com/URenko/Accesser/blob/89a24a6628d3bd1f862ade24df747fdaec97c0d8/accesser/config.toml#L32-L44

sonrixmomo commented 1 year ago

没试过,看起来是可行的 python3 >= 3.10: https://openwrt.org/packages/pkgdata/python3 pyopenssl 有: https://openwrt.org/packages/pkgdata/python3-pyopenssl pip有: https://openwrt.org/packages/pkgdata/python3-pip 低版本 OpenWrt 可能需要编译 python>=3.10

用自己的DNS服务器改 config.toml 就行

https://github.com/URenko/Accesser/blob/89a24a6628d3bd1f862ade24df747fdaec97c0d8/accesser/config.toml#L47-L62

看来不太行,装上了python但是装不上accesser

URenko commented 1 year ago

啥错误

sonrixmomo commented 1 year ago

啥错误

这日志 [ssh root@10.0.0.99] (2023-07-30_172940) 10.0.0.99.log

URenko commented 1 year ago

最好从包管理器安装 pyopenssl: https://openwrt.org/packages/pkgdata/python3-pyopenssl 否则就会像你日志里要本地编译

sonrixmomo commented 1 year ago

最好从包管理器安装 pyopenssl: https://openwrt.org/packages/pkgdata/python3-pyopenssl 否则就会像你日志里要本地编译

从包管理器上安装了依赖,但是启动失败了 [ssh root@10.0.0.99] (2023-07-30_174404) 10.0.0.99.log

URenko commented 1 year ago

那就装个 python3-pkg-resources 吧 (或者 python3-pkg-resources-src ?)

sonrixmomo commented 1 year ago

那就装个 python3-pkg-resources 吧 (或者 python3-pkg-resources-src ?)

装上了,但是无法运行 [ssh root@10.0.0.99] (2023-08-01_203257) 10.0.0.99.log

URenko commented 1 year ago

这个不好说 按理来讲包管理器安装的东西(指 python3-pyopenssl 及其依赖的 python3-cryptography)不该有这种问题 得大量调试或者有OpenWrt经验的人才好搞 但可以肯定的是问题不在于accesser

sonrixmomo commented 1 year ago

这个不好说 按理来讲包管理器安装的东西(指 python3-pyopenssl 及其依赖的 python3-cryptography)不该有这种问题 得大量调试或者有OpenWrt经验的人才好搞 但可以肯定的是问题不在于accesser

唉,难搞