Subject: Re: IPnat used as a throttle, net.inet.ip.forwarding, installboot, and dhclient questions....
To: James Webster <james3838@tsi-net.com>
From: Luke Mewburn <lukem@goanna.cs.rmit.edu.au>
List: netbsd-help
Date: 04/25/1999 17:23:27
"James Webster" writes:
> 1) Is there some way to use IPnat (or maybe something else) to throttle
> the bandwidth?  I want to limit the speed of my internal network to
> around 256k, as the external is 1.1Mbs and is used by other people.

not sure about this. i've been meaning to provide application-level
mods to ftp and ftpd to support this for a while...

> 2) I've got IPnat working, but only after sysctl -w =
> net.inet.ip.forwarding=1.  My problem is that it is reset to 0 every
> time I reboot.  How do I change this permanently.  I saw something about
> option GATEWAY in the man pages, but that sounded like rebuilding the
> kernel (something I haven't done before).

add it to /etc/netstart.local

> 3) Upon booting, I get a warning that I have an old NetBSD or FreeBSD
> boot partition, and should use installboot to fix it.  The installboot
> man page doesn't seem clear (at least to me) how to fix the problem.  My
> understanding is that I need to change the boot partition ID from 165 to
> 169, but this man page doesn't say how. =20

i use `fdisk -u'.

> 4) I'm currently using dhclient to obtain a DHCP address for my internet
> side network.  I added /sbin/dhclient ep0 to my netstart.local file.
> Problem is, every time I boot, it claims it can't read or create
> /var/db/dhclient.leases.  This file does exist, and /sbin/dhclient will
> start under root after I start up.  Do I need to make any permission
> changes to this file so that dhclient can use it to startup
> automatically?

my setup is similar to this and i don't recall having to make any
special changes like this.