Hello,
David Brown a écrit :
> I've got a routing issue that I can't quite figure out. My (very
> simplified) setup is this:
>
> Box A is on 192.168.0.1 and is the router, dns server, etc. for the
> 192.168.0.x network. It has other interfaces as well, for access
> further into the network and out onto the internet. iptables are set to
> allow all traffic in, out and forwarded. There is a "route -net
> 192.168.1.0/24 gw 192.168.0.2" in the route table.
Don't you mean "192.168.1.0/24 gw 192.168.0.3" ?
> Box B is on 192.168.0.2 with 192.168.0.1 as the default gateway. It's a
> client machine on the 192.168.0.x network.
>
> Box C is a router with two ports. One is at 192.168.0.3, the other is
> 192.168.1.1. iptables are set to allow all traffic in, out and
> forwarded. The default route is set to 192.168.0.1 (box A).
>
> Box D is on 192.168.1.2 with 192.168.1.1 as the default gateway. It's a
> client machine on the 192.168.1.x network.
>
>
> If I log into box B, and type "ping D" I get a response. The route
> flow is B to A (the default gateway), then to C (due to the specific
> route command), then to D. I've confirmed this path with traceroute.
>
> If I log into box D and type "ping B", I get no response. Traceroute
> shows the flow from D to C as expected, but nothing beyond that. I know
> that the packet is going directly from C to B (see below for how I
> know), as expected. But somehow the reply from box B is not getting
> back to D.
>
> (If I ping from box D to something outside these networks, accessed
> through router A, it works fine.)
What about ping A from D ? I guess it works fine ?
> I can't see why I can ping one way, and not the other.
Is there some NAT or stateful filtering on the box A and box C ? These
don't work well with asymmetric routing.
Can you run tcpdump on the boxes and see what's going on ?
> If I run "route -net 192.168.1.0/24 gw 192.168.0.2" on B, then pings
> work properly both ways.
Then I guess it rules out box B not replying to ping at all.
|