Skip to contentSkip to conversation

NATing problems

LARTC Mike Fedyk 1 participant 1 message Mar 19, 2001

lore
Share & tools
lore

Mike Fedyk

author
#0 lore raw

Hi,

I've looked in the archives, and I haven't found anything that deals with what I'm seeing. :(

I have a briged dsl with 5 IPs. I've been using one of them for over a year without trouble.

Let me start with a diagram:

                 64.x.x.233
                NATing sdsl
                 10.1.1.1
                     \
      eth1:         eth2:
   63.x.x.202     10.1.1.2
             \   /
              \ /
          Linux 2.2.18
	       |
	      eth0:
	      /   \
	10.0.0.1  10.0.0.2

65.x.x.31 = outside comp
tcpdump version 3.4a6
libpcap version 0.4a6

ip ro add nat 63.x.x.203 via 10.0.0.3
#now it will respond to arps on eth1

ip ru add from 10.0.0.3 nat 63.x.x.203
#this is supposed to make the replies come back, but it doesn't

When I ping from outside host I can see the ARPs, and the incomming echo requests, but no responses. Also, if a ping comes in on eth1 to 63.x.x.203 it will show comming in but won't show going out on eth0.

Take a look at these cache lines:
63.x.x.203 from 65.x.x.31 via 10.0.0.3 dev eth0 src 63.x.x.202 \cache <dst-nat> mtu 1500 rtt 375ms iif eth1

local 10.1.1.2 from 65.x.x.31 dev lo src 10.1.1.2 \ cache <local> iif
eth2

65.x.x.31 from 10.1.1.2 tos lowdelay via 10.1.1.1 dev eth2 \ cache mtu
1500 rtt 375ms

Is linux router trying to send packets to 10.0.0.3 with src as 63.x.x.202?

I'm trying to get this working by monday, I home someone is watching today.

Mike

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/