Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: proxy authentication and etc #147

Closed
Gitscarlet opened this issue Jul 11, 2024 · 1 comment
Closed

Feature request: proxy authentication and etc #147

Gitscarlet opened this issue Jul 11, 2024 · 1 comment
Labels
feature request New feature or request planned Planned feature

Comments

@Gitscarlet
Copy link

Gitscarlet commented Jul 11, 2024

Hello I have these feature requests. Please implement any of them you think its more helpful.

  1. in mieru client config we have this:
    "socks5ListenLAN": false,
    But users can access socks proxy without authentication. So can we have user and password when socks5ListenLAN is true?

  2. in mita we have this:

    "egress": {
        "proxies": [
            {
                "name": "cloudflare",
                "protocol": "SOCKS5_PROXY_PROTOCOL",
                "host": "127.0.0.1",
                "port": 4000
            }
        ],
        "rules": [
            {
                "ipRanges": ["*"],
                "domainNames": ["*"],
                "action": "PROXY",
                "proxyName": "cloudflare"
            }



But we can not use a remote socks proxy that requires authentication. Authentication here is no for adding encryption, we just dont want other people to connect to our socks proxy server.

  1. add http proxy to lan and outbound proxy with authentication. (currently it only supports socks5)

  2. add a command to apply the whole config instead of patching the existing config.

  3. set expiry date for accounts.

thanks

@Gitscarlet Gitscarlet changed the title Feature request Feature request: proxy authentication Jul 11, 2024
@Gitscarlet Gitscarlet changed the title Feature request: proxy authentication Feature request: proxy authentication and etc Jul 11, 2024
@enfein enfein added the feature request New feature or request label Jul 11, 2024
@enfein
Copy link
Owner

enfein commented Jul 11, 2024

  1. No problem.
  2. No problem. However, for security, you should only connect to localhost socks5 proxy in VPS. In that case, the authentication is useless.
  3. HTTP proxy LAN is already supported. HTTP outbound proxy can't be supported because we can't convert socks5 into HTTP without deep packet inspection.
  4. If you use the same command to apply the whole configuration, it should work. If not, file a bug.
  5. Probably not necessary. This can be easily done with a management script. No need to build in this feature inside mieru.

@enfein enfein added the planned Planned feature label Jul 11, 2024
enfein added a commit that referenced this issue Sep 13, 2024
1. Support mieru proxy client using socks5 username and password authentication (issue #147).
2. Support mita proxy server using socks5 username and password authentication in proxy chain (issue #147).
3. Add the commands `mieru delete http proxy` and `mieru delete socks5 authentication`.
@enfein enfein closed this as completed Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request planned Planned feature
Projects
None yet
Development

No branches or pull requests

2 participants