summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorCedric Berger <cedric@cvs.openbsd.org>2003-02-14 16:00:59 +0000
committerCedric Berger <cedric@cvs.openbsd.org>2003-02-14 16:00:59 +0000
commit1366f91c08553f00d4ca497d6240b42f1916917e (patch)
treec952b58afac262f748e3143409afb97b39825662 /etc
parent5ad15c0256db45a043dc3827f34dc79393a8a1f0 (diff)
Fix NFS diskless boot when PF is used.
From dhartmei@ e-mail, ok henning@
Diffstat (limited to 'etc')
-rw-r--r--etc/rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index f45bc21179e..0b860e5770b 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.217 2003/01/20 22:42:01 jakob Exp $
+# $OpenBSD: rc,v 1.218 2003/02/14 16:00:58 cedric Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -126,6 +126,7 @@ if [ "X${pf}" != X"NO" ]; then
case `sysctl vfs.mounts.nfs 2>/dev/null` in
*[1-9]*)
# don't kill NFS
+ RULES="scrub in all no-df\n$RULES"
RULES="$RULES\npass in proto udp from any port { 111, 2049 } to any"
RULES="$RULES\npass out proto udp from any to any port { 111, 2049 }"
;;