Mercurial > syslog2iptables
annotate syslog2iptables.conf.make @ 73:4685767c0c85 stable-1-0-17
RHEL7 systemd and /var/run on tmpfs
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 09 Feb 2017 15:01:05 -0800 |
parents | d80641be405b |
children | cc01f2caff37 |
rev | line source |
---|---|
61
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
1 #!/bin/bash |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
2 |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
3 ( |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
4 echo '// generated by syslog2iptables.conf.make' |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
5 echo '' |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
6 cat syslog2iptables.conf.top |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
7 |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
8 for fn in /var/log/httpd/access*log; do |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
9 if [ -f "$fn" ]; then |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
10 echo " file \"$fn\" {" |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
11 cat syslog2iptables.conf.httpd |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
12 echo " };" |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
13 fi |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
14 done |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
15 |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
16 cat syslog2iptables.conf.bottom |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
17 ) >syslog2iptables.conf |
d80641be405b
add script to build syslog2iptables.conf
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
18 |