Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 1998 11:05:10 -0400 (EDT)
From:      Nathan Stratton <nathan@skipper.robotics.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   NAT help
Message-ID:  <Pine.BSF.3.96.980610105333.1145A-100000@skipper.robotics.net>

next in thread | raw e-mail | index | archive | help

I am trying to get NAT working on my system and I am running into a few
problems. The NAT box is running FreeBSD 2.2.6 and is connected to the
internet with a 10 meg ethernet link through interface vx0
(24.3.62.76). I also have a 10 meg segment with 2 windoz boxes
connected to ep0 on 209.166.48/24 (unrouted on the internet).

So what I want to be able to do is telnet and read mail from the outside
on the windoz boxes using natd. I have ipforwarding and divert configured
in the kernel. 

This is what I have in ipfw:

01000 allow ip from any to any via lo0
01010 deny ip from 127.0.0.0/8 to 127.0.0.0/8
65000 allow ip from any to any
65100 divert 6668 ip from any to any via vx0
65535 deny ip from any to any    

my nat command is:

natd -unregistered_only -interface vx0

netstat -nr looks like:

Destination        Gateway            Flags     Refs     Use     Netif
Expire
default            24.3.62.1          UGSc       32        5       vx0
24.3.62/24         link#1             UC          0        0
24.3.62.1          8:0:3e:0:5e:7b     UHLW       33        0       vx0 515
24.3.62.76         0:10:4b:24:5e:f5   UHLW        1      839       lo0
127.0.0.1          127.0.0.1          UH          8       88       lo0
209.166.48         link#3             UC          0        0
209.166.48.20      0:10:4b:9c:c0:dd   UHLW        6    23305       ep0 989 

If you have any idea on how to make this work please let me know.

><>
Nathan Stratton				Telecom & ISP Consulting
www.robotics.net	 		nathan@robotics.net



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?Pine.BSF.3.96.980610105333.1145A-100000>