Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 1998 00:38:33 -0700
From:      "Daniel Keller" <dkeller@psln.com>
To:        "FreeBSD Questions List" <freebsd-questions@FreeBSD.ORG>
Subject:   natd packets never return to original host?
Message-ID:  <000001bda4c3$4023ade0$743d9bce@g6200>

next in thread | raw e-mail | index | archive | help
Hi,
I am having some problems getting natd working. I have one computer
(192.168.1.1.) which is attached to the internet by a dial up account to my
ISP and to another computer (192.168.1.2) by Ethernet. I want 192.168.1.2 to
use 192.168.1.1 as a gateway to the internet. I have ipfw and natd both
installed and working and the two computers can communicate (I can telnet
from one to the other fine). I start by doing:

ipfw flush
ipfw add divert 32000 ip from any to any via ed0
ipfw add pass ip from any to any
natd -port 32000 -interface ed0 -verbose

when I do this and try to ping 206.99.118.101 (my ISP) from 192.168.1.2 ping
just does nothing al all and I get a bunch of messages on the computer
running natd (192.168.1.1). I get the following messages:

Out [TCP] 192.168.1.1:1115 -> 192.168.1.2:23 aliased to
          192.168.1.1:1115 -> 192.168.1.2:23
In [TCP] 192.168.1.2:23 -> 192.168.1.1:1115 aliased to
         192.168.1.2:23 -> 192.168.1.1:1115
In [ICMP] 192.168.1.2 -> 206.99.118.101 aliased to
          192.168.1.2 -> 206.99.118.101
...


for some reason it seems like the addresses are be aliased to the same thing
as they originally were (i.e. they are not being changed at all). I have
also tried using "natd -port 32000 -a 192.168.1.1 -verbose" and "natd -port
32000 -a 192.168.1.2 -verbose". I have no idea what to do at this point and
I'm sorry this message it a bit unclear, I've been messing with this all day
and am a bit tired. Any suggestions would be greatly appreciated.
Thanks,
Daniel Keller


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001bda4c3$4023ade0$743d9bce>