summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2004-12-04 00:17:06 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2004-12-04 00:17:06 +0000
commit88f83e9daaa4f958b23cc66880f60ed1e236b2a5 (patch)
tree6ccd13694ef9038400fcad6f1b53d6566c7f2a26
parentfae7ab50e9f9173b6178f0f637a9cb327ec548bf (diff)
remove "route $hostname 127.0.0.1" line. deraadt ok
*** please update /etc/netstart and test if it works ok for you ***
-rw-r--r--etc/netstart5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/netstart b/etc/netstart
index 3a5f286ff28..fe21eae46fa 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.98 2004/10/20 21:17:34 deraadt Exp $
+# $OpenBSD: netstart,v 1.99 2004/12/04 00:17:05 itojun Exp $
# Returns true if $1 contains only alphanumerics
isalphanumeric() {
@@ -342,8 +342,7 @@ for hn in /etc/hostname.*; do
esac
done
-# Use loopback, not the wire.
-route -qn add -host $hostname 127.0.0.1 > /dev/null
+# reject 127/8 other than 127.0.0.1
route -qn add -net 127 127.0.0.1 -reject > /dev/null
# Configure all the bridges.