-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from ilteoood/feat/sockd-server
Feat/sockd server
- Loading branch information
Showing
7 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM alpine:latest | ||
LABEL maintainer.name="Matteo Pietro Dazzi" \ | ||
maintainer.email="[email protected]" \ | ||
version="1.5.0" \ | ||
description="OpenVPN client configured for SurfShark VPN" | ||
version="1.6.0" \ | ||
description="OpenVPN client and socks5 server configured for SurfShark VPN" | ||
WORKDIR /vpn | ||
ENV SURFSHARK_USER= | ||
ENV SURFSHARK_PASSWORD= | ||
|
@@ -16,5 +16,9 @@ ENV OVPN_CONFIGS= | |
ENV ENABLE_KILL_SWITCH=true | ||
HEALTHCHECK --interval=60s --timeout=10s --start-period=30s CMD curl -L 'https://ipinfo.io' | ||
COPY startup.sh . | ||
RUN apk add --update --no-cache openvpn wget unzip coreutils curl ufw && chmod +x ./startup.sh | ||
COPY sockd.conf /etc/ | ||
COPY sockd.sh . | ||
RUN apk add --update --no-cache openvpn wget unzip coreutils curl ufw dante-server \ | ||
&& chmod +x ./startup.sh \ | ||
&& chmod +x ./sockd.sh | ||
ENTRYPOINT [ "./startup.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
logoutput: stdout | ||
|
||
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
sockd -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters