设置:
Router -> (eth0)Server(eth1) -> Switch -> devices
#/etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
#allow-hotplug br0
auto br0
iface br0 inet static
bridge_ports eth0 eth1
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
如何设置 iptables,以便连接到 eth1 的所有设备的 DNS 查询都转发到服务器本身?地址:192.168.1.2