Port-amiga archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NAT Config Problems



Hi,

I've gotten NetBSD 1.3 installed on my Amiga with two Ariadne's in it, one
connected to a static IP address on the Net, the other connected to my LAN.
They both work flawless with an httpd proxy and I can telnet in on one and
out on the other.

Now, I'm trying to get NAT to work.  My Ethernet setup:

#thecreation:/home/emiller> ifconfig le0
le0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: autoselect status: active
        inet 198.109.165.183 netmask 0xffffffe0 broadcast 198.109.165.191

#thecreation:/home/emiller> ifconfig le1
le1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: autoselect status: active
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255

My ipnat.conf file:

map le0 192.168.0.1/24 -> 198.109.165.183/32 portmap tcp/udp 10000:11000
map le0 192.168.0.1/24 -> 198.109.165.183/32

I basically want everything that comes into le1 that's headed for the
Internet to be translated to come out with a return address of my static IP
address on le0.  Am I doing something wrong here?  I've switched the le0 to
le1 in the ipnat.conf file and no change.

With the ipnat.conf file set with le0 in the map statement, when I telnet
to 192.168.0.1 from my Mac (set to 192.168.0.2) I get:

#thecreation:/etc> ipnat -l
List of active MAP/Redirect filters:
map le0 192.168.0.0/24  -> 198.109.165.183/32  portmap tcp/udp 10000:11000
map le0 192.168.0.0/24  -> 198.109.165.183/32

List of active sessions:
MAP 192.168.0.1     23    <- -> 198.109.165.183 10000 [192.168.0.2 2056]
112 0 d274

This works fine, but if I telnet to anything else, it immediately drops the
connection because DNS isn't working.  I can even telnet to an IP address
and it immediately drops.

By the way, netstat -r -n returns (198.109.165.161 is a router):

Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
default            198.109.165.161    UGS         4    26140      -  le0
127.0.0.1          127.0.0.1          UH          0      106      -  lo0
192.168            link#2             UC          0        0      -  le1
192.168.0.1        00:60:30:00:22:d0  UHL         0      298      -  lo0
192.168.0.2        00:05:02:80:19:04  UHL         3    23489      -  le1
192.168.0.255      link#2             UHL         1      230      -  le1
198.109.165.160/27 link#1             UC          0        0      -  le0
198.109.165.161    00:00:0c:5b:ec:f8  UHL         1        0      -  le0

XNS:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

ISO:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

X.25:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

AppleTalk:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface



Anyone know what I'm doing wrong?

Thanks!

Eric

http://www.thecreation.com/~emiller
emiller%thecreation.com@localhost

Join AppleCore!  http://www.thecreation.com/applecore
(This site is not complete, but send me E-Mail if you want more information)





Home | Main Index | Thread Index | Old Index