Skip to content

Commit 1c4fdba

Browse files
pfljukkar
authored andcommitted
docker: Add dante SOCKS 5 proxy
Install danted SOCKS 5 proxy and configuration file to the image. Move mosquitto port definition to the configuration file so that any script running mosquitto from the Docker image does not need to specify the port. Signed-off-by: Patrik Flykt <[email protected]>
1 parent 1080094 commit 1c4fdba

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

docker/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ RUN addgroup --system mosquitto && \
4444
COPY mosquitto.conf /usr/local/etc/mosquitto/
4545
COPY mosquitto-tls.conf /usr/local/etc/mosquitto/
4646

47+
# RUN http_proxy=... apt...
48+
RUN apt update && apt install dante-server -y
49+
50+
COPY danted.conf /etc/
51+
4752
WORKDIR /net-tools
4853

4954
# We do not run any command automatically but let the test script run

docker/danted.conf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
internal: 192.0.2.2
2+
external: 192.0.2.2
3+
external: 127.0.0.1
4+
socksmethod: none
5+
user.unprivileged: nobody
6+
7+
client pass {
8+
from: 0.0.0.0/0 to: 0.0.0.0/0
9+
}
10+
11+
socks pass {
12+
from: 0.0.0.0/0 to: 0.0.0.0/0
13+
protocol: tcp udp
14+
}

docker/mosquitto.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55

66
pid_file /var/run/mosquitto.pid
77

8+
port 1883
9+
810
persistence true
911
persistence_location /var/lib/mosquitto/

0 commit comments

Comments
 (0)