K
K
Kamil2019-04-27 20:05:48
linux
Kamil, 2019-04-27 20:05:48

How to record what goes to DROP along the Iptables chain?

A GRE tunnel is connected to the server.
The server receives clean traffic, a chain of rules is set inside the server that receives clean traffic.
N ports are filtered and modeled, when viewing -L -n -v, it displays statistics of received and dropped traffic and the entire chain.
It looks something like this:
5cc488df8071e672995222.png
How to find out the information that got into DROP? Size/weight/address of the packet that was dropped?
Is it possible, if so, how, to display this information in a separate file in the most detailed form?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-04-28
@hempy80

Iptables has a LOG action (-j LOG), you may not get all the data you are interested in, but the source/destination address will be available to you.
https://m.habr.com/en/post/259169/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question