Hello All.

I am new to this forum and am looking for some assistance.

I am setting up a home network in the following manner:

Cable Modem<----->(Eth0) Linux Firewall (Eth1)<----->(WAN)Wireless Router (LAN)<----->Clients

Currently I have a WRT54G that is mimicing a modem. To that eth0 is connected and is fully operable. eth1 is connected to the D-link wireless router WAN port. A XP machine is connected to one of the D-link LAN ports.

Here is the IP mapping

eth0=Dynamic from WRT(currently 124.168.0.179)
eth1=192.168.0.1/24
WAN=192.168.0.2/24
LAN= 192.168.1.0/24
XP = 192.168.1.2

Here is the route config:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
124.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 192.168.0.1 255.255.255.0 UG 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 124.168.0.1 0.0.0.0 UG 0 0 0 eth0

Here is the ifconfig on the Linux:

eth0 Link encap:Ethernet HWaddr 00:40:CA:2A:68:7A
inet addr:124.168.0.179 Bcast:124.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::240:caff:fe2a:687a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13726 errors:0 dropped:0 overruns:0 frame:0
TX packets:8688 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6430885 (6.1 MiB) TX bytes:1723536 (1.6 MiB)
Interrupt:185 Base address:0x6000

eth1 Link encap:Ethernet HWaddr 00:90:27:A8:2E:B4
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::290:27ff:fea8:2eb4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:118 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1204 (1.1 KiB) TX bytes:18496 (18.0 KiB)

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:1589 errors:0 dropped:0 overruns:0 frame:0
TX packets:1589 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2593364 (2.4 MiB) TX bytes:2593364 (2.4 MiB)

virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:7434 (7.2 KiB)

The D-link config is as follows:

WAN=192.168.0.2
LAN= 192.168.1.0/24

Here is the ipconfig on the XP:

Windows IP Configuration


Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

Port Forwarding enabled:

# Controls IP packet forwarding
net.ipv4.ip_forward = 1

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

Currently on the Linux box I have internet connectivity and can ping eth0, eth1, and WAN.
On the XP I can ping WAN and eth1 but have no internet connectivity of course.

I know it is something painfully obvious but I cannot get the LAN to get to eth0 and vice versa.

Here are the Ping results from the Linux box:

[root@Box network-scripts]# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.

--- 192.168.1.2 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms

[root@Box network-scripts]# ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=2.76 ms
64 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=1.76 ms

--- 192.168.0.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 1.766/2.266/2.767/0.502 ms

[root@Box network-scripts]# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.161 ms

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.161/0.161/0.161/0.000 ms

[root@Box network-scripts]# ping 124.168.0.179
PING 124.168.0.179 (124.168.0.179) 56(84) bytes of data.
64 bytes from 124.168.0.179: icmp_seq=1 ttl=64 time=0.156 ms

--- 124.168.0.179 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.156/0.156/0.156/0.000 ms


Here are the XP ping results:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\TJ>ping 192.168.0.1

Pinging 192.168.0.1 with 32 bytes of data:

Reply from 192.168.0.1: bytes=32 time=2ms TTL=63
Reply from 192.168.0.1: bytes=32 time=1ms TTL=63
Reply from 192.168.0.1: bytes=32 time=2ms TTL=63
Reply from 192.168.0.1: bytes=32 time=1ms TTL=63

Ping statistics for 192.168.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 2ms, Average = 1ms

C:\Documents and Settings\TJ>ping 192.168.0.2

Pinging 192.168.0.2 with 32 bytes of data:

Reply from 192.168.0.2: bytes=32 time<1ms TTL=64
Reply from 192.168.0.2: bytes=32 time<1ms TTL=64
Reply from 192.168.0.2: bytes=32 time<1ms TTL=64
Reply from 192.168.0.2: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Documents and Settings\TJ>ping 124.168.0.179

Pinging 124.168.0.179 with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 124.168.0.179:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

Thanks in advance for your help.