From 7f2a8bbe252e8cc34f76af0fb6700b2c51c9947c Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 12 Nov 1997 07:38:44 +0000 Subject: mention net.inet.ip.forwarding --- share/man/man8/afterboot.8 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'share/man') diff --git a/share/man/man8/afterboot.8 b/share/man/man8/afterboot.8 index 7878654b4a3..f25634f7f1f 100644 --- a/share/man/man8/afterboot.8 +++ b/share/man/man8/afterboot.8 @@ -115,6 +115,16 @@ and using and .Nm route add if you do not wish to reboot. +.Pp +If you wish to route packets between interfaces you do that by doing +.Bd -literal -offset indent +# sysctl -w net.inet.ip.forwarding=1 +.Ed +.Pp +early on in the boot process (ie. start of +.Pa /etc/netstart , +or by compiling a new kernel with the option GATEWAY. By default, +packets are not forwarded due to RFC requirements. \!\"-------------------------------------------------------------------------- .Ss Bind Name Server If you are using the Bind Name Server (DNS), check the -- cgit v1.2.3