mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-02-11 17:49:35 +08:00
Updated 网络不允许桥接的情况下,如何在虚拟机运行udp2raw (markdown)
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
|
||||
echo `nameserver 8.8.8.8`
|
||||
ip route default via 192.168.56.1 dev eth0 #添加网关
|
||||
echo `nameserver 8.8.8.8` >>/etc/resolv.conf #添加dns
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user