mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
update
This commit is contained in:
@@ -5,7 +5,8 @@
|
|||||||
FROM alpine
|
FROM alpine
|
||||||
MAINTAINER kev <norelpy@datageek.info>
|
MAINTAINER kev <norelpy@datageek.info>
|
||||||
|
|
||||||
RUN apk add -U build-base \
|
RUN set -xe \
|
||||||
|
&& apk add -U build-base \
|
||||||
gmp \
|
gmp \
|
||||||
gmp-dev \
|
gmp-dev \
|
||||||
libstdc++ \
|
libstdc++ \
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
FROM debian:jessie
|
FROM debian:jessie
|
||||||
MAINTAINER kev<noreply@datageek.info>
|
MAINTAINER kev<noreply@datageek.info>
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN set -xe \
|
||||||
|
&& apt-get update \
|
||||||
&& apt-get install -y build-essential curl python python-dev \
|
&& apt-get install -y build-essential curl python python-dev \
|
||||||
&& curl https://bootstrap.pypa.io/get-pip.py | python \
|
&& curl https://bootstrap.pypa.io/get-pip.py | python \
|
||||||
&& pip install obfsproxy \
|
&& pip install obfsproxy \
|
||||||
|
|||||||
@@ -11,19 +11,19 @@ I will update this image if there's better one.
|
|||||||
This includes `Tor`, `VPN`, `SSH`, and many other protocols.
|
This includes `Tor`, `VPN`, `SSH`, and many other protocols.
|
||||||
|
|
||||||
We can transport `OpenVPN` over `Obfsproxy`, so that firewall cannot detect it.
|
We can transport `OpenVPN` over `Obfsproxy`, so that firewall cannot detect it.
|
||||||
In the following example, you should run `kylemanna/openvpn` container first.
|
In the following example, you should run `vimagick/openvpn` container first.
|
||||||
Don't forget to edit `/etc/openvpn/openvpn.conf` to use `proto tcp`.
|
Don't forget to edit `/etc/openvpn/openvpn.conf` to use `proto tcp`.
|
||||||
|
|
||||||
## docker-compose.yml
|
## docker-compose.yml
|
||||||
|
|
||||||
```
|
```
|
||||||
data:
|
data:
|
||||||
image: busybox:latest
|
image: busybox
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/openvpn
|
- /etc/openvpn
|
||||||
|
|
||||||
server:
|
server:
|
||||||
image: kylemanna/openvpn:latest
|
image: vimagick/openvpn
|
||||||
ports:
|
ports:
|
||||||
- "1194:1194/tcp"
|
- "1194:1194/tcp"
|
||||||
volumes_from:
|
volumes_from:
|
||||||
@@ -33,7 +33,7 @@ server:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
obfsproxy:
|
obfsproxy:
|
||||||
image: vimagick/obfsproxy:latest
|
image: vimagick/obfsproxy
|
||||||
ports:
|
ports:
|
||||||
- "4911:4911"
|
- "4911:4911"
|
||||||
links:
|
links:
|
||||||
@@ -51,7 +51,7 @@ To link a existing `openvpn` container, please use `external_links` instead of `
|
|||||||
|
|
||||||
```
|
```
|
||||||
obfsproxy:
|
obfsproxy:
|
||||||
image: vimagick/obfsproxy:latest
|
image: vimagick/obfsproxy
|
||||||
ports:
|
ports:
|
||||||
- "4911:4911"
|
- "4911:4911"
|
||||||
external_links:
|
external_links:
|
||||||
@@ -70,7 +70,7 @@ The following example shows us how to make a OpenVPN relay:
|
|||||||
|
|
||||||
```
|
```
|
||||||
obfsproxy:
|
obfsproxy:
|
||||||
image: vimagick/obfsproxy:latest
|
image: vimagick/obfsproxy
|
||||||
ports:
|
ports:
|
||||||
- "1194:1194/tcp"
|
- "1194:1194/tcp"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
26
obfsproxy/docker-compose.yml
Normal file
26
obfsproxy/docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
server:
|
||||||
|
image: vimagick/obfsproxy
|
||||||
|
ports:
|
||||||
|
- "4911:4911"
|
||||||
|
external_links:
|
||||||
|
- openvpn_server_1:openvpn
|
||||||
|
environment:
|
||||||
|
- PASSWORD=J23TNHPJPAOQJLTCPLFD4CQYVFY6MEVP
|
||||||
|
- DEST_ADDR=openvpn
|
||||||
|
- DEST_PORT=1194
|
||||||
|
- LISTEN_ADDR=0.0.0.0
|
||||||
|
- LISTEN_PORT=4911
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
client:
|
||||||
|
image: vimagick/obfsproxy
|
||||||
|
ports:
|
||||||
|
- "1194:1194/tcp"
|
||||||
|
environment:
|
||||||
|
- PASSWORD=J23TNHPJPAOQJLTCPLFD4CQYVFY6MEVP
|
||||||
|
- DEST_ADDR=vpn.datageek.info
|
||||||
|
- DEST_PORT=4911
|
||||||
|
- RUN_MODE=client
|
||||||
|
- LISTEN_ADDR=0.0.0.0
|
||||||
|
- LISTEN_PORT=1194
|
||||||
|
restart: always
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
obfsproxy:
|
|
||||||
image: vimagick/obfsproxy:latest
|
|
||||||
ports:
|
|
||||||
- "4911:4911"
|
|
||||||
external_links:
|
|
||||||
- openvpn_server_1:openvpn
|
|
||||||
environment:
|
|
||||||
- PASSWORD=J23TNHPJPAOQJLTCPLFD4CQYVFY6MEVP
|
|
||||||
- DEST_ADDR=openvpn
|
|
||||||
- DEST_PORT=1194
|
|
||||||
- LISTEN_ADDR=0.0.0.0
|
|
||||||
- LISTEN_PORT=4911
|
|
||||||
restart: always
|
|
||||||
Reference in New Issue
Block a user