Linux Netfilter discussions
 help / color / mirror / Atom feed
* IPv6: unknown packet logged ...
@ 2017-08-22 14:42 Walter H.
  2017-08-22 14:47 ` Mark Coetser
  0 siblings, 1 reply; 8+ messages in thread
From: Walter H. @ 2017-08-22 14:42 UTC (permalink / raw)
  To: netfilter

Hello,

I have these rules at the beginning of /etc/sysconfig/ip6tables

# Filter all packets with state INVALID
-A INPUT -m state --state INVALID -j DROP
-A FORWARD -m state --state INVALID -j DROP
-A OUTPUT -m state --state INVALID -j DROP

and on bottom these rules:

# Log all other
-A INPUT -j LOG --log-prefix "IPv6[IN]: " --log-level 7
-A FORWARD -j LOG --log-prefix "IPv6[FWD]: " --log-level 7
-A OUTPUT -j LOG --log-prefix "IPv6[OUT]: " --log-level 7

which rule would have catched these logged packets:

[70223.386265] IPv6[FWD]: IN=sit1 OUT=br0
SRC=2a00:1450:4001:081a:0000:0000:0000:200e DST=myipv6addr LEN=123 TC=0
HOPLIMIT=60 FLOWLBL=617912 PROTO=TCP SPT=443 DPT=59073 WINDOW=1171
RES=0x00 ACK PSH URGP=0
[70232.150311] IPv6[FWD]: IN=sit1 OUT=br0
SRC=2a00:1450:4001:081a:0000:0000:0000:200e DST=myipv6addr LEN=123 TC=0
HOPLIMIT=60 FLOWLBL=949795 PROTO=TCP SPT=443 DPT=59073 WINDOW=1171
RES=0x00 ACK PSH URGP=0
[70249.740932] IPv6[FWD]: IN=sit1 OUT=br0
SRC=2a00:1450:4001:081a:0000:0000:0000:200e DST=myipv6addr LEN=123 TC=0
HOPLIMIT=60 FLOWLBL=811062 PROTO=TCP SPT=443 DPT=59073 WINDOW=1171
RES=0x00 ACK PSH URGP=0

Thanks,
Walter


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-08-22 16:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-22 14:42 IPv6: unknown packet logged Walter H.
2017-08-22 14:47 ` Mark Coetser
2017-08-22 14:59   ` Walter H.
2017-08-22 15:08     ` Mark Coetser
2017-08-22 15:36       ` Walter H.
2017-08-22 15:40         ` Mark Coetser
2017-08-22 15:52           ` Walter H.
2017-08-22 16:03             ` Mark Coetser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox