This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
372 additions
and
425 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
* | ||
!data/ | ||
!data/ |
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 +1 @@ | ||
local/ | ||
.local/ |
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,9 +1,9 @@ | ||
repos: | ||
- repo: https://github.com/norwoodj/helm-docs | ||
rev: v1.6.0 | ||
hooks: | ||
- id: helm-docs | ||
args: | ||
- --chart-search-root=chart | ||
- --template-files=./_templates.gotmpl | ||
- --template-files=README.md.gotmpl | ||
- repo: https://github.com/norwoodj/helm-docs | ||
rev: v1.6.0 | ||
hooks: | ||
- id: helm-docs | ||
args: | ||
- --chart-search-root=chart | ||
- --template-files=./_templates.gotmpl | ||
- --template-files=README.md.gotmpl |
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,28 +1,27 @@ | ||
FROM alpine:3.15 | ||
|
||
ARG IMAGE_VERSION | ||
ARG BUILD_DATE | ||
|
||
LABEL org.opencontainers.image.created="$BUILD_DATE" | ||
LABEL org.opencontainers.image.source="github.com/wfg/docker-openvpn-client" | ||
LABEL org.opencontainers.image.version="$IMAGE_VERSION" | ||
|
||
ENV KILL_SWITCH=on \ | ||
VPN_LOG_LEVEL=3 \ | ||
HTTP_PROXY=off \ | ||
SOCKS_PROXY=off | ||
FROM alpine:3.16 | ||
|
||
RUN apk add --no-cache \ | ||
bash \ | ||
bind-tools \ | ||
dante-server \ | ||
nftables \ | ||
openvpn \ | ||
tinyproxy | ||
|
||
RUN mkdir -p /data/vpn | ||
COPY data/ /data/ | ||
|
||
COPY data/ /data | ||
ENV KILL_SWITCH=on | ||
ENV USE_VPN_DNS=on | ||
ENV VPN_LOG_LEVEL=3 | ||
|
||
ARG BUILD_DATE | ||
ARG IMAGE_VERSION | ||
|
||
LABEL build-date=$BUILD_DATE | ||
LABEL image-version=$IMAGE_VERSION | ||
|
||
HEALTHCHECK CMD ping -c 3 1.1.1.1 || exit 1 | ||
|
||
ENTRYPOINT ["/data/scripts/entry.sh"] | ||
WORKDIR /data | ||
|
||
ENTRYPOINT [ "scripts/entry.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 @@ | ||
IMAGE_NAME=ghcr.io/wfg/openvpn-client |
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,20 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import argparse | ||
import datetime | ||
import subprocess | ||
|
||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument('image_version', type=str) | ||
args = parser.parse_args() | ||
|
||
docker_build_cmd = [ | ||
'docker', 'build', | ||
'--build-arg', f'BUILD_DATE={str(datetime.datetime.now())}', | ||
'--build-arg', f'IMAGE_VERSION={args.image_version}', | ||
'--tag', f'ghcr.io/wfg/openvpn-client:{args.image_version}', | ||
'--tag', 'ghcr.io/wfg/openvpn-client:latest', | ||
'.', | ||
] | ||
subprocess.run(docker_build_cmd) |
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,26 @@ | ||
logoutput: /var/log/sockd.log | ||
errorlog: stderr | ||
|
||
internal: eth0 port = 1080 | ||
external: tun0 | ||
|
||
socksmethod: none | ||
|
||
user.unprivileged: sockd | ||
|
||
client pass { | ||
from: 0.0.0.0/0 to: 0.0.0.0/0 | ||
log: error connect disconnect | ||
} | ||
|
||
socks pass { | ||
from: 0.0.0.0/0 to: 0.0.0.0/0 | ||
command: bind connect udpassociate | ||
log: error connect disconnect | ||
} | ||
|
||
socks pass { | ||
from: 0.0.0.0/0 to: 0.0.0.0/0 | ||
command: bindreply udpreply | ||
log: error connect disconnect | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.