If we just wanted to look at traffic that went out to the IPSec world, we could use:
iptables -I FORWARD -j LOG -o ipsec+
Clearly there are many more combinations possible.
It is therefore possible to write rules that log inbound and outbound traffic, or to construct several rules that differentiate between the two.
Rate Limiting
iptables has the facility for
--limit rate
rate is the maximum average matching rate, specified as a number with an optional /second, /minute, /hour, or /day suffix. The default is 3/hour.
--limit-burst number
number is the maximum initial number of packets to match. This number gets recharged by one every time the limit specified above is not reached, up to this number. The default is 5.
iptables has many more options. Perform a web search for manpage iptables to find the relevant documentation.
The LOG rules configured by default (e.g. Default Deny:) are all limited to: