Mercurial > syslog2iptables
comparison syslog2iptables.conf.make @ 61:d80641be405b stable-1-0-15
add script to build syslog2iptables.conf
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 04 Oct 2014 10:01:32 -0700 |
parents | |
children | cc01f2caff37 |
comparison
equal
deleted
inserted
replaced
60:a20b31625b44 | 61:d80641be405b |
---|---|
1 #!/bin/bash | |
2 | |
3 ( | |
4 echo '// generated by syslog2iptables.conf.make' | |
5 echo '' | |
6 cat syslog2iptables.conf.top | |
7 | |
8 for fn in /var/log/httpd/access*log; do | |
9 if [ -f "$fn" ]; then | |
10 echo " file \"$fn\" {" | |
11 cat syslog2iptables.conf.httpd | |
12 echo " };" | |
13 fi | |
14 done | |
15 | |
16 cat syslog2iptables.conf.bottom | |
17 ) >syslog2iptables.conf | |
18 |