Browse Source

default pf rule too restrictive for IPv6 (need to allow NS/NA). deraadt ok

OPENBSD_3_7
itojun 20 years ago
parent
commit
493321fdbb
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/etc/rc

+ 3
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.257 2004/10/19 06:45:36 grange Exp $
# $OpenBSD: rc,v 1.258 2004/10/22 00:59:09 itojun Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -143,6 +143,8 @@ if [ "X${pf}" != X"NO" ]; then
RULES="$RULES\npass out proto { tcp, udp } from any to any port 53 keep state" RULES="$RULES\npass out proto { tcp, udp } from any to any port 53 keep state"
RULES="$RULES\npass out inet proto icmp all icmp-type echoreq keep state" RULES="$RULES\npass out inet proto icmp all icmp-type echoreq keep state"
if ifconfig lo0 inet6 >/dev/null 2>&1; then if ifconfig lo0 inet6 >/dev/null 2>&1; then
RULES="$RULES\npass out inet6 proto icmp6 all icmp6-type neighbrsol"
RULES="$RULES\npass in inet6 proto icmp6 all icmp6-type neighbradv"
RULES="$RULES\npass out inet6 proto icmp6 all icmp6-type routersol" RULES="$RULES\npass out inet6 proto icmp6 all icmp6-type routersol"
RULES="$RULES\npass in inet6 proto icmp6 all icmp6-type routeradv" RULES="$RULES\npass in inet6 proto icmp6 all icmp6-type routeradv"
fi fi


Loading…
Cancel
Save