File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,10 +13,7 @@ RUN set -eux; \
1313 bind-tools \
1414 bind-dnssec-tools \
1515 openssl \
16- tzdata \
17- fail2ban \
18- iptables \
19- ip6tables; \
16+ tzdata; \
2017 tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz; \
2118 tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz; \
2219 rm -rf /tmp/* /var/cache/apk/* /etc/bind/*; \
@@ -25,8 +22,6 @@ RUN set -eux; \
2522COPY ./bind /etc/bind
2623COPY ./services.d /etc/services.d
2724COPY ./cont-init.d /etc/cont-init.d
28- COPY ./fail2ban/jail.local /etc/fail2ban/jail.local
29- COPY ./fail2ban/filter.d /etc/fail2ban/filter.d
3025
3126RUN chmod +x /etc/services.d/*/run /etc/cont-init.d/*
3227
Original file line number Diff line number Diff line change 11logging {
22 channel default_log { syslog daemon; severity info; print-severity yes; print-category yes; print-time yes; };
33 channel errors_log { syslog daemon; severity warning; print-severity yes; print-category yes; print-time yes; };
4- channel security_file {
5- file "/var/log/named/security.log" versions 3 size 10m;
6- severity dynamic;
7- print-severity yes;
8- print-category yes;
9- print-time yes;
10- };
114
125 category default { default_log; };
136 category config { default_log; };
14- category security { errors_log; security_file; };
15- category xfer-in { default_log; security_file; };
16- category xfer-out { default_log; security_file; };
7+ category security { errors_log; };
8+ category xfer-in { default_log; };
9+ category xfer-out { default_log; };
1710 category update { default_log; };
1811 category dnssec { default_log; };
1912 category queries { default_log; };
Original file line number Diff line number Diff line change @@ -9,9 +9,7 @@ rndc-confgen -a -c /etc/bind/rndc.key
99
1010log " Create directories"
1111mkdir -p /var/cache/bind/keys
12- mkdir -p /var/log/named
13- touch /var/log/named/security.log
14- chown -R named:named /var/cache/bind /etc/bind /var/log/named
12+ chown -R named:named /var/cache/bind /etc/bind
1513
1614log " Check config"
1715named-checkconf /etc/bind/named.conf
Load diff This file was deleted.
Load diff This file was deleted.
Load diff This file was deleted.
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,10 +7,6 @@ services:
77 - " 53:53/tcp"
88 # - "953:953/tcp"
99 restart : always
10- environment :
11- - FAIL2BAN_ENABLED=false
12- cap_add :
13- - NET_ADMIN
1410 volumes :
1511 - bind_keys:/var/cache/bind/keys
1612 - ./bind:/etc/bind
You can’t perform that action at this time.
0 commit comments