morty icon indicating copy to clipboard operation
morty copied to clipboard

How to use a socks5 proxy?

Open paolobasso99 opened this issue 3 years ago • 6 comments

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?

paolobasso99 avatar Apr 14 '21 11:04 paolobasso99

Did you get it to work?

dylode avatar Apr 26 '21 17:04 dylode

I fixed it by cloning this repo and editting the Dockerfile

dylode avatar Apr 26 '21 17:04 dylode

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

paolobasso99 avatar Apr 26 '21 17:04 paolobasso99

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.

dylode avatar Apr 26 '21 18:04 dylode

Thank you! I will try it soon.

paolobasso99 avatar Apr 26 '21 19:04 paolobasso99

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

alpe12 avatar Jul 28 '22 15:07 alpe12