summaryrefslogtreecommitdiff
path: root/etc/netstart
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2018-02-10 08:46:11 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2018-02-10 08:46:11 +0000
commit3e4c9cf00e751acd4fe70592e72151593f9c7140 (patch)
tree1ee2521e3da44c399d30001e9640bb3977730c15 /etc/netstart
parent2ef40e3ef7415e30cd9826682bf4b21b93f22eff (diff)
Remove some special IPv4 in IPv6 mapped prefixes that are already rejected
by the ::0.0.0.0/96 reject route added to deny all IPv4 mapped addresses. Makes the inet6 routing table almost fit in one screen. OK benno@
Diffstat (limited to 'etc/netstart')
-rw-r--r--etc/netstart8
1 files changed, 1 insertions, 7 deletions
diff --git a/etc/netstart b/etc/netstart
index 820c1607deb..8a46cd2ad45 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.189 2018/02/10 05:56:47 florian Exp $
+# $OpenBSD: netstart,v 1.190 2018/02/10 08:46:10 claudio Exp $
# Turn off Strict Bourne shell mode.
set +o sh
@@ -230,12 +230,6 @@ if ifconfig lo0 inet6 >/dev/null 2>&1; then
# Disallow "internal" addresses to appear on the wire.
route -qn add -inet6 ::ffff:0.0.0.0 -prefixlen 96 ::1 -reject >/dev/null
- # Disallow packets to malicious IPv4 compatible prefix.
- route -qn add -inet6 ::224.0.0.0 -prefixlen 100 ::1 -reject >/dev/null
- route -qn add -inet6 ::127.0.0.0 -prefixlen 104 ::1 -reject >/dev/null
- route -qn add -inet6 ::0.0.0.0 -prefixlen 104 ::1 -reject >/dev/null
- route -qn add -inet6 ::255.0.0.0 -prefixlen 104 ::1 -reject >/dev/null
-
# Disallow packets to malicious 6to4 prefix.
route -qn add -inet6 2002:e000:: -prefixlen 20 ::1 -reject >/dev/null
route -qn add -inet6 2002:7f00:: -prefixlen 24 ::1 -reject >/dev/null