Hi
I am using
Looking at the rule after it is installed shows the following:
which looks reasonable to me.
But when I send a TCP SYN to 2a00:1450:4001:814::2003 the rule does not match.
But why?
The following rule (without the
I am wondering if I misinterpret the
BTW: I am trying to just use the "options" described in the man page section "RULE OPTIONS (MATCH PATTERNS)" because the man page states that this is the "new" suggested format.
I am using
ipfw
for firewalling on a FreeBSD 11 box. Unfortunately I cannot wrap my head around the fact that/why the following rule does not match when I initiate a TCP connection to 2a00:1450:4001:814::2003 (that is Google...):
Code:
ipfw add 340 set 5 count dst-ip6 2a00:1450:4001:814::2003 proto tcp ipver 6 setup
Looking at the rule after it is installed shows the following:
Code:
$ sudo ipfw show 340
00340 0 0 count tcp from any to 2a00:1450:4001:814::2003 ipver 6 setup
which looks reasonable to me.
But when I send a TCP SYN to 2a00:1450:4001:814::2003 the rule does not match.
But why?
The following rule (without the
ipver 6
), on the other hand, does match the same traffic:
Code:
ipfw add 341 set 5 count dst-ip6 2a00:1450:4001:814::2003 proto tcp setup
Code:
$ sudo ipfw show 340-341
00340 0 0 count tcp from any to 2a00:1450:4001:814::2003 ipver 6 setup
00341 1 84 count tcp from any to 2a00:1450:4001:814::2003 setup
I am wondering if I misinterpret the
ipver
keyword (the description in ipfw() is minimal, it just states "Matches IP packets whose IP version field is ver.") or if this is a bug?BTW: I am trying to just use the "options" described in the man page section "RULE OPTIONS (MATCH PATTERNS)" because the man page states that this is the "new" suggested format.
Code:
The rule body has the following format:
[proto from src to dst] [options]
The first part (proto from src to dst) is for backward compatibility with
earlier versions of FreeBSD. In modern FreeBSD any match pattern (in-
cluding MAC headers, IP protocols, addresses and ports) can be specified
in the options section.