![Ubuntu 14.04 中没有 IP 转发](https://linux22.com/image/905895/Ubuntu%2014.04%20%E4%B8%AD%E6%B2%A1%E6%9C%89%20IP%20%E8%BD%AC%E5%8F%91.png)
我对 Linux 或 Ubuntu 不太熟悉。
我最近在HP Proliant 服务器。我的问题是我无法使用我的Windows 10 客户端。服务器可以访问互联网,客户端可以访问 Ubuntu 服务器,但不能访问互联网。IP 转发设置为“1”
{{
auto lo em2 em1
iface lo inet loopback
# The primary network interface
iface em2 inet static
address 192.168.178.5
netmask 255.255.255.0
network 192.168.178.0
broadcast 192.168.178.255
dns-nameserver 10.10.1.1
dns-nameserver 8.8.8.8
dns-nameserver 8.8.4.4
gateway 192.168.178.1
dns-domain vgg.net
dns-nameservers 10.10.1.1
dns-domain vgg.net localhost.localnet
# dns-* options are implemented by the resolvconf package, if installed
iface em1 inet static
address 10.10.1.1
netmask 255.255.0.0
network 10.10.1.0
broadcast 10.10.255.255
dns-nameserver 10.10.1.1
dns-nameserver 8.8.8.8
dns-nameserver 8.8.4.4
post-up iptables -t nat -F POSTROUTING
post-up iptables -t nat -A POSTROUTING -o em2 -j MASQUERADE
post-up iptables-restore < /etc/iptables.up.rules
dns-domain vgg.net localhost.localnet
}}