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

How to use a socks5 proxy? #103

Open
paolobasso99 opened this issue Apr 14, 2021 · 6 comments
Open

How to use a socks5 proxy? #103

paolobasso99 opened this issue Apr 14, 2021 · 6 comments

Comments

@paolobasso99
Copy link

I've seen in #70 that morty support using a socks5 proxy but I have not found any documentation on how to actually setup this proxy.
I have tried using:

morty:
    container_name: morty
    image: dalf/morty
    restart: unless-stopped
    networks:
      - web_proxy
    command: -timeout 6 -ipv6 -socks5 ${MORTY_SOCKS5_USERNAME}:${MORTY_SOCKS5_PASSWORD}@${MORTY_SOCKS5_HOST}:${MORTY_SOCKS5_PORT}
    environment:
      - MORTY_KEY=${MORTY_KEY}
      - MORTY_ADDRESS=0.0.0.0:3000
    read_only: true
    cap_drop:
      - ALL

But it does not proxy the traffic.
Am i missing something?

@dylode
Copy link

dylode commented Apr 26, 2021

Did you get it to work?

@dylode
Copy link

dylode commented Apr 26, 2021

I fixed it by cloning this repo and editting the Dockerfile

@paolobasso99
Copy link
Author

I did not fix this, can you share your Dockerfile?

@dylode
Copy link

dylode commented Apr 26, 2021

I did not fix this, can you share your Dockerfile?

Change ENTRYPOINT ["/usr/local/morty/morty"] to ENTRYPOINT ["/usr/local/morty/morty", "-socks5", "ip:port"]

Its hardcoded but "command" does not seem to work either so.

@paolobasso99
Copy link
Author

Thank you! I will try it soon.

@alpe12
Copy link

alpe12 commented Jul 28, 2022

For me this works:
command: -socks5 socks5://ip:port

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

3 participants