1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-27 09:18:43 +00:00

update n2n

This commit is contained in:
kev 2019-07-10 01:59:59 +08:00
parent ff937c77a4
commit 79e13d6dde

@ -15,13 +15,13 @@ application level.
................................ ................................
``` ```
## Supernode (1.2.3.4) ## Supernode (eth0:1.2.3.4)
```bash ```bash
$ docker-compose up -d supernode $ docker-compose up -d supernode
``` ```
## Edge (192.168.1.23) ## Edge (eth0:192.168.1.23/24, n2n0:192.168.100.x/24)
```bash ```bash
$ docker-compose up -d edge $ docker-compose up -d edge
@ -29,10 +29,11 @@ $ sysctl -w net.ipv4.ip_forward=1
$ iptables -t nat -A POSTROUTING -o n2n0 -j MASQUERADE $ iptables -t nat -A POSTROUTING -o n2n0 -j MASQUERADE
``` ```
## Client (192.168.1.45) ## Client (eth0:192.168.1.45/24)
```bash ```bash
$ ip route add 192.168.100.0/24 via 192.168.1.23 $ ip route add 192.168.100.0/24 via 192.168.1.23
$ nmap -sP 192.168.100.0/24
``` ```
[1]: https://www.ntop.org/products/n2n/ [1]: https://www.ntop.org/products/n2n/