Hi all.
I have this network:
|
|
|----------------------------|
| Linksys Route=R |
|----------------------------|
| |
| |-----|
| | B |
| |-----|
|
|
|---------------------------eth0|
| F=(RH Firewall/Route) |
|---------------------------eth1|
|
|
|-----|
| C |
|-----|
>From B I can ping F(192.168.1.2) and internet, not C.
>From F I can ping B (192.168.1.3) and internet as well as itself eth0
and eth1 (192.168.1.2 and 192.168.2.2). But from F I can not ping C.
>From C I can not ping F (192.168.1.2 and 192.168.2.2), nor internet.
F has ipv4 forward=1
I expected that B and C and F can ping each other and the internet.
What is the reason? There is no firewall on F. (iptables is down)
IP addresses:
R = 198.168.1.1
B = 198.168.1.3
F = 198.168.1.2 eth0
198.168.2.2 eth1
C = 198.168.2.3
route table of F:
route add -net 192.168.2.0 gw 192.168.2.2 nemask 255.255.255.0 dev eth0
route add default gw 192.168.1.2 dev eth1
route add default gw 192.168.1.1 dev eth0
route add -net 127.0.0.0 netmask 255.0.0.0 dev lo
ifconfig of F:
eth0 Link encap:Ethernet HWaddr 00:16:09:73:1E

1
inet addr:192.168.1.108 Bcast:192.168.1.255
Mask:255.255.252.0
inet6 addr: fe80::206:29ff:fe73:5ed2/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:17 dropped:0 overruns:0 carrier:17
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:882 (882.0 b)
eth1 Link encap:Ethernet HWaddr 00:41:2A:A5:F1:AA
inet addr:192.168.2.108 Bcast:192.168.2.255
Mask:255.255.252.0
inet6 addr: fe80::240:33ff:fea4:f1aa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2141 (2.0 KiB) TX bytes:714 (714.0 b)
Interrupt:9 Base address:0xee00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3463 errors:0 dropped:0 overruns:0 frame:0
TX packets:3463 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4974862 (4.7 MiB) TX bytes:4974862 (4.7 MiB)
Thanks.