For some reason I can't figure this out. I want to match outgoing IPv6 traffic that is encapsulated in a gif(4) tunnel (I have an IPv6 tunnel from SixXS) for the purpose of traffic shaping. The traffic looks like this on tcpdump(8):
I thought this rule would match this traffic but for some reason it isn't. This is the first pass rule for outgoing traffic in my rules so it should match, what am I missing?
Code:
00:48:11.317165 00:1b:21:14:ca:5e > 00:16:c7:98:08:80,
ethertype IPv4 (0x0800), length 129: (tos 0x0, ttl 30,
id 48032, offset 0, flags [none], proto IPv6 (41), length 115)
mytunnelendpoint > remoteendpoint: (hlim 64, next-header UDP (17) payload length: 55)
2001:14b8:abc:xyz::2.12350 > 2001:500:14:6011:ad::1.53: [udp sum ok] 32006% [1au]
AAAA? shikhar.mos.com.np. ar: . OPT UDPsize=4096 OK (47)
I thought this rule would match this traffic but for some reason it isn't. This is the first pass rule for outgoing traffic in my rules so it should match, what am I missing?
Code:
pass out log quick on $WAN inet proto 41 from ($WAN) to any queue(qWAN_proto41)