Is it possible to view or enable a log that shows what requests iptables is blocking? I am trying to track down a request that iptables is blocking, but shouldn't be (because of an exception rule that I put in place for it).
feedback
|
|
Generally speaking, this is done by using the -j LOG target before the -j DROP target. An example, say you have a rule that blocks ssh requests inbound from a particular ip
you would modify your config and add a rule just above this one that looks like this:
you might also want to look at the | |||
feedback
|
|
Yes. You can send the packets to the ULOG target before denying them and configure ulogd to save them in a pcap-formatted file so they can be read with tcpdump or wireshark. See http://www.netfilter.org/projects/ulogd/ | |||
|
feedback
|