mirror of
https://github.com/linuxserver/docker-swag.git
synced 2026-04-20 03:01:50 +09:00
Compare commits
15 Commits
1.23.0-ls1
...
1.26.0-ls1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9e53d5fc8 | ||
|
|
f9e05fd86a | ||
|
|
b28eed1263 | ||
|
|
7eb8f7999e | ||
|
|
5beb4ffb32 | ||
|
|
9821740d65 | ||
|
|
5501308aed | ||
|
|
2272c3037a | ||
|
|
cf8cfd4241 | ||
|
|
a5389c3f40 | ||
|
|
1fbae23bcf | ||
|
|
de3b43cb62 | ||
|
|
555b2837cb | ||
|
|
7c5005f9ad | ||
|
|
7fb7364c96 |
@@ -103,11 +103,12 @@ This will *ask* Google et al not to index and list your site. Be careful with th
|
|||||||
|
|
||||||
### Using fail2ban
|
### Using fail2ban
|
||||||
|
|
||||||
* This container includes fail2ban set up with 4 jails by default:
|
* This container includes fail2ban set up with 5 jails by default:
|
||||||
1. nginx-http-auth
|
1. nginx-http-auth
|
||||||
2. nginx-badbots
|
2. nginx-badbots
|
||||||
3. nginx-botsearch
|
3. nginx-botsearch
|
||||||
4. nginx-deny
|
4. nginx-deny
|
||||||
|
5. nginx-unauthorized
|
||||||
* To enable or disable other jails, modify the file `/config/fail2ban/jail.local`
|
* To enable or disable other jails, modify the file `/config/fail2ban/jail.local`
|
||||||
* To modify filters and actions, instead of editing the `.conf` files, create `.local` files with the same name and edit those because .conf files get overwritten when the actions and filters are updated. `.local` files will append whatever's in the `.conf` files (ie. `nginx-http-auth.conf` --> `nginx-http-auth.local`)
|
* To modify filters and actions, instead of editing the `.conf` files, create `.local` files with the same name and edit those because .conf files get overwritten when the actions and filters are updated. `.local` files will append whatever's in the `.conf` files (ie. `nginx-http-auth.conf` --> `nginx-http-auth.local`)
|
||||||
* You can check which jails are active via `docker exec -it swag fail2ban-client status`
|
* You can check which jails are active via `docker exec -it swag fail2ban-client status`
|
||||||
@@ -330,6 +331,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **28.03.22:** - created a logfile for fail2ban nginx-unauthorized in /etc/cont-init.d/50-config
|
||||||
* **09.01.22:** - Added a fail2ban jail for nginx unauthorized
|
* **09.01.22:** - Added a fail2ban jail for nginx unauthorized
|
||||||
* **21.12.21:** - Fixed issue with iptables not working as expected
|
* **21.12.21:** - Fixed issue with iptables not working as expected
|
||||||
* **30.11.21:** - Move maxmind to a [new mod](https://github.com/linuxserver/docker-mods/tree/swag-maxmind)
|
* **30.11.21:** - Move maxmind to a [new mod](https://github.com/linuxserver/docker-mods/tree/swag-maxmind)
|
||||||
|
|||||||
@@ -1,26 +1,26 @@
|
|||||||
alpine-baselayout-3.2.0-r16
|
alpine-baselayout-3.2.0-r16
|
||||||
alpine-keys-2.4-r0
|
alpine-keys-2.4-r0
|
||||||
apache2-utils-2.4.52-r0
|
apache2-utils-2.4.53-r0
|
||||||
apk-tools-2.12.7-r0
|
apk-tools-2.12.7-r0
|
||||||
apr-1.7.0-r0
|
apr-1.7.0-r0
|
||||||
apr-util-1.6.1-r7
|
apr-util-1.6.1-r7
|
||||||
argon2-libs-20190702-r1
|
argon2-libs-20190702-r1
|
||||||
bash-5.1.4-r0
|
bash-5.1.16-r0
|
||||||
brotli-libs-1.0.9-r5
|
brotli-libs-1.0.9-r5
|
||||||
busybox-1.33.1-r6
|
busybox-1.33.1-r7
|
||||||
c-client-2007f-r11
|
c-client-2007f-r11
|
||||||
ca-certificates-20211220-r0
|
ca-certificates-20211220-r0
|
||||||
ca-certificates-bundle-20211220-r0
|
ca-certificates-bundle-20211220-r0
|
||||||
coreutils-8.32-r2
|
coreutils-8.32-r2
|
||||||
curl-7.79.1-r0
|
curl-7.79.1-r0
|
||||||
expat-2.4.4-r0
|
expat-2.4.7-r0
|
||||||
fail2ban-0.11.2-r0
|
fail2ban-0.11.2-r0
|
||||||
freetype-2.10.4-r1
|
freetype-2.10.4-r1
|
||||||
gdbm-1.19-r0
|
gdbm-1.19-r0
|
||||||
git-2.32.0-r0
|
git-2.32.0-r0
|
||||||
git-perl-2.32.0-r0
|
git-perl-2.32.0-r0
|
||||||
glib-2.68.3-r0
|
glib-2.68.3-r0
|
||||||
gmp-6.2.1-r0
|
gmp-6.2.1-r1
|
||||||
gnupg-2.2.31-r0
|
gnupg-2.2.31-r0
|
||||||
gnutls-3.7.1-r0
|
gnutls-3.7.1-r0
|
||||||
icu-libs-67.1-r2
|
icu-libs-67.1-r2
|
||||||
@@ -29,12 +29,12 @@ iptables-1.8.7-r1
|
|||||||
libacl-2.2.53-r0
|
libacl-2.2.53-r0
|
||||||
libassuan-2.5.5-r0
|
libassuan-2.5.5-r0
|
||||||
libattr-2.5.1-r0
|
libattr-2.5.1-r0
|
||||||
libblkid-2.37.3-r0
|
libblkid-2.37.4-r0
|
||||||
libbsd-0.11.3-r0
|
libbsd-0.11.3-r0
|
||||||
libbz2-1.0.8-r1
|
libbz2-1.0.8-r1
|
||||||
libc-utils-0.7.2-r3
|
libc-utils-0.7.2-r3
|
||||||
libcap-2.50-r0
|
libcap-2.50-r0
|
||||||
libcrypto1.1-1.1.1l-r0
|
libcrypto1.1-1.1.1n-r0
|
||||||
libcurl-7.79.1-r0
|
libcurl-7.79.1-r0
|
||||||
libedit-20210216.3.1-r0
|
libedit-20210216.3.1-r0
|
||||||
libevent-2.1.12-r2
|
libevent-2.1.12-r2
|
||||||
@@ -55,33 +55,33 @@ libmcrypt-2.5.8-r9
|
|||||||
libmd-1.0.3-r0
|
libmd-1.0.3-r0
|
||||||
libmemcached-libs-1.0.18-r4
|
libmemcached-libs-1.0.18-r4
|
||||||
libmnl-1.0.4-r1
|
libmnl-1.0.4-r1
|
||||||
libmount-2.37.3-r0
|
libmount-2.37.4-r0
|
||||||
libnftnl-libs-1.2.0-r0
|
libnftnl-libs-1.2.0-r0
|
||||||
libpng-1.6.37-r1
|
libpng-1.6.37-r1
|
||||||
libpq-13.5-r0
|
libpq-13.6-r0
|
||||||
libproc-3.3.17-r0
|
libproc-3.3.17-r0
|
||||||
libressl3.3-libcrypto-3.3.3-r0
|
libressl3.3-libcrypto-3.3.6-r0
|
||||||
libressl3.3-libssl-3.3.3-r0
|
libressl3.3-libssl-3.3.6-r0
|
||||||
libretls-3.3.3p1-r2
|
libretls-3.3.3p1-r3
|
||||||
libsasl-2.1.27-r12
|
libsasl-2.1.28-r0
|
||||||
libseccomp-2.5.1-r2
|
libseccomp-2.5.1-r2
|
||||||
libsecret-0.20.4-r1
|
libsecret-0.20.4-r1
|
||||||
libsm-1.2.3-r0
|
libsm-1.2.3-r0
|
||||||
libsodium-1.0.18-r0
|
libsodium-1.0.18-r0
|
||||||
libssl1.1-1.1.1l-r0
|
libssl1.1-1.1.1n-r0
|
||||||
libstdc++-10.3.1_git20210424-r2
|
libstdc++-10.3.1_git20210424-r2
|
||||||
libtasn1-4.17.0-r0
|
libtasn1-4.17.0-r0
|
||||||
libunistring-0.9.10-r1
|
libunistring-0.9.10-r1
|
||||||
libuuid-2.37.3-r0
|
libuuid-2.37.4-r0
|
||||||
libwebp-1.2.0-r2
|
libwebp-1.2.0-r2
|
||||||
libx11-1.7.2-r0
|
libx11-1.7.2-r0
|
||||||
libxau-1.0.9-r0
|
libxau-1.0.9-r0
|
||||||
libxcb-1.14-r2
|
libxcb-1.14-r2
|
||||||
libxdmcp-1.1.3-r0
|
libxdmcp-1.1.3-r0
|
||||||
libxext-1.3.4-r0
|
libxext-1.3.4-r0
|
||||||
libxml2-2.9.12-r1
|
libxml2-2.9.13-r0
|
||||||
libxpm-3.5.13-r0
|
libxpm-3.5.13-r0
|
||||||
libxslt-1.1.34-r1
|
libxslt-1.1.35-r0
|
||||||
libxt-1.2.1-r0
|
libxt-1.2.1-r0
|
||||||
libzip-1.7.3-r2
|
libzip-1.7.3-r2
|
||||||
linux-pam-1.5.1-r1
|
linux-pam-1.5.1-r1
|
||||||
@@ -118,7 +118,7 @@ nginx-mod-stream-geoip2-1.20.2-r0
|
|||||||
nginx-vim-1.20.2-r0
|
nginx-vim-1.20.2-r0
|
||||||
npth-1.6-r0
|
npth-1.6-r0
|
||||||
oniguruma-6.9.7.1-r0
|
oniguruma-6.9.7.1-r0
|
||||||
openssl-1.1.1l-r0
|
openssl-1.1.1n-r0
|
||||||
p11-kit-0.23.22-r0
|
p11-kit-0.23.22-r0
|
||||||
pcre-8.44-r0
|
pcre-8.44-r0
|
||||||
pcre2-10.36-r0
|
pcre2-10.36-r0
|
||||||
@@ -216,12 +216,12 @@ scanelf-1.3.2-r0
|
|||||||
shadow-4.8.1-r0
|
shadow-4.8.1-r0
|
||||||
skalibs-2.10.0.3-r0
|
skalibs-2.10.0.3-r0
|
||||||
sqlite-libs-3.35.5-r0
|
sqlite-libs-3.35.5-r0
|
||||||
ssl_client-1.33.1-r6
|
ssl_client-1.33.1-r7
|
||||||
tzdata-2021e-r0
|
tzdata-2022a-r0
|
||||||
unixodbc-2.3.9-r1
|
unixodbc-2.3.9-r1
|
||||||
utmps-0.1.0.2-r0
|
utmps-0.1.0.2-r0
|
||||||
whois-5.5.10-r0
|
whois-5.5.10-r0
|
||||||
xz-5.2.5-r0
|
xz-5.2.5-r0
|
||||||
xz-libs-5.2.5-r0
|
xz-libs-5.2.5-r0
|
||||||
zlib-1.2.11-r3
|
zlib-1.2.12-r0
|
||||||
zstd-libs-1.4.9-r1
|
zstd-libs-1.4.9-r1
|
||||||
|
|||||||
@@ -120,11 +120,12 @@ app_setup_block: |
|
|||||||
|
|
||||||
### Using fail2ban
|
### Using fail2ban
|
||||||
|
|
||||||
* This container includes fail2ban set up with 4 jails by default:
|
* This container includes fail2ban set up with 5 jails by default:
|
||||||
1. nginx-http-auth
|
1. nginx-http-auth
|
||||||
2. nginx-badbots
|
2. nginx-badbots
|
||||||
3. nginx-botsearch
|
3. nginx-botsearch
|
||||||
4. nginx-deny
|
4. nginx-deny
|
||||||
|
5. nginx-unauthorized
|
||||||
* To enable or disable other jails, modify the file `/config/fail2ban/jail.local`
|
* To enable or disable other jails, modify the file `/config/fail2ban/jail.local`
|
||||||
* To modify filters and actions, instead of editing the `.conf` files, create `.local` files with the same name and edit those because .conf files get overwritten when the actions and filters are updated. `.local` files will append whatever's in the `.conf` files (ie. `nginx-http-auth.conf` --> `nginx-http-auth.local`)
|
* To modify filters and actions, instead of editing the `.conf` files, create `.local` files with the same name and edit those because .conf files get overwritten when the actions and filters are updated. `.local` files will append whatever's in the `.conf` files (ie. `nginx-http-auth.conf` --> `nginx-http-auth.local`)
|
||||||
* You can check which jails are active via `docker exec -it swag fail2ban-client status`
|
* You can check which jails are active via `docker exec -it swag fail2ban-client status`
|
||||||
@@ -154,6 +155,7 @@ app_setup_nginx_reverse_proxy_block: ""
|
|||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- { date: "28.03.22:", desc: "created a logfile for fail2ban nginx-unauthorized in /etc/cont-init.d/50-config" }
|
||||||
- { date: "09.01.22:", desc: "Added a fail2ban jail for nginx unauthorized" }
|
- { date: "09.01.22:", desc: "Added a fail2ban jail for nginx unauthorized" }
|
||||||
- { date: "21.12.21:", desc: "Fixed issue with iptables not working as expected" }
|
- { date: "21.12.21:", desc: "Fixed issue with iptables not working as expected" }
|
||||||
- { date: "30.11.21:", desc: "Move maxmind to a [new mod](https://github.com/linuxserver/docker-mods/tree/swag-maxmind)" }
|
- { date: "30.11.21:", desc: "Move maxmind to a [new mod](https://github.com/linuxserver/docker-mods/tree/swag-maxmind)" }
|
||||||
|
|||||||
@@ -366,6 +366,8 @@ fi
|
|||||||
touch /config/log/nginx/error.log
|
touch /config/log/nginx/error.log
|
||||||
[[ ! -f /config/log/nginx/access.log ]] && \
|
[[ ! -f /config/log/nginx/access.log ]] && \
|
||||||
touch /config/log/nginx/access.log
|
touch /config/log/nginx/access.log
|
||||||
|
[[ ! -f /config/log/nginx/unauthorized.log ]] && \
|
||||||
|
touch /config/log/nginx/unauthorized.log
|
||||||
|
|
||||||
# permissions
|
# permissions
|
||||||
chown -R abc:abc \
|
chown -R abc:abc \
|
||||||
|
|||||||
Reference in New Issue
Block a user