[GH-ISSUE #56] mips_24k router? #49

Closed
opened 2026-02-26 12:33:49 +03:00 by kerem · 18 comments
Owner

Originally created by @ktechmidas on GitHub (Sep 19, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/56

Any idea how I can get this running as a plugin for shadowsocks on my router?

root@OpenWrt:/tmp# opkg print-architecture | awk '{print $2}'
all
noarch
mips_24kc

I've tried a few mips64 ones from the release page and just get a syntax error if I try to run them, so I'm guessing not those.

Originally created by @ktechmidas on GitHub (Sep 19, 2019). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/56 Any idea how I can get this running as a plugin for shadowsocks on my router? root@OpenWrt:/tmp# opkg print-architecture | awk '{print $2}' all noarch mips_24kc I've tried a few mips64 ones from the release page and just get a syntax error if I try to run them, so I'm guessing not those.
kerem closed this issue 2026-02-26 12:33:49 +03:00
Author
Owner

@malikshi commented on GitHub (Sep 21, 2019):

softloat

<!-- gh-comment-id:533771248 --> @malikshi commented on GitHub (Sep 21, 2019): softloat
Author
Owner

@ktechmidas commented on GitHub (Sep 21, 2019):

Hey, yeah I tried this already and it seems to just exit...

{ "server": "xxx", "server_port": 443, "password": "xxx", "method": "aes-256-gcm", "local_address": "0.0.0.0", "plugin": "ck-client", "plugin_opts": "UID=xxx;PublicKey=xxx;ServerName=www.bing.com;TicketTimeHint=3600;NumConn=100;MaskBrowser=chrome;loglevel=none", "timeout": 60, "reuse_port": true }

ck-client is in /usr/bin

I just get this:

`Sat Sep 21 14:48:36 2019 daemon.info ss-redir[9884]: initializing ciphers... aes-256-gcm
Sat Sep 21 14:48:36 2019 daemon.info ss-redir[9884]: listening at 0.0.0.0:1234
Sat Sep 21 14:48:36 2019 daemon.info ss-redir[9884]: tcp port reuse enabled
Sat Sep 21 14:48:36 2019 daemon.info ss-redir[9884]: UDP relay enabled
Sat Sep 21 14:48:36 2019 daemon.info ss-redir[9884]: udp port reuse enabled
Sat Sep 21 14:48:36 2019 daemon.info ss-redir[9884]: running from root user
Sat Sep 21 14:48:36 2019 daemon.err ss-redir[9884]: plugin service exit unexpectedly

<!-- gh-comment-id:533803964 --> @ktechmidas commented on GitHub (Sep 21, 2019): Hey, yeah I tried this already and it seems to just exit... `{ "server": "xxx", "server_port": 443, "password": "xxx", "method": "aes-256-gcm", "local_address": "0.0.0.0", "plugin": "ck-client", "plugin_opts": "UID=xxx;PublicKey=xxx;ServerName=www.bing.com;TicketTimeHint=3600;NumConn=100;MaskBrowser=chrome;loglevel=none", "timeout": 60, "reuse_port": true } ` ck-client is in /usr/bin I just get this: >`Sat Sep 21 14:48:36 2019 daemon.info ss-redir[9884]: initializing ciphers... aes-256-gcm >Sat Sep 21 14:48:36 2019 daemon.info ss-redir[9884]: listening at 0.0.0.0:1234 >Sat Sep 21 14:48:36 2019 daemon.info ss-redir[9884]: tcp port reuse enabled >Sat Sep 21 14:48:36 2019 daemon.info ss-redir[9884]: UDP relay enabled >Sat Sep 21 14:48:36 2019 daemon.info ss-redir[9884]: udp port reuse enabled >Sat Sep 21 14:48:36 2019 daemon.info ss-redir[9884]: running from root user >Sat Sep 21 14:48:36 2019 daemon.err ss-redir[9884]: plugin service exit unexpectedly
Author
Owner

@malikshi commented on GitHub (Sep 21, 2019):

If u wanna know the binary work for your router is easy, try run ck-client - h
The result would shown you menu

<!-- gh-comment-id:533804376 --> @malikshi commented on GitHub (Sep 21, 2019): If u wanna know the binary work for your router is easy, try run `ck-client - h` The result would shown you menu
Author
Owner

@ktechmidas commented on GitHub (Sep 21, 2019):

Doesn't seem to work, I downloaded the mipsle softfloat binary and put it in /usr/bin as suggested... but it has this issue

/usr/bin/ck-client: line 1: syntax error: unexpected "("

<!-- gh-comment-id:533805436 --> @ktechmidas commented on GitHub (Sep 21, 2019): Doesn't seem to work, I downloaded the mipsle softfloat binary and put it in /usr/bin as suggested... but it has this issue > /usr/bin/ck-client: line 1: syntax error: unexpected "("
Author
Owner

@malikshi commented on GitHub (Sep 21, 2019):

https://github.com/cbeuw/Cloak/releases/download/v2.0.2/ck-client-linux-mipsle_softfloat-2.0.2
This one sir.
I had some router with same architecture

<!-- gh-comment-id:533805521 --> @malikshi commented on GitHub (Sep 21, 2019): https://github.com/cbeuw/Cloak/releases/download/v2.0.2/ck-client-linux-mipsle_softfloat-2.0.2 This one sir. I had some router with same architecture
Author
Owner

@ktechmidas commented on GitHub (Sep 21, 2019):

Odd, I did this earlier... definitely got the right file - am I doing something wrong? Pasted the full output below

root@OpenWrt:/tmp# wget https://github.com/cbeuw/Cloak/releases/download/v2.0.2/
ck-client-linux-mipsle_softfloat-2.0.2
--2019-09-21 06:33:42-- https://github.com/cbeuw/Cloak/releases/download/v2.0.2 /ck-client-linux-mipsle_softfloat-2.0.2
Resolving github.com... 13.250.177.223
Connecting to github.com|13.250.177.223|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/158890 222/f31be780-be89-11e9-820d-534e710b56ee?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz- Credential=AKIAIWNJYAX4CSVEH53A%2F20190921%2Fus-east-1%2Fs3%2Faws4_request&X-Amz -Date=20190921T063344Z&X-Amz-Expires=300&X-Amz-Signature=530d435f5053c5f4fa0bddf 9e0d6806d56d071ae9c07b4702d331187b3ac809f&X-Amz-SignedHeaders=host&actor_id=0&re sponse-content-disposition=attachment%3B%20filename%3Dck-client-linux-mipsle_sof tfloat-2.0.2&response-content-type=application%2Foctet-stream [following]
--2019-09-21 06:33:46-- https://github-production-release-asset-2e65be.s3.amazo naws.com/158890222/f31be780-be89-11e9-820d-534e710b56ee?X-Amz-Algorithm=AWS4-HMA C-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190921%2Fus-east-1%2Fs3%2Faws 4_request&X-Amz-Date=20190921T063344Z&X-Amz-Expires=300&X-Amz-Signature=530d435f 5053c5f4fa0bddf9e0d6806d56d071ae9c07b4702d331187b3ac809f&X-Amz-SignedHeaders=hos t&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dck-client-l inux-mipsle_softfloat-2.0.2&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com... 52.216.239. 27
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com|52.216.239 .27|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4176147 (4.0M) [application/octet-stream]
Saving to: 'ck-client-linux-mipsle_softfloat-2.0.2'

ck-client-linux-mip 100%[===================>] 3.98M 15.2KB/s in 6m 37s

2019-09-21 06:40:25 (10.3 KB/s) - 'ck-client-linux-mipsle_softfloat-2.0.2' saved [4176147/4176147]

root@OpenWrt:/tmp# chmod +x ck-client-linux-mipsle_softfloat-2.0.2

root@OpenWrt:/tmp# ./ck-client-linux-mipsle_softfloat-2.0.2
./ck-client-linux-mipsle_softfloat-2.0.2: line 1: syntax error: unexpected "("

<!-- gh-comment-id:533805864 --> @ktechmidas commented on GitHub (Sep 21, 2019): Odd, I did this earlier... definitely got the right file - am I doing something wrong? Pasted the full output below > root@OpenWrt:/tmp# wget https://github.com/cbeuw/Cloak/releases/download/v2.0.2/ ck-client-linux-mipsle_softfloat-2.0.2 --2019-09-21 06:33:42-- https://github.com/cbeuw/Cloak/releases/download/v2.0.2 /ck-client-linux-mipsle_softfloat-2.0.2 Resolving github.com... 13.250.177.223 Connecting to github.com|13.250.177.223|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/158890 222/f31be780-be89-11e9-820d-534e710b56ee?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz- Credential=AKIAIWNJYAX4CSVEH53A%2F20190921%2Fus-east-1%2Fs3%2Faws4_request&X-Amz -Date=20190921T063344Z&X-Amz-Expires=300&X-Amz-Signature=530d435f5053c5f4fa0bddf 9e0d6806d56d071ae9c07b4702d331187b3ac809f&X-Amz-SignedHeaders=host&actor_id=0&re sponse-content-disposition=attachment%3B%20filename%3Dck-client-linux-mipsle_sof tfloat-2.0.2&response-content-type=application%2Foctet-stream [following] --2019-09-21 06:33:46-- https://github-production-release-asset-2e65be.s3.amazo naws.com/158890222/f31be780-be89-11e9-820d-534e710b56ee?X-Amz-Algorithm=AWS4-HMA C-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190921%2Fus-east-1%2Fs3%2Faws 4_request&X-Amz-Date=20190921T063344Z&X-Amz-Expires=300&X-Amz-Signature=530d435f 5053c5f4fa0bddf9e0d6806d56d071ae9c07b4702d331187b3ac809f&X-Amz-SignedHeaders=hos t&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dck-client-l inux-mipsle_softfloat-2.0.2&response-content-type=application%2Foctet-stream Resolving github-production-release-asset-2e65be.s3.amazonaws.com... 52.216.239. 27 Connecting to github-production-release-asset-2e65be.s3.amazonaws.com|52.216.239 .27|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 4176147 (4.0M) [application/octet-stream] Saving to: 'ck-client-linux-mipsle_softfloat-2.0.2' > ck-client-linux-mip 100%[===================>] 3.98M 15.2KB/s in 6m 37s > 2019-09-21 06:40:25 (10.3 KB/s) - 'ck-client-linux-mipsle_softfloat-2.0.2' saved [4176147/4176147] > root@OpenWrt:/tmp# chmod +x ck-client-linux-mipsle_softfloat-2.0.2 > root@OpenWrt:/tmp# ./ck-client-linux-mipsle_softfloat-2.0.2 ./ck-client-linux-mipsle_softfloat-2.0.2: line 1: syntax error: unexpected "("
Author
Owner

@malikshi commented on GitHub (Sep 21, 2019):

Run ./ck-client-linux-mipsle_softfloat-2.0.2 -h

<!-- gh-comment-id:533806037 --> @malikshi commented on GitHub (Sep 21, 2019): Run `./ck-client-linux-mipsle_softfloat-2.0.2 -h`
Author
Owner

@ktechmidas commented on GitHub (Sep 21, 2019):

root@OpenWrt:/tmp# ./ck-client-linux-mipsle_softfloat-2.0.2 -h
./ck-client-linux-mipsle_softfloat-2.0.2: line 1: syntax error: unexpected "("

<!-- gh-comment-id:533807501 --> @ktechmidas commented on GitHub (Sep 21, 2019): >root@OpenWrt:/tmp# ./ck-client-linux-mipsle_softfloat-2.0.2 -h ./ck-client-linux-mipsle_softfloat-2.0.2: line 1: syntax error: unexpected "("
Author
Owner

@ktechmidas commented on GitHub (Sep 21, 2019):

Doesn't work with the newer 2.1.0 version either, but I'm running an openwrt version from last year - maybe I'm missing some interpreter?

OpenWrt 18.06.1 r7258-5eb055306f

<!-- gh-comment-id:533808055 --> @ktechmidas commented on GitHub (Sep 21, 2019): Doesn't work with the newer 2.1.0 version either, but I'm running an openwrt version from last year - maybe I'm missing some interpreter? OpenWrt 18.06.1 r7258-5eb055306f
Author
Owner

@ktechmidas commented on GitHub (Sep 21, 2019):

Maybe something is going wrong with the compilation...

https://forum.archive.openwrt.org/viewtopic.php?id=43803

https://blog.csdn.net/fickyou/article/details/50418439

I can try to compile it myself and see if I get the same results

<!-- gh-comment-id:533809034 --> @ktechmidas commented on GitHub (Sep 21, 2019): Maybe something is going wrong with the compilation... https://forum.archive.openwrt.org/viewtopic.php?id=43803 https://blog.csdn.net/fickyou/article/details/50418439 I can try to compile it myself and see if I get the same results
Author
Owner

@zhiming-xu commented on GitHub (Sep 25, 2019):

Although I am not very familiar with the mips instruction set family, from my experience, mips_24kc is somewhat different from mipsel. I have used a router whose chip (MT7620A) is based on the former architecture, and it fails to run applications built for mipsel. So I assume that you might need to compile the binary for mips_24kc yourself or use another router. Products based on MT7621 (mips32 1004K) could readily run the mipsel binary.

<!-- gh-comment-id:534926916 --> @zhiming-xu commented on GitHub (Sep 25, 2019): Although I am not very familiar with the mips instruction set family, from my experience, `mips_24kc` is somewhat different from `mipsel`. I have used a router whose chip ([MT7620A](https://wikidevi.com/wiki/MediaTek_MT7620)) is based on the former architecture, and it fails to run applications built for `mipsel`. So I assume that you might need to compile the binary for `mips_24kc` yourself or use another router. Products based on [MT7621](https://wikidevi.com/wiki/MediaTek_MT7621) (`mips32 1004K`) could readily run the `mipsel` binary.
Author
Owner

@qwerttvv commented on GitHub (Dec 17, 2019):

Although I am not very familiar with the mips instruction set family, from my experience, mips_24kc is somewhat different from mipsel. I have used a router whose chip (MT7620A) is based on the former architecture, and it fails to run applications built for mipsel. So I assume that you might need to compile the binary for mips_24kc yourself or use another router. Products based on MT7621 (mips32 1004K) could readily run the mipsel binary.

老哥,我路由器是新3,现在刷的hiboy老毛子,不太会弄,求教~

<!-- gh-comment-id:566383853 --> @qwerttvv commented on GitHub (Dec 17, 2019): > Although I am not very familiar with the mips instruction set family, from my experience, `mips_24kc` is somewhat different from `mipsel`. I have used a router whose chip ([MT7620A](https://wikidevi.com/wiki/MediaTek_MT7620)) is based on the former architecture, and it fails to run applications built for `mipsel`. So I assume that you might need to compile the binary for `mips_24kc` yourself or use another router. Products based on [MT7621](https://wikidevi.com/wiki/MediaTek_MT7621) (`mips32 1004K`) could readily run the `mipsel` binary. 老哥,我路由器是新3,现在刷的hiboy老毛子,不太会弄,求教~
Author
Owner

@zhiming-xu commented on GitHub (Dec 18, 2019):

@qwerttvv You can download the corresponding binary from here to your router. You will need to use ssh to do this, and I suggest use the path /tmp). Then config the client side json file as introduced in README and put it in the same folder as before, e.g., /tmp. Now you can set the parameters like this:
fig
For the 插件名称 field, type the full path to Cloak binary, and for the 插件参数 field, type the full path to client config.

<!-- gh-comment-id:566851573 --> @zhiming-xu commented on GitHub (Dec 18, 2019): @qwerttvv You can download the corresponding binary from [here](https://github.com/cbeuw/Cloak/releases/download/v2.1.2/ck-client-linux-mipsle-2.1.2) to your router. You will need to use `ssh` to do this, and I suggest use the path `/tmp`). Then config the client side `json` file as introduced in `README` and put it in the same folder as before, e.g., `/tmp`. Now you can set the parameters like this: ![fig](https://user-images.githubusercontent.com/28699492/71053451-665f9e00-2189-11ea-875a-0fd8d30e4d2a.png) For the 插件名称 field, type the full path to `Cloak` binary, and for the 插件参数 field, type the full path to client config.
Author
Owner

@qwerttvv commented on GitHub (Dec 18, 2019):

@qwerttvv You can download the corresponding binary from here to your router. You will need to use ssh to do this, and I suggest use the path /tmp). Then config the client side json file as introduced in README and put it in the same folder as before, e.g., /tmp. Now you can set the parameters like this:
fig
For the 插件名称 field, type the full path to Cloak binary, and for the 插件参数 field, type the full path to client config.

big thx!
but this way was tested yesterday and can't be loaded by ss.
when i check the log, i think cloak is not loaded and run when ss is started....

<!-- gh-comment-id:566866498 --> @qwerttvv commented on GitHub (Dec 18, 2019): > @qwerttvv You can download the corresponding binary from [here](https://github.com/cbeuw/Cloak/releases/download/v2.1.2/ck-client-linux-mipsle-2.1.2) to your router. You will need to use `ssh` to do this, and I suggest use the path `/tmp`). Then config the client side `json` file as introduced in `README` and put it in the same folder as before, e.g., `/tmp`. Now you can set the parameters like this: > ![fig](https://user-images.githubusercontent.com/28699492/71053451-665f9e00-2189-11ea-875a-0fd8d30e4d2a.png) > For the 插件名称 field, type the full path to `Cloak` binary, and for the 插件参数 field, type the full path to client config. big thx! but this way was tested yesterday and can't be loaded by ss. when i check the log, i think cloak is not loaded and run when ss is started....
Author
Owner

@zhiming-xu commented on GitHub (Dec 18, 2019):

@qwerttvv In that case I suggest running ps in your router's terminal and check if the Cloak program is running. For example, if you name the binary in your router ck-client, then you could use ps | grep ck to see if the output includes them as shown in the attached screenshot.
image

<!-- gh-comment-id:566871214 --> @zhiming-xu commented on GitHub (Dec 18, 2019): @qwerttvv In that case I suggest running `ps` in your router's terminal and check if the `Cloak` program is running. For example, if you name the binary in your router `ck-client`, then you could use `ps | grep ck` to see if the output includes them as shown in the attached screenshot. ![image](https://user-images.githubusercontent.com/28699492/71057634-57ccb300-2198-11ea-815e-1a9561c500eb.png)
Author
Owner

@qwerttvv commented on GitHub (Dec 18, 2019):

@zhiming-xu
thx! i will try it when i get home

btw, at this moment, did cn2gt boomed?

<!-- gh-comment-id:566883040 --> @qwerttvv commented on GitHub (Dec 18, 2019): @zhiming-xu thx! i will try it when i get home btw, at this moment, did cn2gt boomed?
Author
Owner

@zhiming-xu commented on GitHub (Dec 18, 2019):

@qwerttvv I don't think I'm currently using CN2GT-backed service so I'm not sure whether it's malfunctioning or not. Maybe you could contact other users lol.

<!-- gh-comment-id:566920871 --> @zhiming-xu commented on GitHub (Dec 18, 2019): @qwerttvv I don't think I'm currently using CN2GT-backed service so I'm not sure whether it's malfunctioning or not. Maybe you could contact other users lol.
Author
Owner

@qwerttvv commented on GitHub (Dec 19, 2019):

@zhiming-xu

finally, is done! thx again

i am wrong, port should be 443, but i wrote 433...........

log file can't see cloak is loaded by ss, but its run...

now it's perfect....ss with cloak, ipv6, adguard home, iptv, frp...

<!-- gh-comment-id:567292048 --> @qwerttvv commented on GitHub (Dec 19, 2019): @zhiming-xu finally, is done! thx again i am wrong, port should be 443, but i wrote 433........... log file can't see cloak is loaded by ss, but its run... now it's perfect....ss with cloak, ipv6, adguard home, iptv, frp...
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#49
No description provided.