1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 13:58:42 +00:00
This commit is contained in:
kev 2015-04-30 18:32:52 +08:00
parent c79ea7eace
commit e30bcdedfd
3 changed files with 11 additions and 3 deletions

@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y build-essential curl python python-dev
RUN curl https://bootstrap.pypa.io/get-pip.py | python
RUN pip install obfsproxy
ENV LOG_MIN_SEVERITY info
ENV DATA_DIR /var/lib/obfsproxy
ENV PASSWORD XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ENV DEST_ADDR openvpn
@ -18,5 +19,7 @@ ENV LISTEN_PORT 4911
EXPOSE $LISTEN_PORT
CMD obfsproxy --data-dir=$DATA_DIR scramblesuit --password=$PASSWORD --dest=$DEST_ADDR:$DEST_PORT \
server $LISTEN_ADDR:LISTEN_PORT
CMD obfsproxy --log-min-severity=$LOG_MIN_SEVERITY --data-dir=$DATA_DIR \
scramblesuit --password=$PASSWORD --dest=$DEST_ADDR:$DEST_PORT \
server $LISTEN_ADDR:$LISTEN_PORT

@ -1,6 +1,11 @@
OpenVPN over Obfsproxy
======================
Obfsproxy is a pluggable transport proxy written in python.
We can transport OpenVPN over Obfsproxy, so that firewall cannot detect it.
To use the example bellow, you should run `kylemanna/openvpn` with tcp first.
## docker-compose.yml
```

@ -2,7 +2,7 @@ obfsproxy:
image: vimagick/obfsproxy:latest
ports:
- "4911:4911"
links:
external_links:
- openvpn_server_1:openvpn
environment:
- PASSWORD=J23TNHPJPAOQJLTCPLFD4CQYVFY6MEVP