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

Need help with configuring sslocal via docker. #1645

Open
gurustron opened this issue Sep 7, 2024 · 5 comments
Open

Need help with configuring sslocal via docker. #1645

gurustron opened this issue Sep 7, 2024 · 5 comments

Comments

@gurustron
Copy link

I want to use sslocal running in docker. I have started docker with config looking something like:

{
  "servers": [
    {
      "address":"server_ip",
      "port":server_port,
      "password":"server_pass",
      "method":"server_method",
      "timeout":60
    }
  ],
  "locals": [
    {
      "local_port": 1080,
      "local_address": "127.0.0.1"
    },
    {
      "protocol": "http",
      "local_address": "127.0.0.1",
      "local_port": 1081
    }
  ]
}

And mapped ports 1080 and 1081 to the host ones. When using http proxy inside the container it works (with 1081 port), but using proxy outside the container (with the host port) - request fails. Host OS - Windows.

@zonyitoo
Copy link
Collaborator

zonyitoo commented Sep 8, 2024

Have no idea what was actually happening in your environment. But the answer should be able to find in Docker's community.

@gurustron
Copy link
Author

@zonyitoo it's just a local Win 11 machine with docker installed. My guess was that either I've missed something or that's not how the sslocal should be used. Do you have sample working setup?

@zonyitoo
Copy link
Collaborator

zonyitoo commented Sep 8, 2024

Just docker run should always be Ok. I have never used it in Docker on Windows, maybe there are something special on Windows' Docker.

@rezakr
Copy link

rezakr commented Sep 25, 2024

I am doing something completely unrelated, so maybe I am wrong, but I think you should set local_address to `"0.0.0.0" if you want to use it as a client inside a docker.

@dev4u
Copy link

dev4u commented Sep 25, 2024

docker run --network=host ……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants