I just updated to RC5 and noticed the new Connections page in Webif. It kind of reminded me of a page that some ACTIONTEC combo Router/DSL-Modems have that would show the url of any connection on the router (websites users were visiting, etc). I wanted to emulate this function and add it the connections.sh on my router.
However, I can only get netstat to list the local addresses, and the /proc/net files only seem to contain hex coded local addresses as well. I thought I could maybe use IP tables to log all traffic to a file on /tmp and then tail that file and parse the outputs.
The reason I'm posting is
1) I don't know how to do that with ip tables.
2) that log file is going to get pretty big pretty fast. I could use a cron to delete it periodically, but that seems like a poor solution, too.
Anyone know how to setup 1, or have any ideas about 2? Or, better yet, know of a more direct approach? Tinyproxy looked like another option for 1, perhaps, but the download site in the wiki is down...