Having an odd problem here with regards to pound reverse proxy no longer directing traffic properly on a CentOS based distro (ClearOS 6.2.x).
I believe that it's an iptables
issue or something else in that I see nothing to even indicate inbound traffic in my /var/log/messages
or /var/log/system
.
How can I increase iptables
logging verbosity and verify what is going on with it (in terms of certainty as to where the logging data is being kept)?
Below are the general steps I've taken in the past to turn on iptables logging.
Within my iptables script, I have all of my generic allow rules at the top and then towards the bottom I have some specific logging rules. Below are a few examples.
There are obviously a ton of things you can do with this. Here is a good link for some generic information.
You can use the '-j LOG' target to log the matched packet to your system log. You can also prefix it with any arbitrary string.
To help in debugging the problem, you can use anetwork sniffer like wireshark or tcpdump. Also, iptables counters can a good source of information on a less busy servers by monitoring the changes of a certain rule.
You can view the exact counters with
iptables -L -nvx
.