Subject: IPnat used as a throttle, net.inet.ip.forwarding, installboot, and dhclient questions....
To: None <netbsd-help@netbsd.org>
From: James Webster <james3838@tsi-net.com>
List: netbsd-help
Date: 04/24/1999 15:04:07
This is a multi-part message in MIME format.
------=_NextPart_000_0026_01BE8E63.B3AE3E80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I'm putting together a new gateway server to replace a proxy server I =
had up. In the process, I have run into few questions/problems:
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.
2) I've got IPnat working, but only after sysctl -w =
net.inet.ip.forwarding=3D1. 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).
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
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?
Thanks,
James
------=_NextPart_000_0026_01BE8E63.B3AE3E80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2014.210" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>I'm putting together a new gateway server to replace =
a proxy=20
server I had up. In the process, I have run into few=20
questions/problems:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>1) Is there some way to use IPnat (or maybe =
something else) to=20
throttle the bandwidth? I want to limit the speed of my internal =
network=20
to around 256k, as the external is 1.1Mbs and is used by other=20
people.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>2) I've got IPnat working, but only after sysctl -w=20
net.inet.ip.forwarding=3D1. My problem is that it is reset to 0 =
every time I=20
reboot. How do I change this permanently. I saw something =
about=20
option GATEWAY in the man pages, but that sounded like rebuilding the =
kernel=20
(something I haven't done before).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>3) Upon booting, I get a warning that I have an old =
NetBSD or=20
FreeBSD boot partition, and should use installboot to fix it. The=20
installboot man page doesn't seem clear (at least to me) how to fix the=20
problem. My understanding is that I need to change the boot =
partition ID=20
from 165 to 169, but this man page doesn't say how. </FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>4) I'm currently using dhclient to obtain a DHCP =
address for=20
my internet side network. I added /sbin/dhclient ep0 to my =
netstart.local=20
file. Problem is, every time I boot, it claims it can't read or =
create=20
/var/db/dhclient.leases. This file does exist, and /sbin/dhclient =
will=20
start under root after I start up. Do I need to make any =
permission=20
changes to this file so that dhclient can use it to startup=20
automatically?</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>Thanks,</FONT></DIV>
<DIV><FONT size=3D2>James</FONT></DIV></BODY></HTML>
------=_NextPart_000_0026_01BE8E63.B3AE3E80--