evait-security / docker-multitor

71 stars 29 forks source link

Cannot run multitor docker with privoxy #9

Open phongtnit opened 3 years ago

phongtnit commented 3 years ago

Hello,

I can run multitor docker with command multitor --init 5 --user root --socks-port 9000 --control-port 9900 --proxy socks, however, the option privoxy in the following command multitor --init 5 --user root --socks-port 9000 --control-port 9900 --proxy privoxy --haproxywill be error as shown in the image Imgur

Please help me to fix it, many thanks

FLX-0x00 commented 3 years ago

Please refer to the multitor repo. We only provide some basic docker files / environment and do not support the application itself. Thank you

phongtnit commented 3 years ago

Hi,

I guess the error because of docker-multitor installed latest version of alpine and important packages like Privoxy, Tor, Haproxy. Indeed, last year I successfully installed docker-multitor with privoxy. I think multitor package don't maintain anymore.

FLX-0x00 commented 3 years ago

sorry but atm we can not go into this project as we not use it in our daily bsns. We keep this issue open, maybe someone wants to get a look at this issue.

erdotufa commented 2 years ago

Hi @blacklist-arcc and @phongtnit,

I found the problem and is caused by the Privoxy package in Alpine. I don't know why but in Alpine if you install the Privoxy package all the configuration files have the .new extension now

image

This is not documented anywhere (or I didn't find it) If you install the Privoxy package in Debian no files with .new extension there as expetected.

The workaround to have it working again is to rename the *.new files without that extension For example chage the Dockerfile:

RUN for file in /etc/privoxy/*.new; do mv "$file" "${file%.new}"; done CMD multitor --init 60 --user root --socks-port 9000 --control-port 9900 --proxy privoxy --haproxy

@blacklist-arcc I think is good to add something to the Readme of this project (also my solution) and in the future change the base image of the container to Debian or CentOs that is tested from multitor repo.

FLX-0x00 commented 2 years ago

Thanks for your afford. I will check this on my own later and commit the changes. Cheers.