netsettings如下:
ETH0|192.168.1.1|255.255.255.0|00:14:97:C4:B5:C7
ETH1|10.0.0.157|255.0.0.0|00:56:2C:4F:C2:E8|10.0.0.2|static
DNS|202.96.64.68|
PPPOE||
PPTP|||DISABLE
OPENVPN|||DISABLE
DDNS|dyndns.org||||disable
DHCPD|192.168.1.2|192.168.1.254|255.255.255.0|192.168.1.1|enable|x.x.x.x|
ETH1|10.0.0.157|255.0.0.0|00:56:2C:4F:C2:E8|10.0.0.2|static
DNS|202.96.64.68|
PPPOE||
PPTP|||DISABLE
OPENVPN|||DISABLE
DDNS|dyndns.org||||disable
DHCPD|192.168.1.2|192.168.1.254|255.255.255.0|192.168.1.1|enable|x.x.x.x|
板子配置情况和网络拓扑:
root:~> iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- 192.168.1.0/24 anywhere
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- 192.168.1.0/24 anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
target prot opt source destination
root:~> ifconfig
eth0 Link encap:Ethernet HWaddr 00:14:97:C4:B5:C7
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20852 errors:0 dropped:0 overruns:0 frame:0
TX packets:22741 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7367562 (7.0 MiB) TX bytes:24620128 (23.4 MiB)
Interrupt:53 Base address:0x300
eth0 Link encap:Ethernet HWaddr 00:14:97:C4:B5:C7
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20852 errors:0 dropped:0 overruns:0 frame:0
TX packets:22741 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7367562 (7.0 MiB) TX bytes:24620128 (23.4 MiB)
Interrupt:53 Base address:0x300
eth1 Link encap:Ethernet HWaddr 00:56:2C:4F:C2:E8
inet addr:10.0.0.157 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36164 errors:0 dropped:0 overruns:0 frame:0
TX packets:20551 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28057068 (26.7 MiB) TX bytes:7204220 (6.8 MiB)
inet addr:10.0.0.157 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36164 errors:0 dropped:0 overruns:0 frame:0
TX packets:20551 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28057068 (26.7 MiB) TX bytes:7204220 (6.8 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)