配置iptables
sudo iptables -t nat -A POSTROUTING -s "192.168.0.1/24" -o eth0 -j MASQUERADE
打開轉發功能
取消/etc/resolv.conf裏面net.ipv4.ip_forward = 1的註釋
使命令生效:
sudo sysctl -p
關鍵:關閉Ubuntu 16.04 的防火牆
sudo ufw disable
sudo iptables -t nat -A POSTROUTING -s "192.168.0.1/24" -o eth0 -j MASQUERADE
取消/etc/resolv.conf裏面net.ipv4.ip_forward = 1的註釋
使命令生效:
sudo sysctl -p
sudo ufw disable
以下是在創建應用程序桌面快捷方式文件的內容要求: [Desktop Entry] 文件頭 Encoding 編碼格式 Name 應用名稱 Name[xx] 不同語言的應用名稱 Comment 描述 E