各位好
想在家中建置NAT Server管理家中网络
目前走线是
中华电信->中华电信AP(三楼)->Linux主机eth0(一楼)
Linux主机eth1->TP-LINK(WAN)
TP-LINK(LAN)->其他主机
TP-LINK(WR740N)还有提供wifi服务
目前Linux主机设定pppoe中华电信固定IP上网(OK)
eth0设定如下
auto eth0
iface eth0 inet manual
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up
provider dsl-provider
eth1设定如下
iface eth1 inet static
address 10.0.10.1
broadcast 10.0.10.255
netmask 255.255.255.0
network 10.0.10.0
TP-LINK设定如下
LAN
IP Address: 192.168.0.1
Subnet Mask: 255.255.255.0
WAN
IP Address: 10.0.10.2 Static IP
Subnet Mask: 255.255.255.0
Default Gateway: 10.0.10.1
Primary DNS: 8.8.8.8
iptables设定
iptables