Newbie 'natd' problem

Newbie 'natd' problem

Post by Marc Michael » Sun, 16 Jan 2000 04:00:00



I've recently abandoned the Microsoft NT ship and I've been trying to get my
FreeBSD box configured to use with a cable modem.

I think I've followed the 'natd' man pages and my FreeBSD book's
instructions to the letter but I'm receiving the following errors on
startup:
    natd_enable not found
    natd_interface not found

I have two NIC's:  fxp0 - internal network, IP 10.0.0.51
                             fxp1 - cable modem, DHCP

I've gotten DHCP working and I'm pinging the internet from my BSD box ok.
But I can't ping anything from my Win98 client.

-  Per the instructions, I set up my kernel with:  options IPFIREWALL  and
options IPDIVERT (I also have IPFIREWALL_DEFAULT_TO_ACCEPT).  I compiled and
installed the kernel, and restarted (of course)
-  I ensured my etc/services database contained: netd    8668/divert
- my /etc/rc.firewall script has:
        /sbin/ipfw -f flush
        /sbin/ipfw add divert natd all from any to any via fxp1
        /sbin/ipfw add pass all from any to any
- my rc.conf file has:
        local_startup="usr/local/etc/rc.d"
        ifconfig_fxp0="inet 10.0.0.51 netmask 255.255.255.0"
        ifconfig_lo0="inet 127.0.0.1"
        defaultrouter="NO"
        network_interfaces="fxp0 fxp1 lo0"
        gateway_enable="YES"
        named_enable="NO"
        firewall_enable="YES"
        firewall="open"
        natd_enable="YES"
        natd_interface="fxp1"

In researching other postings, I see users mentioning natd.conf.  My system
doesn't have this file at all.  Is this why natd isn't starting?  Is there a
script file I should be editing?  Any assistance would be greatly
appreciated as I'm extremely e*d about joining the FreeBSD community.

Thanks again!

 
 
 

Newbie 'natd' problem

Post by Pau » Sun, 16 Jan 2000 04:00:00




Quote:>I've gotten DHCP working and I'm pinging the internet from my BSD box
>ok. But I can't ping anything from my Win98 client.

Ok, DHCP. Now where below is the line 'ifconfig_fxp1="DHCP"' to get that
working? I'm wondering because it looks like your fxp1 NIC is not being
set up at all with IP and netmask and all that jazz and that may be what
is causing NATD to fail like it does...

Quote:>        local_startup="usr/local/etc/rc.d"
>        ifconfig_fxp0="inet 10.0.0.51 netmask 255.255.255.0"
>        ifconfig_lo0="inet 127.0.0.1"
>        defaultrouter="NO"
>        network_interfaces="fxp0 fxp1 lo0"
>        gateway_enable="YES"
>        named_enable="NO"
>        firewall_enable="YES"
>        firewall="open"
>        natd_enable="YES"
>        natd_interface="fxp1"

You can do without the natd.conf unless you need special natd commands.
In that case create it. Check 'man natd' for info on what commands you
can put in there.

Good luck!
--
  __
 /_/             Creator/Maintainer
/aul       "A Deamon's Guide To FreeBSD"
http://homes.acmecity.com/looneytunes/lunar/315/

 
 
 

Newbie 'natd' problem

Post by <bru.. » Mon, 17 Jan 2000 04:00:00


:
:     natd_enable not found
:     natd_interface not found
:
        Hmmm. When do these show up? There really isn't any reason
   for them to appear. Also, what version of FreeBSD are you running,
   and how was it installed?
:
: I have two NIC's:  fxp0 - internal network, IP 10.0.0.51
:                              fxp1 - cable modem, DHCP
:
: - my /etc/rc.firewall script has:
:         /sbin/ipfw -f flush
:         /sbin/ipfw add divert natd all from any to any via fxp1
:         /sbin/ipfw add pass all from any to any
:
        Okay, depending on which version of FBSD you have, natd_enable
   should trigger the "divert" for the firewall.

        Firewall "open" should trigger the rest.
:
: - my rc.conf file has:
:         defaultrouter="NO"
:
        You might want to enable this.
:
: script file I should be editing?
:
        I don't believe so. The divert is all you really want/need.

   What does the output of "ifconfig -a" show? Can you ping between your
   local machines on the private network? Oh, make sure your FBSD box
   doesn't have "routed -q", you want route information to be send to
   your Windoze boxes.

                                                        Bruce

 
 
 

1. Newbie startx problem: can't load library 'libXpm.so.4'

: ..... XFree86 version before reinstalling 3.2A).  From the
: command line, I can type 'X' and get a graphical display.  But when I
: run startx, I get the same display as when I type 'X', but it dies
: after a few seconds and comes back to the text mode prompt.  I'm doing
: this as root.  In my home (/root) directory, I stumbled upon a file
: called .xsession-errors with the contents:

: /usr/X11R6/bin/fvwm: can't load library 'libXpm.so.4'

: Using find / -name libXpm.so.4 -print, I verified that the file is not
: present on my machine.  I'm assuming this is the source of my problem.
: Can someone point me to where I might find this file?

You SHOULD have this. Whether or not it can be found is another
question. 'libXpm.so' should be in either (I don't recall exactly)
'/usr/X11R6/lib' or in '/usr/X11R6/lib/X11'.

For this to be found, it has be under '/usr/lib'. I believe that
'/usr/lib/X11' is the exact subdirectory. The way to fix this is
to create a symbolic link using the following command from the
subdirectory '/usr/lib':

        ln -s ../X11R6/lib/X11 X11

I had a similar problem with X11 header files while trying to
compile GIMP this afternoon. The symbolic link pointing from
'/usr/X11R6/include/X11' to '/usr/include/X11' was missing
from a Red Hat 4.1 installation (Actually, a Cheap Bytes
knock-off of RH4.1) that I had just set up.

Edward

2. athena plotter widget

3. IPFW, DHCP, NATD and the 'me' identifier

4. Yellow Dog Linux Questions

5. Simple 'sed', 'awk', 'cut' problem

6. Confusing routers attack report

7. Help: problems with 'w', 'who' and 'last'

8. Dialin PPP Server

9. Problems with installing two Linux's - 'setup' and 'lilo'

10. Newbie problem: how do I get 'startx' to point to KDE/Gnome automatically?

11. Newbie how to 'make config/clean etc.' problems

12. Newbie C Problem... 'tm'

13. Problems running 'make dep' (Newbie)