Updated 网络不允许桥接的情况下,如何在虚拟机运行udp2raw (markdown)

wangyu- 2017-11-18 20:13:19 -08:00
parent 564e49ccce
commit 20903684c9

@ -13,7 +13,7 @@ pfctl -f 1.tmp.rule -e #以上4条命令是为了开启nat
在虚拟机中运行: 在虚拟机中运行:
``` ```
ip route default via 192.168.56.1 dev eth0 ip route default via 192.168.56.1 dev eth0 #添加网关
echo `nameserver 8.8.8.8` echo `nameserver 8.8.8.8` >>/etc/resolv.conf #添加dns
``` ```