[GH-ISSUE #302] Cloak client always use default ports - debian 12 Solved!! #240

Closed
opened 2026-02-26 12:34:20 +03:00 by kerem · 3 comments
Owner

Originally created by @marianoacc on GitHub (Mar 31, 2025).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/302

Hi from Argentina, thanks for your great software. I inform an issue I had with de ports.

Even I change configuration /etc/cloak/ckclient_ss.json file like:

{
  "Transport": "direct",
  "ProxyMethod": "shadowsocks",
  "ServerAddr":  "proxy1.xxxx.com.ar:4443",
  "EncryptionMethod": "plain",
  "ServerName": "www.bing.com",
  "NumConn": 4,
  "BrowserSig": "chrome",
  "PublicKey": "XXXXXXX=",
  "TicketTimeHint": 3600,
  "AuthTimeout": "5s",
  "DialTimeout": "5s",
  "StreamTimeout": 300,
  "ServerName": "www.bing.com",
  "nameserver":"1.1.1.1",
  "AlternativeNames": ["cloudflare.com", "github.com"],
  "UID": "XXXXXXXXX==",
  "Local_address": "127.0.0.1",
  "local_port":5000
}

and execute command :

strace -e openat ck-client -c /etc/cloak/ckclient_ss.json -s proxy1.xxx.com.ar 4443 -l 5000 -v debug
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/proc/self/maps", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/sys/kernel/mm/transparent_hugepage/hpage_pmd_size", O_RDONLY) = 3
--- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=592170, si_uid=0} ---
--- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=592170, si_uid=0} ---
INFO[0000] Starting standalone mode                     
openat(AT_FDCWD, "/etc/cloak/ckclient_ss.json", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/etc/localtime", O_RDONLY) = 3
INFO[2025-03-31T12:52:01-03:00] Listening on TCP 127.0.0.1:1984 for shadowsocks client 
openat(AT_FDCWD, "/proc/sys/net/core/somaxconn", O_RDONLY|O_CLOEXEC) = 6

Cloak always use port 443 to connect to server and 1984 for listen requirements.

Best regards
Mariano

Originally created by @marianoacc on GitHub (Mar 31, 2025). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/302 Hi from Argentina, thanks for your great software. I inform an issue I had with de ports. Even I change configuration /etc/cloak/ckclient_ss.json file like: ```json { "Transport": "direct", "ProxyMethod": "shadowsocks", "ServerAddr": "proxy1.xxxx.com.ar:4443", "EncryptionMethod": "plain", "ServerName": "www.bing.com", "NumConn": 4, "BrowserSig": "chrome", "PublicKey": "XXXXXXX=", "TicketTimeHint": 3600, "AuthTimeout": "5s", "DialTimeout": "5s", "StreamTimeout": 300, "ServerName": "www.bing.com", "nameserver":"1.1.1.1", "AlternativeNames": ["cloudflare.com", "github.com"], "UID": "XXXXXXXXX==", "Local_address": "127.0.0.1", "local_port":5000 } ``` and execute command : ```bash strace -e openat ck-client -c /etc/cloak/ckclient_ss.json -s proxy1.xxx.com.ar 4443 -l 5000 -v debug openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/proc/self/maps", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/sys/kernel/mm/transparent_hugepage/hpage_pmd_size", O_RDONLY) = 3 --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=592170, si_uid=0} --- --- SIGURG {si_signo=SIGURG, si_code=SI_TKILL, si_pid=592170, si_uid=0} --- INFO[0000] Starting standalone mode openat(AT_FDCWD, "/etc/cloak/ckclient_ss.json", O_RDONLY|O_CLOEXEC) = 3 openat(AT_FDCWD, "/etc/localtime", O_RDONLY) = 3 INFO[2025-03-31T12:52:01-03:00] Listening on TCP 127.0.0.1:1984 for shadowsocks client openat(AT_FDCWD, "/proc/sys/net/core/somaxconn", O_RDONLY|O_CLOEXEC) = 6 ``` Cloak always use port 443 to connect to server and 1984 for listen requirements. Best regards Mariano
kerem closed this issue 2026-02-26 12:34:20 +03:00
Author
Owner

@eagafonov commented on GitHub (Apr 21, 2025):

Hi @marianoacc

Even I change configuration /etc/cloak/ckclient_ss.json file like:
"Local_address": "127.0.0.1",
"local_port":5000

I believe it should be

"RemoteHost": "proxy1.xxxx.com.ar",
"RemotePort" : "4443",
"LocalHost": "127.0.0.1",
"LocalPort":"5000"

Please note the port is set as a string with quotes, not as a number

<!-- gh-comment-id:2817605291 --> @eagafonov commented on GitHub (Apr 21, 2025): Hi @marianoacc > Even I change configuration /etc/cloak/ckclient_ss.json file like: > "Local_address": "127.0.0.1", > "local_port":5000 I believe it should be > "RemoteHost": "proxy1.xxxx.com.ar", > "RemotePort" : "4443", > "LocalHost": "127.0.0.1", > "LocalPort":"5000" Please note the port is set as a string with quotes, not as a number
Author
Owner

@marianoacc commented on GitHub (Apr 21, 2025):

Hi @marianoacc

Even I change configuration /etc/cloak/ckclient_ss.json file like:
"Local_address": "127.0.0.1",
"local_port":5000

I believe it should be

"RemoteHost": "proxy1.xxxx.com.ar",
"RemotePort" : "4443",
"LocalHost": "127.0.0.1",
"LocalPort":"5000"

Please note the port is set as a string with quotes, not as a number

Thanks Eugene!!! It works!!

Best regards
Mariano

<!-- gh-comment-id:2818431518 --> @marianoacc commented on GitHub (Apr 21, 2025): > Hi [@marianoacc](https://github.com/marianoacc) > > > Even I change configuration /etc/cloak/ckclient_ss.json file like: > > "Local_address": "127.0.0.1", > > "local_port":5000 > > I believe it should be > > > "RemoteHost": "proxy1.xxxx.com.ar", > > "RemotePort" : "4443", > > "LocalHost": "127.0.0.1", > > "LocalPort":"5000" > > Please note the port is set as a string with quotes, not as a number Thanks Eugene!!! It works!! Best regards Mariano
Author
Owner

@William0614001 commented on GitHub (Jun 14, 2025):

After one week struggle , finally i get success for runing my cloak+shadowsocks

<!-- gh-comment-id:2972463225 --> @William0614001 commented on GitHub (Jun 14, 2025): After one week struggle , finally i get success for runing my cloak+shadowsocks
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#240
No description provided.