This commit is contained in:
2021-09-07 14:50:23 -04:00
commit 37658cfaca
54 changed files with 2918 additions and 0 deletions

13
dante/Dockerfile.openvpn Normal file
View File

@@ -0,0 +1,13 @@
FROM debian:stable
# RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/community' >> '/etc/apk/repositories'
# RUN apk add --no-cache busybox musl dante-server
RUN apt-get update && apt-get install -y dante-server && rm -rf /var/lib/apt/lists/*
ADD sockd.conf_tun /etc/sockd.conf
ADD sockd.sh /usr/local/bin/
RUN chmod a+x /usr/local/bin/sockd.sh
EXPOSE 1080
ENTRYPOINT ["/bin/sh","/usr/local/bin/sockd.sh"]

View File

@@ -0,0 +1,13 @@
FROM debian:stable
# RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/community' >> '/etc/apk/repositories'
# RUN apk add --no-cache busybox musl dante-server
RUN apt-get update && apt-get install -y dante-server && rm -rf /var/lib/apt/lists/*
ADD sockd.conf_wg /etc/sockd.conf
ADD sockd.sh /usr/local/bin/
RUN chmod a+x /usr/local/bin/sockd.sh
EXPOSE 1080
ENTRYPOINT ["/bin/sh","/usr/local/bin/sockd.sh"]

28
dante/sockd.conf_tun Normal file
View File

@@ -0,0 +1,28 @@
debug: 0
logoutput: stderr
internal: 0.0.0.0 port = 1080
external: tun0
socksmethod: none
clientmethod: none
user.privileged: root
user.unprivileged: nobody
client pass {
from: 192.168.1.0/24 port 1-65535 to: 0.0.0.0/0
#clientmethod: rfc931 # match all idented users that also are in passwordfile
}
client pass {
from: 172.0.0.0/8 port 1-65535 to: 0.0.0.0/0
#clientmethod: rfc931 # match all idented users that also are in passwordfile
}
client pass {
from: 127.0.0.0/8 port 1-65535 to: 0.0.0.0/0
}
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
}

28
dante/sockd.conf_wg Normal file
View File

@@ -0,0 +1,28 @@
debug: 0
logoutput: stderr
internal: 0.0.0.0 port = 1080
external: wg0
socksmethod: none
clientmethod: none
user.privileged: root
user.unprivileged: nobody
client pass {
from: 192.168.1.0/24 port 1-65535 to: 0.0.0.0/0
#clientmethod: rfc931 # match all idented users that also are in passwordfile
}
client pass {
from: 172.0.0.0/8 port 1-65535 to: 0.0.0.0/0
#clientmethod: rfc931 # match all idented users that also are in passwordfile
}
client pass {
from: 127.0.0.0/8 port 1-65535 to: 0.0.0.0/0
}
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
}

8
dante/sockd.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
CFGFILE=/etc/sockd.conf
PIDFILE=/tmp/sockd.pid
WORKERS=10
echo "Sleeping for 20"
#sleep 5
echo "/usr/sbin/danted -f $CFGFILE -p $PIDFILE -N $WORKERS -d 5 &"
/usr/sbin/danted -f $CFGFILE -p $PIDFILE -N $WORKERS