update readme

This commit is contained in:
netbyte 2022-02-10 17:39:55 +08:00
parent 0fe90ea6b6
commit 0dafbc8b98

View File

@ -71,7 +71,8 @@ sudo ./vtun-linux-amd64 -S -l=:3001 -c=172.16.0.1/24 -k=123456
```
sudo echo 1 > /proc/sys/net/ipv4/ip_forward
sudo sysctl -p
sudo iptables -t nat -A POSTROUTING -s 172.16.0.0/24 -o ens3 -j MASQUERADE
// eth0 is the name of your public network interface
sudo iptables -t nat -A POSTROUTING -s 172.16.0.0/24 -o eth0 -j MASQUERADE
```
## Docker