asciimoo / morty

Privacy aware web content sanitizer proxy as a service
GNU Affero General Public License v3.0
484 stars 57 forks source link

How to use a socks5 proxy? #103

Open paolobasso99 opened 3 years ago

paolobasso99 commented 3 years ago

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 commented 3 years ago

Did you get it to work?

dylode commented 3 years ago

I fixed it by cloning this repo and editting the Dockerfile

paolobasso99 commented 3 years ago

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

dylode commented 3 years ago

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 commented 3 years ago

Thank you! I will try it soon.

alpe12 commented 2 years ago

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