From e53889748c014d8209f5be08388179950298c660 Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 10 Jul 2016 02:19:09 +0800 Subject: [PATCH] add icecast --- README.md | 2 ++ badvpn/README.md | 56 ++++++++++++++++++++++++++++++ icecast/Dockerfile | 13 +++++++ icecast/README.md | 2 ++ icecast/docker-compose.yml | 5 +++ openconnect/arm/docker-compose.yml | 2 +- 6 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 badvpn/README.md create mode 100644 icecast/Dockerfile create mode 100644 icecast/README.md create mode 100644 icecast/docker-compose.yml diff --git a/README.md b/README.md index b0c102d..841d680 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ A collection of delicious docker recipes. ## Todo +- [ ] badvpn - [ ] caddy - [ ] cloudtunes - [ ] dsniff @@ -92,6 +93,7 @@ A collection of delicious docker recipes. - [x] ffmpeg - [x] ffmpeg-arm - [x] ffserver :beetle: +- [x] icecast - [x] live555 - [x] minidlna - [x] murmur diff --git a/badvpn/README.md b/badvpn/README.md new file mode 100644 index 0000000..ce6e417 --- /dev/null +++ b/badvpn/README.md @@ -0,0 +1,56 @@ +badvpn +====== + +## Build Binaries + +```bash +apt-get install build-essential cmake +wget https://github.com/ambrop72/badvpn/archive/1.999.130.tar.gz +tar xzf 1.999.130.tar.gz +cd badvpn-1.999.130 +mkdir build +cd build +cmake -DBUILD_NOTHING_BY_DEFAULT=1 -DBUILD_TUN2SOCKS=1 -DBUILD_UDPGW=1 .. +make install +ls /usr/local/bin/ +``` + +## Server Setup + +```bash +badvpn-udpgw --listen-addr 0.0.0.0:7300 +``` + +## Client Setup + +```bash +systemctl start shadowsocks-libev@jp + +ip tuntap add dev tun0 mode tun user root +ip addr add 10.0.0.1/24 dev tun0 +ip link set tun0 up + +badvpn-tun2socks --tundev tun0 \ + --netif-ipaddr 10.0.0.2 \ + --netif-netmask 255.255.255.0 \ + --socks-server-addr 127.0.0.1:1080 \ + --udpgw-remote-server-addr 45.32.57.113:7300 + +ip route add 45.32.57.113 via 192.168.31.1 +ip route add 0.0.0.0/1 via 10.0.0.2 +ip route add 128.0.0.0/1 via 10.0.0.2 +``` + +## Client Test + +```bash +# ICMP (Failed) +ping ifconfig.co + +# TCP/UDP (Success) +curl ifconfig.co +``` + +## References + +- diff --git a/icecast/Dockerfile b/icecast/Dockerfile new file mode 100644 index 0000000..d264a29 --- /dev/null +++ b/icecast/Dockerfile @@ -0,0 +1,13 @@ +# +# Dockerfile for icecast +# + +FROM alpine + +MAINTAINER kev + +RUN apk add --no-cache icecast + +EXPOSE 8000 + +CMD ["icecast", "-c", "/etc/icecast.xml"] diff --git a/icecast/README.md b/icecast/README.md new file mode 100644 index 0000000..a9ac93d --- /dev/null +++ b/icecast/README.md @@ -0,0 +1,2 @@ +icecast +======= diff --git a/icecast/docker-compose.yml b/icecast/docker-compose.yml new file mode 100644 index 0000000..87dd0a4 --- /dev/null +++ b/icecast/docker-compose.yml @@ -0,0 +1,5 @@ +icecast: + image: vimagick/icecast + ports: + - "8000:8000" + restart: always diff --git a/openconnect/arm/docker-compose.yml b/openconnect/arm/docker-compose.yml index 7f70712..382e664 100644 --- a/openconnect/arm/docker-compose.yml +++ b/openconnect/arm/docker-compose.yml @@ -1,5 +1,5 @@ openconnect: - image: vimagick/openconnect + image: easypi/openconnect-arm command: https://vpn.easypi.info:4443 net: host volumes: