diff --git a/README.md b/README.md index 0ad0253..b6b593a 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ dockerfiles - [x] clamav - [x] collectd - [x] dante +- [x] delegated - [x] discuz :cn: - [x] dnscrypt - [x] dnscrypt-proxy diff --git a/delegated/Dockerfile b/delegated/Dockerfile new file mode 100644 index 0000000..9cbeeb1 --- /dev/null +++ b/delegated/Dockerfile @@ -0,0 +1,26 @@ +# +# Dockerfile for delegated +# + +FROM debian +MAINTAINER kev + +ENV DG_VERSION 9_9_13 +ENV DG_FILE linux2.6-dg${DG_VERSION}.tar.gz +ENV DG_DIR dg${DG_VERSION} +ENV DG_URL http://delegate.hpcc.jp/anonftp/DeleGate/bin/linux/latest/${DG_FILE} + +RUN set -xe \ + && apt-get update \ + && apt-get install -y wget \ + && wget ${DG_URL} -O ${DG_FILE} \ + && tar xzf ${DG_FILE} \ + && cp ${DG_DIR}/DGROOT/bin/${DG_DIR} /bin/delegated \ + && apt-get remove -y wget \ + && rm -rf ${DG_FILE} \ + ${DG_DIR} \ + /var/lib/apt/lists/* + +COPY delegated.conf /etc/ + +ENTRYPOINT ["/bin/delegated"] diff --git a/delegated/README.md b/delegated/README.md new file mode 100644 index 0000000..7b715ec --- /dev/null +++ b/delegated/README.md @@ -0,0 +1,30 @@ +delegated +========= + +![](https://badge.imagelayers.io/vimagick/delegated:latest.svg) + +[DeleGate][1] is a multipurpose proxy server which relays various application +protocols on TCP/IP or UDP/IP + +## docker-compose.yml + +``` +delegated: + image: vimagick/delegated + command: "-P1080 SERVER=socks" + ports: + - "1080:1080" + restart: always +``` + +## up and running + +``` +# server +$ docker-compose up -d + +# client +$ curl -x socks5h://localhost:1080 ifconfig.ovh +``` + +[1]: http://www.delegate.org/delegate/ diff --git a/delegated/delegated.conf b/delegated/delegated.conf new file mode 100644 index 0000000..4aefda9 --- /dev/null +++ b/delegated/delegated.conf @@ -0,0 +1,4 @@ +-f +ADMIN=admin@domain +DGROOT=/tmp +PERMIT='*:*:*' diff --git a/delegated/docker-compose.yml b/delegated/docker-compose.yml new file mode 100644 index 0000000..04d4c61 --- /dev/null +++ b/delegated/docker-compose.yml @@ -0,0 +1,6 @@ +delegated: + image: vimagick/delegated + command: "-P1080 SERVER=socks" + ports: + - "1080:1080" + restart: always