Bug 130381 - [rc.d] [pf] [ip6] ipv6 not fully configured when pf startup script is run
Summary: [rc.d] [pf] [ip6] ipv6 not fully configured when pf startup script is run
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 7.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-11 15:20 UTC by sdalu
Modified: 2017-12-31 22:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sdalu 2009-01-11 15:20:03 UTC
After a boot/reboot pf filter doesn't take into account ipv6 addresses (except link local), which seems to be due by network_ipv6 not being run before pf startup script

for example the pf.conf file contains the following rule:
 pass in proto tcp from any to net0 port http

which is translated into (as shown by pcftl -s rules)
 pass in on net0 inet6 proto tcp from any to fe80::21c:c0ff:fe52:1234 port = http flags S/SA keep state
 pass in inet proto tcp from any to 192.168.2.2 port = http flags S/SA keep state
 pass in inet proto tcp from any to 192.168.1.2 port = http flags S/SA keep state

the following ipv6 line is missing
 (with ipv6_ifconfig_net0="2001:1234:1234:1234::1/56" in rc.conf):
 pass in inet6 proto tcp from any to 2001:1234:1234:1234::1 port = http flags S/SA keep state

Fix: 

after boot, manually running: /etc/rc.d/pf restart
How-To-Repeat: Enable ipv6 and pf, configure ipv6 on network interface (net0 for example), add pf rule in pf.conf for net0. After boot/reboot pfctl -s rules won't show the corresponding rule for ipv6
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-01-11 16:04:17 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-pf

Over to maintainer(s).
Comment 2 bzeeb-lists 2009-01-11 18:47:45 UTC
Gert Doering had complained about this back in November on freebsd-rc:
http://docs.freebsd.org/cgi/mid.cgi?20081106125643.GG8535

-- 
Bjoern A. Zeeb                      The greatest risk is not taking one.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:34 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped