You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-08-10 22:31:28 +02:00
update n2n
This commit is contained in:
@@ -5,4 +5,13 @@ n2n
|
|||||||
users to exploit features typical of P2P applications at network instead of
|
users to exploit features typical of P2P applications at network instead of
|
||||||
application level.
|
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]: https://www.ntop.org/products/n2n/
|
||||||
|
@@ -1,7 +1,9 @@
|
|||||||
n2n:
|
n2n:
|
||||||
image: easypi/n2n-arm
|
image: easypi/n2n-arm
|
||||||
entrypoint: ["edge"]
|
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
|
net: host
|
||||||
privileged: true
|
privileged: true
|
||||||
|
extra_hosts:
|
||||||
|
- supernode:1.2.3.4
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@@ -1,6 +1,20 @@
|
|||||||
n2n:
|
version: '3.5'
|
||||||
image: vimagick/n2n
|
|
||||||
ports:
|
services:
|
||||||
- "5645:5645/udp"
|
|
||||||
- "7654:7654/udp"
|
supernode:
|
||||||
restart: unless-stopped
|
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
|
||||||
|
Reference in New Issue
Block a user