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-14 14:55:27 +08:00
parent 1864774b53
commit 24352b6148

@ -42,6 +42,7 @@ $ ping 192.168.200.1
```bash
$ docker-compose up -d edge
$ sysctl -w net.ipv4.ip_forward=1
$ iptables -t filter -A FORWARD -j ACCEPT
$ iptables -t nat -A POSTROUTING -o n2n0 -j MASQUERADE
```
@ -53,4 +54,6 @@ $ ping 192.168.100.1
$ nmap -sP 192.168.100.0/24
```
> Static routes can be added on your home router.
[1]: https://www.ntop.org/products/n2n/