update README

This commit is contained in:
Jason
2020-04-29 17:05:54 +08:00
parent d9334999ba
commit efa2708449
2 changed files with 5 additions and 4 deletions
+5 -4
View File
@@ -55,8 +55,8 @@ Create a `macvlan` network called `switch`
```sh
docker network create -d macvlan \
--subnet=172.16.1.0/24 \
--gateway=172.16.1.1 \
--subnet=10.0.0.0/24 \
--gateway=10.0.0.1 \
-o parent=eth0 \
switch
```
@@ -67,7 +67,7 @@ Pull `tun2socks` docker image
docker pull xjasonlyu/tun2socks
```
Run `tun2socks` as a gateway (e.g. 172.16.1.2)
Run `tun2socks` as a gateway (e.g. 10.0.0.2)
```sh
docker run -d \
@@ -75,7 +75,8 @@ docker run -d \
--name tun2socks \
--ip 10.0.0.2 \
--privileged \
--sysctl net.ipv4.ip_forward=1
--restart always \
--sysctl net.ipv4.ip_forward=1 \
xjasonlyu/tun2socks
```
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 730 KiB

After

Width:  |  Height:  |  Size: 1.0 MiB