Skip to content

Commit e538897

Browse files
committed
add icecast
1 parent ee877a1 commit e538897

File tree

6 files changed

+79
-1
lines changed

6 files changed

+79
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ A collection of delicious docker recipes.
1414

1515
## Todo
1616

17+
- [ ] badvpn
1718
- [ ] caddy
1819
- [ ] cloudtunes
1920
- [ ] dsniff
@@ -92,6 +93,7 @@ A collection of delicious docker recipes.
9293
- [x] ffmpeg
9394
- [x] ffmpeg-arm
9495
- [x] ffserver :beetle:
96+
- [x] icecast
9597
- [x] live555
9698
- [x] minidlna
9799
- [x] murmur

badvpn/README.md

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
badvpn
2+
======
3+
4+
## Build Binaries
5+
6+
```bash
7+
apt-get install build-essential cmake
8+
wget https://github.com/ambrop72/badvpn/archive/1.999.130.tar.gz
9+
tar xzf 1.999.130.tar.gz
10+
cd badvpn-1.999.130
11+
mkdir build
12+
cd build
13+
cmake -DBUILD_NOTHING_BY_DEFAULT=1 -DBUILD_TUN2SOCKS=1 -DBUILD_UDPGW=1 ..
14+
make install
15+
ls /usr/local/bin/
16+
```
17+
18+
## Server Setup
19+
20+
```bash
21+
badvpn-udpgw --listen-addr 0.0.0.0:7300
22+
```
23+
24+
## Client Setup
25+
26+
```bash
27+
systemctl start shadowsocks-libev@jp
28+
29+
ip tuntap add dev tun0 mode tun user root
30+
ip addr add 10.0.0.1/24 dev tun0
31+
ip link set tun0 up
32+
33+
badvpn-tun2socks --tundev tun0 \
34+
--netif-ipaddr 10.0.0.2 \
35+
--netif-netmask 255.255.255.0 \
36+
--socks-server-addr 127.0.0.1:1080 \
37+
--udpgw-remote-server-addr 45.32.57.113:7300
38+
39+
ip route add 45.32.57.113 via 192.168.31.1
40+
ip route add 0.0.0.0/1 via 10.0.0.2
41+
ip route add 128.0.0.0/1 via 10.0.0.2
42+
```
43+
44+
## Client Test
45+
46+
```bash
47+
# ICMP (Failed)
48+
ping ifconfig.co
49+
50+
# TCP/UDP (Success)
51+
curl ifconfig.co
52+
```
53+
54+
## References
55+
56+
- <https://code.google.com/archive/p/badvpn/wikis/tun2socks.wiki>

icecast/Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# Dockerfile for icecast
3+
#
4+
5+
FROM alpine
6+
7+
MAINTAINER kev <[email protected]>
8+
9+
RUN apk add --no-cache icecast
10+
11+
EXPOSE 8000
12+
13+
CMD ["icecast", "-c", "/etc/icecast.xml"]

icecast/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
icecast
2+
=======

icecast/docker-compose.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
icecast:
2+
image: vimagick/icecast
3+
ports:
4+
- "8000:8000"
5+
restart: always

openconnect/arm/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
openconnect:
2-
image: vimagick/openconnect
2+
image: easypi/openconnect-arm
33
command: https://vpn.easypi.info:4443
44
net: host
55
volumes:

0 commit comments

Comments
 (0)