1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
This commit is contained in:
kev 2015-05-24 12:23:19 +08:00
parent 4476fc8448
commit 9fa3dafccd
2 changed files with 20 additions and 12 deletions

@ -1,5 +1,5 @@
#
# Dockerfile for obfsproxy
# Dockerfile for obfsproxy (scramblesuit)
#
FROM debian:jessie
@ -9,9 +9,9 @@ RUN apt-get update \
&& apt-get install -y build-essential curl python python-dev \
&& curl https://bootstrap.pypa.io/get-pip.py | python \
&& pip install obfsproxy \
&& apt-get remove -y build-essential python-dev \
&& apt-get purge -y build-essential python-dev \
&& apt-get autoremove -y \
&& apt-get clean \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
ENV LOG_MIN_SEVERITY info
@ -23,7 +23,11 @@ ENV RUN_MODE server
ENV LISTEN_ADDR 0.0.0.0
ENV LISTEN_PORT 4911
CMD obfsproxy --log-min-severity=$LOG_MIN_SEVERITY --data-dir=$DATA_DIR \
scramblesuit --password=$PASSWORD --dest=$DEST_ADDR:$DEST_PORT \
$RUN_MODE $LISTEN_ADDR:$LISTEN_PORT
CMD obfsproxy --log-min-severity=$LOG_MIN_SEVERITY \
--data-dir=$DATA_DIR \
scramblesuit \
--password=$PASSWORD \
--dest=$DEST_ADDR:$DEST_PORT \
$RUN_MODE \
$LISTEN_ADDR:$LISTEN_PORT

@ -1,14 +1,18 @@
OpenVPN over Obfsproxy
======================
Obfsproxy is a pluggable transport proxy written in python.
We can transport OpenVPN over Obfsproxy, so that firewall cannot detect it.
Obfsproxy provides several obfuscation method. I consider `scramblesuit` the best.
`Obfsproxy` is a pluggable transport proxy written in python.
It provides several obfuscation method. I consider `scramblesuit` the best.
I will update this image if there's better one.
To use the example bellow, you should run `kylemanna/openvpn` container first.
Don't forget to edit `/etc/openvpn/openvpn.conf` to use `proto tcp`.
![obfsproxy](http://www.cs.kau.se/philwint/scramblesuit/images/big_picture.png)
`scramblesuit` can transport any application that supports SOCKS.
This includes `Tor`, `VPN`, `SSH`, and many other protocols.
We can transport `OpenVPN` over `Obfsproxy`, so that firewall cannot detect it.
In the following example, you should run `kylemanna/openvpn` container first.
Don't forget to edit `/etc/openvpn/openvpn.conf` to use `proto tcp`.
## docker-compose.yml