Quote:
Originally Posted by vahacker
1) Concerning the Block addresses using up the conntrack resources do you think it would make that big of deal? What do you feel would be the correct syntax to use to do it with the raw tables prerouting chain.
|
It's the same as you use with the INPUT chain except iptables defaults to using the filter table so the only thing you have to do is change PREROUTING for INPUT and explicitly add "-t raw".
Quote:
Originally Posted by vahacker
2) Concerning the invalid user pipeline I will look at this as well.
|
Well it's not about the validity of your approach but if it could be done differently or more efficiently. Output of cat|sed, cat|grep and other such pipes could be gotten with say
awk -F ' ' '/search term/ {print $fieldnumber}' /path/to/file if you're looking for fixed field values. That's using
one tool only but that doesn't necessarily mean it's
quicker. Gotta test different approaches. In some cases the placement of a tools switches or the way you build a regex may matter wrt speed.
Quote:
Originally Posted by vahacker
I agree this should be moved to /var/run. Do you suggest that I just check to see if the directories I want to store data in are there before I run the script and create them if they arent?
|
If you want to cache data persistently then you could use say /var/cache/cheesecloth, data that doesn't need to survive say a reboot could go in /var/run/cheesecloth and logs and reporting should be in /var/log/cheesecloth.
Quote:
Originally Posted by vahacker
I like your idea about checkpoints in those files and will make this change very shortly.
|
Not that it would be easy to do. However thanks to TIS / Psionic / Ci$co you're free to use
logtail as a dependency and avoid having to be creative ;-p