mirror of
https://github.com/sstent/containers.git
synced 2026-01-25 16:41:51 +00:00
first
This commit is contained in:
13
dante/Dockerfile.openvpn
Normal file
13
dante/Dockerfile.openvpn
Normal 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"]
|
||||
13
dante/Dockerfile.wireguard
Normal file
13
dante/Dockerfile.wireguard
Normal 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
28
dante/sockd.conf_tun
Normal 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
28
dante/sockd.conf_wg
Normal 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
8
dante/sockd.sh
Normal 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
|
||||
Reference in New Issue
Block a user