mirror of
https://github.com/ilteoood/docker-surfshark.git
synced 2025-12-21 13:23:02 +01:00
feat: sockd conf
This commit is contained in:
@@ -2,7 +2,7 @@ FROM alpine:latest
|
|||||||
LABEL maintainer.name="Matteo Pietro Dazzi" \
|
LABEL maintainer.name="Matteo Pietro Dazzi" \
|
||||||
maintainer.email="matteopietro.dazzi@gmail.com" \
|
maintainer.email="matteopietro.dazzi@gmail.com" \
|
||||||
version="1.5.0" \
|
version="1.5.0" \
|
||||||
description="OpenVPN client configured for SurfShark VPN"
|
description="OpenVPN client and socks5 server configured for SurfShark VPN"
|
||||||
WORKDIR /vpn
|
WORKDIR /vpn
|
||||||
ENV SURFSHARK_USER=
|
ENV SURFSHARK_USER=
|
||||||
ENV SURFSHARK_PASSWORD=
|
ENV SURFSHARK_PASSWORD=
|
||||||
@@ -16,5 +16,6 @@ ENV OVPN_CONFIGS=
|
|||||||
ENV ENABLE_KILL_SWITCH=true
|
ENV ENABLE_KILL_SWITCH=true
|
||||||
HEALTHCHECK --interval=60s --timeout=10s --start-period=30s CMD curl -L 'https://ipinfo.io'
|
HEALTHCHECK --interval=60s --timeout=10s --start-period=30s CMD curl -L 'https://ipinfo.io'
|
||||||
COPY startup.sh .
|
COPY startup.sh .
|
||||||
RUN apk add --update --no-cache openvpn wget unzip coreutils curl ufw && chmod +x ./startup.sh
|
COPY sockd.conf /etc/
|
||||||
|
RUN apk add --update --no-cache openvpn wget unzip coreutils curl ufw dante-server && chmod +x ./startup.sh
|
||||||
ENTRYPOINT [ "./startup.sh" ]
|
ENTRYPOINT [ "./startup.sh" ]
|
||||||
|
|||||||
18
sockd.conf
Normal file
18
sockd.conf
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
logoutput: stderr
|
||||||
|
|
||||||
|
internal: eth0 port = 1080
|
||||||
|
external: tun0
|
||||||
|
|
||||||
|
user.unprivileged: sockd
|
||||||
|
|
||||||
|
socksmethod: none
|
||||||
|
clientmethod: none
|
||||||
|
|
||||||
|
client pass {
|
||||||
|
from: 0.0.0.0/0 to: 0.0.0.0/0
|
||||||
|
log: error
|
||||||
|
}
|
||||||
|
|
||||||
|
socks pass {
|
||||||
|
from: 0.0.0.0/0 to: 0.0.0.0/0
|
||||||
|
}
|
||||||
@@ -40,4 +40,6 @@ if [ "${ENABLE_KILL_SWITCH}" = "true" ]; then
|
|||||||
ufw default deny outgoing
|
ufw default deny outgoing
|
||||||
ufw allow out on tun0 from any to any
|
ufw allow out on tun0 from any to any
|
||||||
ufw enable
|
ufw enable
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sockd -D
|
||||||
Reference in New Issue
Block a user