Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d do not let 127.0.0.0/8 leave the node. based on RF...
details: https://anonhg.NetBSD.org/src/rev/ecc923137d81
branches: trunk
changeset: 485950:ecc923137d81
user: itojun <itojun%NetBSD.org@localhost>
date: Tue May 09 10:49:26 2000 +0000
description:
do not let 127.0.0.0/8 leave the node. based on RFC1122.
diffstat:
etc/rc.d/network | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 891daa01f903 -r ecc923137d81 etc/rc.d/network
--- a/etc/rc.d/network Tue May 09 10:29:01 2000 +0000
+++ b/etc/rc.d/network Tue May 09 10:49:26 2000 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: network,v 1.9 2000/04/29 06:01:08 veego Exp $
+# $NetBSD: network,v 1.10 2000/05/09 10:49:26 itojun Exp $
#
# PROVIDE: network
@@ -62,6 +62,10 @@
#
ifconfig lo0 inet 127.0.0.1
+ # According to RFC1122, 127.0.0.0/8 should not leave the node.
+ #
+ route add -inet 127.0.0.0 -netmask 0xff000000 127.0.0.1 -reject
+
# Configure all of the network interfaces listed in $net_interfaces;
# if $auto_ifconfig is YES, grab all interfaces from ifconfig.
# In the following, "xxN" stands in for interface names, like "le0".
Home |
Main Index |
Thread Index |
Old Index