I'm using "-A INPUT -j LOG" as my last rule to see packets coming in other than what my firewall rules allow. The logging works, but it doesn't tell me what port numbers are being connected to. How do I get this information so I can identify where these packets are coming from?
Sure it does, your logs should look like this. You want to look at the SPT, and DPT for the source and destination ports.