Update net.inet.ip.forwarding example to give right value.
Indicate that gateway in /etc/sysconfig is *really* the correct way if you have an /etc/sysconfig file. Other small tweaks. Requested by: Guy Helmer <ghelmer@alpha.dsu.edu>
This commit is contained in:
parent
58ffe17c27
commit
c786a9c0ee
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=373
1 changed files with 9 additions and 4 deletions
|
@ -148,13 +148,18 @@ Internet RFC requirements for Internet hosts (see RFC's 1009
|
|||
[Requirements for Internet Hosts -- Communication Layers],
|
||||
and perhaps 1127 [A Perspective on the Host Requirements
|
||||
RFCs]), so if you want your FreeBSD SLIP Server to act as a
|
||||
router, you will have to add the line
|
||||
router, you will have to edit the <tt>/etc/sysconfig</tt> file and change
|
||||
the setting of the <bf>gateway</bf> variable to <tt>YES</tt>. If you
|
||||
have an older system which does not have the <tt>/etc/sysconfig</tt>
|
||||
file, then add the following command:
|
||||
<verb>
|
||||
sysctl -w net.inet.ip.forwarding = 0
|
||||
sysctl -w net.inet.ip.forwarding = 1
|
||||
</verb>
|
||||
to your rc.local file.
|
||||
to your <tt>/etc/rc.local</tt> file.
|
||||
|
||||
You will notice that near the end of the default kernel configuration
|
||||
<p>You will then need to reboot for the new settings to take effect.
|
||||
|
||||
<p>You will notice that near the end of the default kernel configuration
|
||||
file (<tt>/sys/i386/conf/GENERIC</tt>) is a line that reads:
|
||||
|
||||
<tscreen><verb>
|
||||
|
|
Loading…
Reference in a new issue