K
K
Kamil2019-05-03 14:39:51
Debian
Kamil, 2019-05-03 14:39:51

How to record all IP addresses that are in Drop Iptables?

On a Debian system, chains of iptables rules are running along with the geoip module.
There are a lot of different conditions where there is a DROP, how can I record all the IP addresses that are in the drop for further pickup and action?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2019-05-03
@MechanID

you can first wrap it in -j LOG
and put -j DROP as the next rule in the chain

A
Alexey Golobokov, 2019-05-06
@AVG75

try the ipset module and its action... -j SET --add-set DROPped_list src

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question