diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..eeaab75 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,14 @@ +FROM golang:alpine AS go-build + +RUN apk --no-cache add --update git +RUN git clone https://github.com/octeep/wireproxy.git +RUN cd ./wireproxy && go build + + +FROM alpine:latest + +RUN apk upgrade +COPY --from=go-build /go/wireproxy/wireproxy /usr/bin/ + +VOLUME [ "/etc/wireproxy"] +ENTRYPOINT [ "/usr/bin/wireproxy", "/etc/wireproxy/config" ] \ No newline at end of file diff --git a/docker/Makefile b/docker/Makefile new file mode 100644 index 0000000..f22f322 --- /dev/null +++ b/docker/Makefile @@ -0,0 +1,10 @@ +build: + docker build -t wireproxy . + +run: + docker run \ + --rm --tty --interactive \ + --name=wireproxy \ + --publish 2534:2534 \ + --volume "${PWD}/config:/etc/wireproxy/config:ro" \ + wireproxy \ No newline at end of file diff --git a/docker/config b/docker/config new file mode 100644 index 0000000..4c71193 --- /dev/null +++ b/docker/config @@ -0,0 +1,23 @@ +# SelfSecretKey is the secret key of your wireguard peer +SelfSecretKey = ###Interface - PrivateKey### +# SelfEndpoint is the IP of your wireguard peer +SelfEndpoint = ###Interface - Address### +# DNS is the nameservers that will be used by wireproxy. +# Multple nameservers can be specified as such: DNS = 1.1.1.1, 1.0.0.1 +DNS = ###Interface - DNS### + +# PeerPublicKey is the public key of the wireguard server you want to connec to +PeerPublicKey = ###Peer - PublicKey### +# PeerEndpoint is the endpoint of the wireguard server you want to connec to +PeerEndpoint = ###Peer - Endpoint### + +# KeepAlive is the persistent keep alive interval of the wireguard device +# usually not needed +# KeepAlive = 25 +# PreSharedKey is the pre shared key of your wireguard device +# if you don't know what this is you don't need it +# PreSharedKey = + +# Socks5 create a socks5 proxy on your LAN, and any traffic would be routed via wireguard +[Socks5] +BindAddress = 0.0.0.0:2534 \ No newline at end of file