NekoBoxForAndroid icon indicating copy to clipboard operation
NekoBoxForAndroid copied to clipboard

Login and password on the local proxy server

Open alexey22p opened this issue 8 months ago • 6 comments

Is setting a password on a local proxy supported? As far as I know, this can be configured through the global "custom config." Or is it not? If such a feature exists, could you post a sample config?

alexey22p avatar Apr 05 '26 10:04 alexey22p

https://github.com/MatsuriDayo/NekoBoxForAndroid/issues/1153#issuecomment-4198991433

sou1jacker avatar Apr 07 '26 13:04 sou1jacker

settings - custom config from log copypaste config "inbounds" sections and add: "users": [ { "username": "xxx", "password": "yyy" } ] my custom config:

{
  "inbounds": [
    {
      "type": "mixed",
      "tag": "mixed-in",
      "listen": "127.0.0.1",
      "listen_port": 55555,
      "users": [
        {
          "username": "nekobox",
          "password": "fuckrkn...twice!"
        }
      ],
      "sniff": false,
      "sniff_override_destination": false
    }
  ]
}

k-dmitrii avatar Apr 13 '26 14:04 k-dmitrii

settings - custom config from log copypaste config "inbounds" sections and add: "users": [ { "username": "xxx", "password": "yyy" } ] my custom config:

{ "inbounds": [ { "type": "mixed", "tag": "mixed-in", "listen": "127.0.0.1", "listen_port": 55555, "users": [ { "username": "nekobox", "password": "fuckrkn...twice!" } ], "sniff": false, "sniff_override_destination": false } ] }

  1. Is it possible to assign random port for socks5-proxy each time user enables his tunnel an how?
  2. I faced problem - traffic from applications (i use system-wide tunnel with direct routing rules) is not routing via tunnel after applying above socks5 configuration in the settings. Do i miss something?

OOOlledj avatar Apr 18 '26 08:04 OOOlledj

after applying above socks5 configuration in the settings.

copy you own config inbound section from log file, not mine, and just add users fields. i use neko as proxy, not vpn mode.

k-dmitrii avatar Apr 18 '26 13:04 k-dmitrii

after applying above socks5 configuration in the settings.

copy you own config inbound section from log file, not mine, and just add users fields. i use neko as proxy, not vpn mode.

I did as you said with configuration from logs, now my tunnel work perfectly, system scan shows that my proxy is now under password protection and not accessible for potential spyware.

OOOlledj avatar Apr 20 '26 06:04 OOOlledj

Thank you, everything works.

Is it possible to implement custom settings in future versions not only in global settings and in each profile individually, but also in groups (similar to proxy chains)? Or will this require a complete overhaul of the entire application structure?

alexey22p avatar Jun 02 '26 10:06 alexey22p