Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jan 2000 10:52:10 -0600
From:      "Burke Gallagher" <burke@gallagher.chicago.il.us>
To:        "Eric Dannewitz" <ericdano@ncal.verio.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: natd problems
Message-ID:  <002601bf5541$b6384740$0200a8c0@burke.org>
References:  <Pine.GSO.4.05.10001020629330.11940-100000@shell1>

next in thread | previous in thread | raw e-mail | index | archive | help
I have found one error, and two possible typos, and one question about your
setup.

The error:
In the rc.conf file, there is an error in the natd_interface file it should
be the name of the interface not the IP address.
natd_interface="xl1"

The typos (could be in the rc.conf file or the message)
ifconfig_lx1   and
ifconfig_lx0
should not this be
ifconfig_xl0  and
ifconfig_xl1

the setup question:
your external interface uses UTP cabling.  does your internal network use
UTP or coax (currently the card is using coax)

Hope this helps
burke

----- Original Message -----
From: "Eric Dannewitz" <ericdano@ncal.verio.com>
To: <freebsd-questions@FreeBSD.ORG>
Sent: Sunday, January 02, 2000 8:34 AM
Subject: natd problems


> Ok, well, my Linux box that was doing NAT decided to kill itself for the
> next
> century. So, I decided I'd start the new year off right and jump into
> FreeBSD
> 3.2.
>
> Now, I have compiled the kernel to support IPFIREWALL and IPDIVERT.
> my rc.firewall file looks like:
> /sbin/ipfw -f flush
> /sbin/ipfw add divert natd all from any to any via xl1
> /sbin/ipfw add pass all from any to any
>
> I added
> natd 8668/divert
>
> to my /etc/services
>
> and my rc.conf file has the following:
>
> ifconfig_lo0="inet 127.0.0.1"
> ifconfig_lx1="inet 216.38.135.133 netmask 255.255.255.240"
                 ^
is this a type ifconfig_lx1,  should be ifconfig_xl1 ???

> defaultrouter="216.38.135.129"
> network_interfaces="xl1 xl0 lo0"
> ifconfig_lx0="inet 192.168.1.1 netmask 255.255.255.0"
                 ^
is this a type ifconfig_lx0,  should be ifconfig_xl0 ???

> firewall_enable="YES"
> firewall_script="/etc/rc.firewall"
> gateway_enable="YES"
> natd_program="/sbin/natd"
> natd_enable="YES"
> natd_interface="216.38.135.133"
                                  ^
ERROR HERE ====+
shoudl be  natd_interface="lx1"

> natd_flags=""                   # Additional flags for natd.
> tcp_extensions="NO"
>
> And finally my network cards are:
> routy# ifconfig -a
> xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
>         ether 00:10:4b:31:2d:60
>         media: 10base2/BNC

does the internal network use UTP (10BaseT) or coax (10Base2) ????


>         supported media: 10base2/BNC 10base5/AUI 10baseT/UTP <full-duplex>
>         10baseT/UTP <half-duplex> 10baseT/UTP
> xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 216.38.135.133 netmask 0xfffffff0 broadcast 216.38.135.143
>         ether 00:10:5a:1e:3c:64
>         media: 10baseT/UTP <half-duplex>
>         supported media: autoselect 100baseTX <full-duplex> 100baseTX
>         <half-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP
>         <half-duplex> 10baseT/UTP
> tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
> ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>         inet 127.0.0.1 netmask 0xff000000
>
> Any ideas? The config's external interface card works, but the internal
> one is all messed up............
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>



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?002601bf5541$b6384740$0200a8c0>