1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00

update n2n

This commit is contained in:
kev 2019-07-09 14:09:16 +08:00
parent d657004565
commit 847070a156
3 changed files with 32 additions and 7 deletions

@ -5,4 +5,13 @@ n2n
users to exploit features typical of P2P applications at network instead of
application level.
## up and running
```bash
$ docker-compose up -d
$ docker-compose exec edge bash
>>> ping 192.168.100.1
```
[1]: https://www.ntop.org/products/n2n/

@ -1,7 +1,9 @@
n2n:
image: easypi/n2n-arm
entrypoint: ["edge"]
command: ["-dn2n0", "-cEasyPi", "-ksecret", "-m11:22:33:44:55:55", "-a10.1.2.100", "-p50001", "-l1.2.3.4:7654"]
command: ["-dn2n0", "-cmynetwork", "-kmypassword", "-mAA:BB:CC:DD:EE:FF", "-a192.168.100.1", "-p50001", "-lsupernode:7654", "-f"]
net: host
privileged: true
extra_hosts:
- supernode:1.2.3.4
restart: unless-stopped

@ -1,6 +1,20 @@
n2n:
image: vimagick/n2n
ports:
- "5645:5645/udp"
- "7654:7654/udp"
restart: unless-stopped
version: '3.5'
services:
supernode:
image: vimagick/n2n
ports:
- "5645:5645/udp"
- "7654:7654/udp"
restart: unless-stopped
edge:
image: vimagick/n2n
entrypoint: ["edge"]
command: ["-dn2n0", "-cmynetwork", "-kmypassword", "-mAA:BB:CC:DD:EE:FF", "-a192.168.100.1", "-p50001", "-lsupernode:7654", "-f"]
devices:
- /dev/net/tun
cap_add:
- NET_ADMIN
restart: unless-stopped