Compare commits
305 Commits
v3.0
...
94b9f0e5cb
| Author | SHA1 | Date | |
|---|---|---|---|
| 94b9f0e5cb | |||
| 6d38221fa3 | |||
| 713cb9160e | |||
| 035d396c4f | |||
| e9a1efbf89 | |||
| 1d905742bc | |||
| 956543cfc3 | |||
| e38493230a | |||
| cfb2467782 | |||
| e6f35b2a1f | |||
| 1f8f1149cb | |||
| a92ad6e145 | |||
| 467546961f | |||
| b3ae758a82 | |||
| 400d814e20 | |||
| 79442acea9 | |||
| b84df55970 | |||
| cb5ae02ea2 | |||
| 7b91c32759 | |||
| 599fa32c67 | |||
| 32edbddf07 | |||
| 57f25ecac9 | |||
| 0c5f4b47b4 | |||
| 710daf1475 | |||
| de647fc401 | |||
| f1d0957af9 | |||
| e15b9d88f1 | |||
| 06624021d4 | |||
| 7069b0e0d6 | |||
| 201e399361 | |||
| 4f745516cd | |||
| b6c8c9ce96 | |||
| ebcd3a4d8c | |||
| cd68adb0cd | |||
| c8c4db0388 | |||
| 14bc66eac3 | |||
| 2a57da27dd | |||
| 14a7a13738 | |||
| 9e70a9eab5 | |||
| 92e1440c03 | |||
| caf9b67fcf | |||
| ed3bc18f9a | |||
| ceb2f81038 | |||
| 0016be8b72 | |||
| 648b594996 | |||
| 32185fd641 | |||
| 4cab377b5b | |||
| 6cf028078e | |||
| 3ee649efd1 | |||
| 41a757b5b7 | |||
| 8737f183d1 | |||
| 6f09ea58df | |||
| 529020368a | |||
| 2e5b7df4c8 | |||
| 134c3048a2 | |||
| b1ca949b49 | |||
| 3c15da3e35 | |||
| 6758448534 | |||
| fe6e4c6d0c | |||
| 432ebd3ad7 | |||
| d31bd00544 | |||
| ae40bb737a | |||
| 25de9e247f | |||
| 068a11acf5 | |||
| 46fd3f371d | |||
| 444e23648f | |||
| 142468583e | |||
| 45a172fb6b | |||
| 1bf7898bd5 | |||
| 99fe8e8793 | |||
| b2c326ac59 | |||
| 9c757704e7 | |||
| 8238550971 | |||
| 01244b0efb | |||
| 4bb4d34cba | |||
| c5264a37b4 | |||
| 1d5989a07e | |||
| b447fcc76c | |||
| 20c045dbeb | |||
| b9f9b236a0 | |||
| afdb697c37 | |||
| 4cc4a9b7cc | |||
| 2f02f4b5f7 | |||
| 33d5336a48 | |||
| 2953575b1b | |||
| df1651b1be | |||
| f06caa5eed | |||
| f0ead8ba23 | |||
| 6115216a1e | |||
| 231e58e932 | |||
| cea3b41e4f | |||
| 14def58675 | |||
| 5aec195d6f | |||
| a18d429fc2 | |||
| e7437e6136 | |||
| 303c9c0320 | |||
| 8f6c53296a | |||
| 3b18462532 | |||
| f2a3c35bce | |||
| 24cd4b5fef | |||
| 42ae373027 | |||
| c2a6dea52d | |||
| cb12e3957d | |||
| 264f65de20 | |||
| dce4e480b4 | |||
| 6877a80789 | |||
| cbd7d91e0e | |||
| f0822bf90c | |||
| df1519bcea | |||
| 2874ed53fe | |||
| eb28059dd1 | |||
| fb58b6ed71 | |||
| 85fcaf1eea | |||
| 64723c9cb9 | |||
| 2321dc34b8 | |||
| 5c360d29d6 | |||
| a215e1ef20 | |||
| 7b2721eb2b | |||
| df0af48c3f | |||
| 9921fb6c7c | |||
| d0afbccb09 | |||
| af0624c015 | |||
| 1f5c9b64ba | |||
| aff5839f64 | |||
| d876184e6a | |||
| 0157653158 | |||
| ff2e1b36f2 | |||
| 1362b11bcf | |||
| c5f2d3e8c2 | |||
| 3b49316111 | |||
| b0382bd981 | |||
| 6765ec2483 | |||
| d1215f09b0 | |||
| bff43d5ce5 | |||
| 258ad38984 | |||
| abb259d4a6 | |||
| f0038d2a1d | |||
| 3a2707df0a | |||
| 00389604b9 | |||
| c8b682a597 | |||
| 8729995b58 | |||
| bed45d1faa | |||
| ffb70c31a1 | |||
| 4c78ea8b3c | |||
| 823dcce101 | |||
| 7fd8201788 | |||
| 81bebed9a4 | |||
| 712afcf4a3 | |||
| 58ae1073c8 | |||
| fed7f22c6d | |||
| 52f0cd700b | |||
| 6dd283242e | |||
| 50d6957532 | |||
| 83031c5cf3 | |||
| ccb7c07cb1 | |||
| 785924c237 | |||
| cd096b1e7e | |||
| e9979b0bfc | |||
| 282ab293d5 | |||
| 5b0670be85 | |||
| ea13c8cd73 | |||
| d58deee9bc | |||
| d2f8b5b93c | |||
| 8c3e14edb5 | |||
| e26d19b5c5 | |||
| 181e9de521 | |||
| 5883d9e9cf | |||
| 554875745f | |||
| 36614d6f41 | |||
| b082b9f8f0 | |||
| bf350e5ba2 | |||
| 979c2477fd | |||
| 37b51ea5d2 | |||
| 556c8a114d | |||
| 9566e23ddb | |||
| 1ada0b950b | |||
| 6ba6c85db0 | |||
| 5397e1cb09 | |||
| a42ff0b72e | |||
| 1c062baee0 | |||
| cdf651a2a5 | |||
| da9a4fee62 | |||
| c83493fcb4 | |||
| 80edae0d2b | |||
| 7757a33ce8 | |||
| fdc1a89120 | |||
| 9c4e3c1ab9 | |||
| e16e20c14b | |||
| a33a51423d | |||
| 306eba8c1c | |||
| 62a49e0056 | |||
| 88378f5e9a | |||
| 8b62590c08 | |||
| aa564e56fc | |||
| 999be80177 | |||
| 10cd75f44b | |||
| f951ea177a | |||
| 5dbc411860 | |||
| b3478cab0e | |||
| e02e9051d5 | |||
| ded4c3e6ce | |||
| dc85070ed6 | |||
| b73186e952 | |||
| 3e45f593c7 | |||
| 97949919e6 | |||
| fedd888ae7 | |||
| fae776e6e3 | |||
| 25c1a29139 | |||
| 0a96353960 | |||
| 27884c4a4e | |||
| 026adc4d5a | |||
| b453ee0844 | |||
| 8d43afe19a | |||
| 76c53ee3c1 | |||
| 7cb4addd2e | |||
| a133b428fe | |||
| f273e2a5a6 | |||
| f50ee4fa1f | |||
| 47d5a3b34e | |||
| e3c15c31d2 | |||
| a518b72e24 | |||
| a59971e299 | |||
| 8bdd4b7b79 | |||
| 73424bfdf1 | |||
| 0e1d0e61bf | |||
| 895ecce66c | |||
| 435edd83d5 | |||
| 1bcadb90ba | |||
| 611e494c27 | |||
| 30ee569fe5 | |||
| 667d3b6463 | |||
| 56f6656636 | |||
| 67299c36ea | |||
| c0400dc2be | |||
| ffccfb33d7 | |||
| 4baf5e46f3 | |||
| feb44c6f53 | |||
| 3a8b752071 | |||
| 63a0b16180 | |||
| 4678797f12 | |||
| 5eaf5d481e | |||
| 88de83eb81 | |||
| b9e7710c9a | |||
| 0de5558676 | |||
| f7f5071b00 | |||
| 8909ec1210 | |||
| 0a08cca3ae | |||
| f0c9042860 | |||
| 53eead28bd | |||
| 092620fb38 | |||
| 60da7afa29 | |||
| 847002aec5 | |||
| 72b8d296df | |||
| a745bcce5a | |||
| d24c015d6b | |||
| 95cad5a394 | |||
| 834787c638 | |||
| a6be60a86f | |||
| 69b472ab4f | |||
| 03fe311e16 | |||
| bf60debb02 | |||
| 2c13cb13b1 | |||
| 0fbf278d4c | |||
| d1e0e46bd9 | |||
| 3410a3daf1 | |||
| b55641d072 | |||
| 12f0ad5fac | |||
| ff8f011eec | |||
| cfef8ab897 | |||
| e7a1922b2b | |||
| 6a7240211f | |||
| 66b4323fa2 | |||
| 90c8c743d9 | |||
| 8b7b7a6389 | |||
| 9867174af7 | |||
| d437bf5943 | |||
| c4b012604d | |||
| 5322284a70 | |||
| c183ee0f1d | |||
| 7872b3044c | |||
| cf0f21a5a5 | |||
| 1a4fd03a53 | |||
| 2de06a8468 | |||
| b402f78ad0 | |||
| dbf86e32dd | |||
| 9507daf8d9 | |||
| aea478c26d | |||
| ea2b8765e6 | |||
| 325e151614 | |||
| 52cac0d912 | |||
| 8b4d3adf5d | |||
| 1eba6f9844 | |||
| 30a36a38ea | |||
| 3bace2616a | |||
| 04f9a36a78 | |||
| c28a417fff | |||
| c8147b063d | |||
| 4c7641d272 | |||
| c009c612f4 | |||
| e801cce8c2 | |||
| f2f15667b9 | |||
| ff8876b55e | |||
| 76d3a06844 | |||
| a8b6243140 | |||
| f95d7d4e04 |
@@ -1,14 +0,0 @@
|
||||
---
|
||||
name: Error report
|
||||
about: Create a report to help us improve
|
||||
|
||||
---
|
||||
|
||||
**Describe the Error**
|
||||
What you expected and what you got? Please write it here.
|
||||
|
||||
```bash
|
||||
Make sure you include a output of your terminal where you see the error
|
||||
```
|
||||
|
||||
*I'm not the one who created nginx or any of those modules so don't expect much if i'm not able to help your request will be forwarded somewhere else based on kind of it.*
|
||||
@@ -1,17 +0,0 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
@@ -0,0 +1,106 @@
|
||||
name: Build and Publish NGINX
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install git dpkg-dev
|
||||
|
||||
- name: Clone the repository
|
||||
run: |
|
||||
cd $HOME
|
||||
git clone https://github.com/theraw/The-World-Is-Yours.git
|
||||
cd The-World-Is-Yours/
|
||||
|
||||
- name: Build NGINX
|
||||
run: |
|
||||
touch $HOME/.dockerenv
|
||||
cd $HOME/The-World-Is-Yours/
|
||||
sudo bash build/run.sh new
|
||||
sudo bash build/run.sh build
|
||||
sudo bash build/run.sh postfix
|
||||
|
||||
- name: Build .deb Package
|
||||
id: build_deb
|
||||
run: |
|
||||
cd $HOME/The-World-Is-Yours/
|
||||
sudo bash -c 'function create_deb() {
|
||||
PKG_NAME="twiy"
|
||||
VERSION=$(nginx -v 2>&1 | awk -F"/" "{print \$2}")
|
||||
ARCH="amd64"
|
||||
PKG_DIR="/opt/${PKG_NAME}_${VERSION}_${ARCH}"
|
||||
DEB_DIR="${PKG_DIR}/DEBIAN"
|
||||
mkdir -p ${PKG_DIR}/usr/sbin
|
||||
mkdir -p ${PKG_DIR}/usr/local/nginx
|
||||
mkdir -p ${PKG_DIR}/nginx
|
||||
mkdir -p ${PKG_DIR}/etc/systemd/system
|
||||
mkdir -p ${PKG_DIR}/var/log/nginx
|
||||
mkdir -p ${PKG_DIR}/nginx/conf.d
|
||||
mkdir -p ${PKG_DIR}/nginx/live
|
||||
mkdir -p ${PKG_DIR}/nginx/modsec
|
||||
mkdir -p ${PKG_DIR}/usr/lib
|
||||
mkdir -p ${PKG_DIR}/usr/local/lib
|
||||
mkdir -p ${PKG_DIR}/hostdata/default/public_html
|
||||
mkdir -p ${PKG_DIR}/usr/nginx_lua
|
||||
cp /usr/sbin/nginx ${PKG_DIR}/usr/sbin/
|
||||
cp -R /nginx/* ${PKG_DIR}/nginx/
|
||||
cp /etc/systemd/system/nginx.service ${PKG_DIR}/etc/systemd/system/
|
||||
cp -R /hostdata/default ${PKG_DIR}/hostdata/
|
||||
cp -R /usr/nginx_lua ${PKG_DIR}/usr/
|
||||
for lib in $(ldd /usr/sbin/nginx | grep "=> /" | awk "{print \$3}"); do
|
||||
cp "$lib" "${PKG_DIR}/usr/lib/"
|
||||
done
|
||||
for module in /opt/mod/*; do
|
||||
if [ -f "$module" ]; then
|
||||
for lib in $(ldd "$module" | grep "=> /" | awk "{print \$3}"); do
|
||||
cp "$lib" "${PKG_DIR}/usr/lib/"
|
||||
done
|
||||
fi
|
||||
done
|
||||
mkdir -p ${DEB_DIR}
|
||||
echo "Package: ${PKG_NAME}" > ${DEB_DIR}/control
|
||||
echo "Version: ${VERSION}" >> ${DEB_DIR}/control
|
||||
echo "Section: base" >> ${DEB_DIR}/control
|
||||
echo "Priority: optional" >> ${DEB_DIR}/control
|
||||
echo "Architecture: ${ARCH}" >> ${DEB_DIR}/control
|
||||
echo "Maintainer: Julio <me@julio.al>" >> ${DEB_DIR}/control
|
||||
echo "Description: Nginx L7 DDoS Protection! And many more features github.com/theraw/The-World-Is-Yours" >> ${DEB_DIR}/control
|
||||
echo "#!/bin/bash" > ${DEB_DIR}/postinst
|
||||
echo "useradd -r -d /usr/local/nginx -s /bin/false nginx || true" >> ${DEB_DIR}/postinst
|
||||
chmod 755 ${DEB_DIR}/postinst
|
||||
chmod -R 0755 ${DEB_DIR}
|
||||
dpkg-deb --build ${PKG_DIR}
|
||||
mv ${PKG_DIR}.deb /opt/${PKG_NAME}_${VERSION}_${ARCH}.deb
|
||||
echo "Debian package created at /opt/${PKG_NAME}_${VERSION}_${ARCH}.deb"
|
||||
echo "::set-output name=VERSION::${VERSION}"
|
||||
}; create_deb'
|
||||
|
||||
- name: Create Git Tag
|
||||
run: |
|
||||
VERSION=${{ steps.build_deb.outputs.VERSION }}
|
||||
git config user.name "theraw"
|
||||
git config user.email "me@julio.al"
|
||||
git tag v$VERSION
|
||||
git push origin v$VERSION
|
||||
|
||||
- name: Upload .deb Package as Release Asset
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: /opt/*.deb
|
||||
tag_name: v${{ steps.build_deb.outputs.version }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
/.phpunit.cache
|
||||
/node_modules
|
||||
/public/build
|
||||
/public/hot
|
||||
/public/storage
|
||||
/storage/*.key
|
||||
/storage/pail
|
||||
/vendor
|
||||
.env
|
||||
.env.backup
|
||||
.env.production
|
||||
.phpactor.json
|
||||
.phpunit.result.cache
|
||||
Homestead.json
|
||||
Homestead.yaml
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
/auth.json
|
||||
/.fleet
|
||||
/.idea
|
||||
/.nova
|
||||
/.vscode
|
||||
/.zed
|
||||
/.cache
|
||||
.cache
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
export user=raw
|
||||
@@ -1,176 +0,0 @@
|
||||
#!/bin/bash
|
||||
case "`grep ID_LIKE /etc/*-release | awk -F '=' '{print $2}'`" in
|
||||
archlinux)
|
||||
if [ "$(whoami)" != "root" ]
|
||||
then
|
||||
echo "You should Login as root to use this script!";
|
||||
echo "May you already have access for sudo, but commands aren't designed with sudo! so..";
|
||||
echo "sudo -i";
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "/nginx/" ]; then
|
||||
echo "We've detect a folder '/nginx/' which means"
|
||||
echo "Maybe you have use this script before!"
|
||||
echo "You can fix this by executing!"
|
||||
echo "./setup clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "/etc/nginx" ]; then
|
||||
echo "We've detect a folder '/etc/nginx' which means"
|
||||
echo "Maybe you have use this script before!"
|
||||
echo "./setup clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "/opt/nginx/" ]; then
|
||||
echo "We've detect a folder '/opt/nginx/' which means"
|
||||
echo "Maybe you have use this script before!"
|
||||
echo "./setup clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p /hostdata/
|
||||
mkdir -p /var/log/nginx/
|
||||
mkdir -p /opt/nginx/modules/
|
||||
useradd -m -g users -s /bin/bash $user
|
||||
|
||||
yes|pacman -Syy
|
||||
yes|pacman -Syyu
|
||||
yes|pacman -S curl wget zip unzip git gcc make cmake automake sudo
|
||||
yes|pacman -S geoip geoip-database zlib geoip-database-extra autoconf libtool
|
||||
yes|pacman -S yajl lmdb glibc libxml2 icu ncurses readline xz python3 python-pip
|
||||
yes|pacman -S net-tools lua htop iftop gd
|
||||
yes|pacman -S libmaxminddb geoip2-database mmdblookup libxml2 libxslt
|
||||
|
||||
su $user <<'EOF'
|
||||
git clone https://aur.archlinux.org/ssdeep.git /home/$user/ssdeep
|
||||
cd /home/$user/ssdeep/ && makepkg --syncdeps
|
||||
yes|makepkg --install
|
||||
makepkg --clean
|
||||
rm -Rf /home/$user/ssdeep
|
||||
EOF
|
||||
cd /opt/
|
||||
git clone https://github.com/SpiderLabs/ModSecurity
|
||||
cd /opt/ModSecurity/
|
||||
git checkout -b v3/master origin/v3/master
|
||||
sh build.sh
|
||||
git submodule init
|
||||
git submodule update
|
||||
./configure
|
||||
make -j`nproc`
|
||||
make install
|
||||
|
||||
cd /opt/nginx/modules/
|
||||
wget https://github.com/simpl/ngx_devel_kit/archive/v0.3.0.zip
|
||||
unzip v0.3.0.zip; rm -Rf v0.3.0.zip
|
||||
mv /opt/nginx/modules/ngx_devel_kit-0.3.0/ /opt/nginx/modules/ngx_devel_kit/
|
||||
|
||||
#Pagespeed Library
|
||||
cd /opt/nginx/modules/
|
||||
wget https://github.com/pagespeed/ngx_pagespeed/archive/v1.13.35.1-beta.zip
|
||||
unzip v1.13.35.1-beta.zip
|
||||
rm -Rf v1.13.35.1-beta.zip
|
||||
|
||||
mv /opt/nginx/modules/incubator-pagespeed-ngx-1.13.35.1-beta /opt/nginx/modules/ngx_pagespeed-1.13.35.1-beta
|
||||
cd /opt/nginx/modules/ngx_pagespeed-1.13.35.1-beta
|
||||
wget https://dl.google.com/dl/page-speed/psol/1.13.35.1-x64.tar.gz
|
||||
tar -xzvf 1.13.35.1-x64.tar.gz; rm -Rf 1.13.35.1-x64.tar.gz
|
||||
|
||||
#LuaJIT Library
|
||||
cd /opt/nginx/modules/
|
||||
git clone http://luajit.org/git/luajit-2.0.git
|
||||
cd luajit-2.0/
|
||||
make -j`nproc`
|
||||
sudo make install
|
||||
ldconfig
|
||||
|
||||
#Naxsi Mod
|
||||
cd /opt/nginx/modules/
|
||||
wget https://github.com/nbs-system/naxsi/archive/master.zip
|
||||
unzip master.zip; rm -Rf master.zip
|
||||
mv /opt/nginx/modules/naxsi-master /opt/nginx/modules/naxsi
|
||||
|
||||
mkdir -p /opt/nginx/modules/
|
||||
cd /opt/nginx/modules/
|
||||
rm -Rf nginx_redis/
|
||||
git clone https://github.com/openresty/set-misc-nginx-module.git
|
||||
git clone https://github.com/FRiCKLE/ngx_cache_purge.git
|
||||
git clone https://github.com/kyprizel/testcookie-nginx-module.git
|
||||
git clone https://github.com/openresty/headers-more-nginx-module.git
|
||||
git clone https://github.com/openresty/echo-nginx-module.git
|
||||
git clone https://github.com/leev/ngx_http_geoip2_module.git
|
||||
git clone https://github.com/openresty/lua-nginx-module.git
|
||||
git clone https://github.com/arut/nginx-mtask-module.git
|
||||
git clone https://github.com/arut/nginx-mysql-module.git
|
||||
git clone https://github.com/SpiderLabs/ModSecurity-nginx.git
|
||||
git clone https://github.com/openresty/encrypted-session-nginx-module.git
|
||||
git clone https://github.com/flant/nginx-http-rdns.git
|
||||
|
||||
# OpenSSL 1.0.2h
|
||||
mkdir -p /opt/nginx/
|
||||
cd /opt/nginx/; wget wget https://github.com/openssl/openssl/archive/OpenSSL_1_0_2h.zip
|
||||
unzip OpenSSL_1_0_2h.zip; rm -Rf OpenSSL_1_0_2h.zip
|
||||
|
||||
# Download Nginx
|
||||
mkdir -p /opt/nginx/sources/
|
||||
cd /opt/nginx/sources/
|
||||
wget 'http://nginx.org/download/nginx-1.13.8.tar.gz'
|
||||
tar -xzvf nginx-1.13.8.tar.gz; rm -Rf nginx-1.13.8.tar.gz
|
||||
cd /opt/nginx/sources/nginx-1.13.8/
|
||||
wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nbuild.sh
|
||||
chmod +x nbuild.sh
|
||||
./nbuild.sh
|
||||
make -j`nproc`
|
||||
make install
|
||||
ldconfig
|
||||
|
||||
mkdir -p /nginx
|
||||
mkdir -p /nginx/live
|
||||
mkdir -p /nginx/logs
|
||||
mkdir -p /nginx/cache
|
||||
mkdir -p /nginx/conf.d
|
||||
touch /nginx/logs/access.log
|
||||
touch /nginx/logs/error.log
|
||||
useradd -r nginx
|
||||
rm -Rf /etc/init.d/nginx
|
||||
cd /etc/init.d/; wget https://raw.githubusercontent.com/theraw/my-nginx/master/etc/init.d/nginx
|
||||
chmod +x /etc/init.d/nginx
|
||||
cd /nginx/; mkdir conf.d; rm -Rf nginx.conf*; wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/ArchLinux/static/nginx.conf
|
||||
mkdir -p /nginx/live/
|
||||
cd /nginx/live/
|
||||
wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/vhost/default
|
||||
|
||||
mkdir -p /hostdata/default
|
||||
mkdir -p /hostdata/default/public_html
|
||||
mkdir -p /hostdata/default/logs
|
||||
mkdir -p /hostdata/default/cache
|
||||
mkdir -p /nginx/modsecurity/
|
||||
cd /hostdata/default/public_html/
|
||||
wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/html/index.html
|
||||
sudo update-rc.d nginx defaults
|
||||
|
||||
mkdir -p /tmp/; cd /tmp; wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/sysctl.conf
|
||||
cat /tmp/sysctl.conf >> /etc/sysctl.conf
|
||||
sysctl -p
|
||||
clear
|
||||
|
||||
cd /nginx/; mkdir db/; cd db/; wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/GeoLite2-Country.mmdb
|
||||
cd /nginx/; rm -Rf *.default
|
||||
cp /opt/nginx/modules/naxsi/naxsi_config/naxsi_core.rules /nginx/naxsi_core.rules
|
||||
cp /opt/ModSecurity/modsecurity.conf-recommended /nginx/modsecurity/modsecurity.conf
|
||||
|
||||
cd /opt/; git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git
|
||||
cp -a /opt/owasp-modsecurity-crs/rules/ /nginx/modsecurity/
|
||||
cp -a /opt/owasp-modsecurity-crs/crs-setup.conf.example /nginx/modsecurity/crs-setup.conf
|
||||
clear
|
||||
#mkdir -p /tmp/; cd /tmp; wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/iptables/install
|
||||
#chmod +x install; ./install
|
||||
#clear
|
||||
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/ArchLinux/static/nginx.service > /usr/lib/systemd/system/nginx.service
|
||||
clear
|
||||
systemctl enable nginx
|
||||
nginx -t
|
||||
;;
|
||||
esac
|
||||
@@ -1,120 +0,0 @@
|
||||
# Suggestions? => https://github.com/theraw/The-World-Is-Yours/issues
|
||||
# Problems? => https://github.com/theraw/The-World-Is-Yours/issues
|
||||
# Errors? => https://github.com/theraw/The-World-Is-Yours/issues
|
||||
user root;
|
||||
worker_processes auto;
|
||||
worker_rlimit_nofile 65535;
|
||||
events {
|
||||
multi_accept on;
|
||||
use epoll;
|
||||
worker_connections 65535;
|
||||
}
|
||||
|
||||
http {
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# =================== START L7 ========================= #
|
||||
# turn this 'on' if you want to use L7 For every domain hosted in your server
|
||||
testcookie off;
|
||||
testcookie_name DOPEHOSTING;
|
||||
testcookie_secret random;
|
||||
testcookie_session $remote_addr;
|
||||
#testcookie_arg GO;
|
||||
testcookie_httponly_flag on;
|
||||
testcookie_max_attempts 3;
|
||||
testcookie_secure_flag on;
|
||||
testcookie_get_only on;
|
||||
testcookie_p3p 'CP="CUR ADM OUR NOR STA NID", policyref="/w3c/p3p.xml"';
|
||||
testcookie_fallback /cookies.html?backurl=$scheme://$host$request_uri;
|
||||
|
||||
# Those are some ip's whitelisted by me. mostly are search engines. But not everything!
|
||||
testcookie_whitelist {
|
||||
8.8.8.8/32;
|
||||
127.0.0.1/32;
|
||||
# I don't suggest using alot of IPs here as this whitelist can fail!.
|
||||
}
|
||||
testcookie_redirect_via_refresh on;
|
||||
testcookie_refresh_encrypt_cookie on;
|
||||
testcookie_refresh_encrypt_cookie_key random;
|
||||
testcookie_refresh_encrypt_cookie_iv random;
|
||||
testcookie_refresh_template '<html><head><meta http-equiv="refresh" content="0; $testcookie_nexturl"><title>Just a moment please...</title></head><body> </script><script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script><script type=\"text/javascript\" src="//proxy2.dopehosting.net/aes.min.js" ></script><script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("$testcookie_enc_key"),b=toNumbers("$testcookie_enc_iv"),c=toNumbers("$testcookie_enc_set");document.cookie="DOPEHOSTING="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/";</script></body></html>';
|
||||
# ===================== END L7 ========================= #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# ===================== LOGS =========================== #
|
||||
log_format main '$remote_addr |==| $status |==| $request |==| $time_local';
|
||||
# -------------------------------------------------------#
|
||||
log_format agent '$remote_addr |==| $status |==| $request |==| $http_user_agent';
|
||||
# -------------------------------------------------------#
|
||||
log_format full '$remote_addr |==| $remote_user |==| $time_local |==| $request |==| $status |==| $body_bytes_sent |==| $http_referer |==| $http_user_agent |==| $http_x_forwarded_for';
|
||||
# =================== END LOGS ========================= #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# ===================== GEIP =========================== #
|
||||
geoip2 /nginx/db/GeoLite2-Country.mmdb {
|
||||
$geoip2_data_country_code default=US country iso_code;
|
||||
$geoip2_data_country_name country names en;
|
||||
}
|
||||
|
||||
# EX Ban China!
|
||||
#map $geoip2_data_country_code $allowed_country {
|
||||
# default yes;
|
||||
# CN no;
|
||||
#}
|
||||
# =================== END GEIP ========================= #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# ===================== EXTRA ========================== #
|
||||
# Don't Go with "Nginx Can Handle Everything" !
|
||||
limit_conn_zone $server_name zone=max:1m;
|
||||
limit_req_zone $binary_remote_addr zone=one:1m rate=1r/s;
|
||||
# =================== END EXTRA ======================== #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# ==================== BACKENDS ======================== #
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
# Example Of Backend
|
||||
#upstream varnish {
|
||||
# zone tcp_servers 64k;
|
||||
# server 10.10.10.39:80;
|
||||
#}
|
||||
# =================== END BACKENDS ===================== #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# ==================== GENERAL ========================= #
|
||||
client_body_buffer_size 1M;
|
||||
client_header_buffer_size 1M;
|
||||
client_body_timeout 90s;
|
||||
client_header_timeout 90s;
|
||||
client_max_body_size 2M;
|
||||
keepalive_timeout 10s;
|
||||
port_in_redirect off;
|
||||
sendfile on;
|
||||
server_names_hash_bucket_size 6969;
|
||||
server_name_in_redirect off;
|
||||
server_tokens off;
|
||||
tcp_nodelay on;
|
||||
tcp_nopush on;
|
||||
types_hash_max_size 2048;
|
||||
resolver 8.8.8.8 8.8.4.4;
|
||||
default_type application/octet-stream;
|
||||
include /nginx/mime.types;
|
||||
# =================== END GENERAL ====================== #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# =================== LOAD CONFIGS ===================== #
|
||||
include /nginx/live/*;
|
||||
include /nginx/conf.d/*;
|
||||
include /nginx/naxsi_core.rules;
|
||||
# =================== END CONFIGS ====================== #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
[Unit]
|
||||
Description=A high performance web server and a reverse proxy server
|
||||
After=network.target network-online.target nss-lookup.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/nginx.pid
|
||||
PrivateDevices=yes
|
||||
SyslogLevel=err
|
||||
|
||||
ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; error_log stderr;'
|
||||
ExecReload=/usr/bin/nginx -s reload
|
||||
KillSignal=SIGQUIT
|
||||
KillMode=mixed
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
yum -y update; yum -y upgrade; yum -y install epel-release wget zip unzip git nano
|
||||
yum -y install lvemanager
|
||||
yum -y install cagefs
|
||||
yum -y groupinstall alt-php
|
||||
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -1,122 +1,133 @@
|
||||
# Nginx L7 DDoS Protection! :boom: :zap:
|
||||
*(Please Read Whole Page, All Things Are Important Then If You Want You Can Use IT.)*
|
||||
|
||||
# This is it!
|
||||
There will be no other version of this PR, This is the only and one and the best that you can find for free where you can see/do/change anything on your will and not some encrypted piece of code! This is pure open source code as you can open any file and read anything, This script automatically compiles nginx from source with lots of modules helpful but mostly who play a big role in L7 Anti-DDoS, including the L7 nginx module which you can configure as simple as https://github.com/theraw/The-World-Is-Yours/issues/10#issuecomment-442579528 more then that consider a [Donate](https://github.com/theraw/The-World-Is-Yours/blob/master/.github/FUNDING.yml) and you can contact me for further support!
|
||||

|
||||
|
||||
Summer is here, after that i may be working and i don't see having much of free time to play with nginx!
|
||||
- [x] **Support Ubuntu 22.04**
|
||||
- [x] **Latest Nginx 1.26.0**
|
||||
- [x] **HTTP/3**
|
||||
- [x] **Admin Panel** : Optional *(Not installed by default)*
|
||||
- [X] **Home Page** *(Nginx stats/graph via nginx stub stats)*
|
||||
- [X] **Vhosts Page** *(Create, Delete, Edit)*
|
||||
- [X] **IP Management** *(add, edit, delete)* *selectable on vhost creation*
|
||||
- [X] **Ports Management** *(add, edit, delete)* *selectable on vhost creation*
|
||||
- [ ] **Nginx Settings Page** *(Only change existing nginx.conf values)*
|
||||
- [ ] **Log Reporting Page** (Not set yet, might be all in one page or seperated pages for access logs, modsec logs)
|
||||
- [x] **Php Selector** (a.k.a creation of dedicated fpm pool) *selectable on vhost creation*
|
||||
- [ ] **One click App installer** *(WordPress)*
|
||||
- [x] ModSecurity Support *(Ngx Mod)*
|
||||
- [x] Naxsi Support *(Ngx Mod)*
|
||||
- [x] Lua Support.
|
||||
- [X] **AutoSSL** *(Lua Mod)*
|
||||
- [ ] **Rate Limit** *(Lua Mod)*
|
||||
- [ ] **Captcha** *(Lua Mod)*
|
||||
- [x] Cookie Based Challenge *(Ngx Mod)*
|
||||
- [x] [Versions List](https://github.com/theraw/The-World-Is-Yours/blob/master/version)
|
||||
|
||||
# To-Do
|
||||
# Installation methods.
|
||||
|
||||
- [x] Nginx Version, Always Latest.
|
||||
- [x] Support Ubuntu Trusty. (14.04)
|
||||
- [x] Support Ubuntu Xenial. (16.04)
|
||||
- [x] Support Ubuntu Cosmic. (18.10)
|
||||
- [x] Support Arch Linux.
|
||||
- [x] ModSecurity Support.
|
||||
- [x] Naxsi Support.
|
||||
- [x] L7 Protection.
|
||||
- [x] AutoBan System.
|
||||
- [x] Integrate Fail2Ban > IpTables.
|
||||
- 1 : **Repository (Easy)**
|
||||
```bash
|
||||
# Add repository and update system.
|
||||
echo '' > /etc/apt/sources.list.d/the-world-is-yours.list
|
||||
apt-get update; apt-get upgrade -y
|
||||
|
||||
# Installation
|
||||
# Install nginx.
|
||||
apt-get install raweb -y
|
||||
|
||||
1. **`apt-get install build-essential libssl-dev curl nano wget zip unzip sudo git psmisc -y`**
|
||||
# Install admin panel.
|
||||
apt-get install raweb-admin -y
|
||||
```
|
||||
- 2 : **Manual .deb (Med)**
|
||||
```bash
|
||||
Download them from : https://github.com/theraw/The-World-Is-Yours/releases
|
||||
```
|
||||
- 3 : **Compile from source (Hard)**
|
||||
```bash
|
||||
apt-get -y install git && cd /root/ && git clone https://github.com/theraw/The-World-Is-Yours.git && cd The-World-Is-Yours/
|
||||
|
||||
2. **`git clone https://github.com/theraw/The-World-Is-Yours.git`**
|
||||
|
||||
3. **`cd The-World-Is-Yours/; chmod +x *`**
|
||||
|
||||
4. **`./install`**
|
||||
bash build/run.sh new
|
||||
bash build/run.sh build
|
||||
bash build/run.sh postfix
|
||||
```
|
||||
- 3.1 : **Compiling from source with changed versions**
|
||||
```bash
|
||||
# assuming you completed step 3.
|
||||
# update "version" file then run again
|
||||
bash build/run.sh new
|
||||
bash build/run.sh build
|
||||
```
|
||||
|
||||
|
||||
# Informations.
|
||||
|
||||
**What if installation script fails?** - Check what was the problem source fix it (mostly should be for missing packages) then remove everything under /opt/ folder and just execute again ./install
|
||||
|
||||
```
|
||||
=> /nginx/ = Nginx Path,
|
||||
=> /nginx/live/ = Vhosts Config Files Dir,
|
||||
=> /nginx/logs/ = Core Logs Files,
|
||||
=> /nginx/modsecurity/ = ModSecurity Rules Dir,
|
||||
=> /hostdata/ = Place to store your domain folders.
|
||||
=> /hostdata/yourdomain.com/ = Ex of domain dir (private folder),
|
||||
=> /hostdata/yourdomain.com/public_html/ = Ex of your domain webroot (public files only),
|
||||
=> /hostdata/yourdomain.com/logs/ = Place where to store your Domains logs (access.log) (private folder),
|
||||
=> /hostdata/yourdomain.com/ssl/ = Place where to store domain ssl/key (private folder),
|
||||
=> /hostdata/yourdomain.com/cache/ = Place where to store site cache (private folder).
|
||||
|
||||
// Private Folder - Means this cannot be accessed by public.
|
||||
// Public Folder - Means files into this folder can be accessed by public.
|
||||
## CLI Info
|
||||
```bash
|
||||
bash build/run.sh new => Download all modules + nginx that are missing from /opt/. (If you make version changes to 'version' file then simply rerun this to download again)
|
||||
bash build/run.sh build => This is going to simply compile nginx nothing else. (You can run this as many times as you need, its not going to replace configs)
|
||||
bash build/run.sh postfix => This will redownload /nginx/nginx.conf everytime you run it. (Suggested to run only once when you install nginx via my repo for first time)
|
||||
```
|
||||
|
||||
|
||||
# Check.
|
||||
|
||||
1 . [L7 (Cookie Based Protection)](https://github.com/theraw/The-World-Is-Yours/blob/master/static/nginx.conf#L15-L42) AND [Replace "proxy2.dope.. links with yours click here to find aes](https://github.com/theraw/The-World-Is-Yours/tree/master/static/vhost) which should be stored on a external link or in a place where L7 is disabled because it will not work if you put it in main site dir!.
|
||||
|
||||
2 . [Auto Ban System](https://github.com/theraw/The-World-Is-Yours/blob/master/iptables/jail.local#L105-L111) based on [Connection for ip](https://github.com/theraw/The-World-Is-Yours/blob/master/static/nginx.conf#L72-L73)
|
||||
|
||||
3 . [Auto Ban 444 Reqs](https://github.com/theraw/The-World-Is-Yours/blob/master/iptables/jail.local#L113-L118) A day i've been under attack of multiple proxies, and even after they got banned they still was keep trying the same thing so when you ban someone when that ip tries to access your website that request will not go on `error.log` but in `access.log` so i created this rule to ban with iptables every request who have stauts `444` so nginx will not have to handle those.
|
||||
|
||||
4 . [Kernel Settings](https://github.com/theraw/The-World-Is-Yours/blob/master/static/sysctl.conf#L1-L34)
|
||||
|
||||
5 . [Naxsi Rules Included](https://github.com/theraw/The-World-Is-Yours/blob/master/static/nginx.conf#L118)
|
||||
|
||||
6 . [Example of Naxsi](https://github.com/theraw/The-World-Is-Yours/blob/master/static/vhost/default#L22-L29)
|
||||
|
||||
7 . [Check Iptables rules](https://github.com/theraw/The-World-Is-Yours/blob/master/iptables/rules) It will not be automatically enabled, because this changes based on providers in ovh it work in azure it doesn't work. so you need to manually activate iptables!
|
||||
|
||||
8 . ModSecurity is not loaded. However you need to set it up by yourself. you have a folder `/nginx/modsecurity/`
|
||||
which ModSecurity rules are stored, open `/nginx/modsecurity/modsecurity.conf` add those
|
||||
## Nginx Structure.
|
||||
|
||||
```bash
|
||||
Include crs-setup.conf
|
||||
Include rules/*.conf
|
||||
```
|
||||
ModSecurity is by default enabled as "detect only" you can turn it on always by doing this
|
||||
=> Nginx Folder = /nginx/
|
||||
=> --conf-path = /nginx/nginx.conf
|
||||
=> --pid-path = /var/run/nginx.pid
|
||||
=> --user = nginx
|
||||
=> --group = nginx
|
||||
=> --sbin-path = /usr/sbin/nginx
|
||||
=> --error-log-path = /var/log/nginx/error.log
|
||||
|
||||
```bash
|
||||
SecRuleEngine On
|
||||
LUA RESTY CORE SCRIPTS = /usr/nginx_lua
|
||||
|
||||
# Admin Panel Info
|
||||
=> Folder = /nginx/admin/public_html
|
||||
```
|
||||
|
||||
Using modSecurity for your site
|
||||
```bash
|
||||
server {
|
||||
.....
|
||||
modsecurity on;
|
||||
modsecurity_rules_file /nginx/modsecurity/modsecurity.conf;
|
||||
location / {
|
||||
.....
|
||||
}
|
||||
}
|
||||
```
|
||||
**Careful** Using modsec rules like
|
||||
```
|
||||
location / {
|
||||
modsecurity_rules_file /nginx/modsecurity/modsecurity.conf;
|
||||
}
|
||||
```
|
||||
it means that's enabled just for your main place `/` not for other dirs in your site ex `/admin/` (:
|
||||
## How to install lua scripts
|
||||
|
||||
- Method 1
|
||||
```bash
|
||||
. /root/The-World-Is-Yours/version
|
||||
cd /opt/mod/; git clone https://github.com/openresty/lua-resty-lrucache.git
|
||||
cd /opt/mod/lua-resty-lrucache; make install PREFIX=${LUA_SCRIPTS}
|
||||
nginx -s reload
|
||||
```
|
||||
- Method 2
|
||||
```bash
|
||||
# At first when you use this method you may get errors for missing lua scripts, you can install them with "luarocks".
|
||||
apt-get install luarocks
|
||||
luarocks install lua-resty-lrucache
|
||||
```
|
||||
|
||||
# Support options.
|
||||
|
||||
- No free support for how to do things, please don't spam with questions in discord.
|
||||
- Free support for installation related errors only, is included.
|
||||
|
||||
- Business inquiries, regarding anti-ddos protection or other security/optimization concerns you can contact me on : raw@dopehosting.net
|
||||
|
||||
|
||||
Test it!
|
||||
`curl 'http://localhost/?q="><script>wanna hack</script>'`
|
||||
```html
|
||||
<html>
|
||||
<head><title>403 Forbidden</title></head>
|
||||
<body bgcolor="white">
|
||||
<center><h1>403 Forbidden</h1></center>
|
||||
<hr><center>nginx</center>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
## Contributors
|
||||
|
||||
# Keep In Mind.
|
||||
The **L7 Protection** is the same way which **cloudflare** have that banner "Under Attack" A.K.A Cookie based authorization. Most of bots from where attacks will come doesn't support cookies so it will fail to access your site. (Test it by yourself to "curl http://yoursite.com" before you activate L7 and after you start L7 so you will understand better.)
|
||||
Feel free to submit a pull request.
|
||||
Special thanks to the following contributors:
|
||||
|
||||
The L7 protection is a good thing for your protection. But a very bad thing for your website seo!, As facebook/google/bing and all search engines will not be able to access your website anymore. There is a way to allow them but if you have 1 year free time to find all their ips go and try it. I've been thinking for a "reverse dns" whitelist but haven't done it so as of now it is like this.
|
||||
|
||||
# Contributors
|
||||
|
||||
Feel free to pull request or do a suggestion..
|
||||
<!-- prettier-ignore-start -->
|
||||
<!-- markdownlint-disable -->
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/theraw">
|
||||
<img src="https://avatars.githubusercontent.com/u/32969774?v=4" width="80" alt=""/>
|
||||
<br /><sub><b>ƬHE ЯAW ☣</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/lucthienphong1120">
|
||||
<img src="https://avatars.githubusercontent.com/u/90561566?v=4" width="80" alt=""/>
|
||||
<br /><sub><b>Lục Thiên Phong</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
geo $white_bot {
|
||||
default 0;
|
||||
include /nginx/whitelist/whitelist-ips.conf;
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
ireqs() {
|
||||
mkdir -p /tmp/nginx-plus/; cd /tmp/nginx-plus
|
||||
wget
|
||||
apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y
|
||||
apt-get autoremove -y
|
||||
apt-get install apt-utils build-essential -y
|
||||
apt-get install git -y
|
||||
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg libxml2 zlib1g-dev -y
|
||||
apt-get install -y unzip
|
||||
apt-get install -y libicu-dev libcurl4-gnutls-dev libtool
|
||||
apt-get install -y libmozjs-24-dev
|
||||
apt-get install -y libmozjs-24-bin; sudo ln -sf /usr/bin/js24 /usr/bin/js
|
||||
apt-get install openssl libssl-dev libperl-dev libexpat-dev -y
|
||||
apt-get install mercurial meld -y
|
||||
apt-get install libxslt-dev -y
|
||||
apt-get install libgd2-xpm -y
|
||||
apt-get install libgd2-xpm-dev -y
|
||||
apt-get install libgeoip-dev -y
|
||||
apt-get install libssl libssl-dev -y
|
||||
apt-get install dh-autoreconf -y
|
||||
apt-get install -y software-properties-common
|
||||
apt-get install -y python-software-properties
|
||||
apt-get install -y libcairo2 libcairo2-dev
|
||||
apt-get install -y python-dev
|
||||
sudo add-apt-repository ppa:maxmind/ppa -y
|
||||
apt-get install aptitude -y
|
||||
aptitude update -y
|
||||
aptitude upgrade -y
|
||||
aptitude install libmaxminddb0 libmaxminddb-dev mmdb-bin -y
|
||||
apt-get install libmysqlclient-dev -y
|
||||
apt-get install libmariadbclient-dev -y
|
||||
apt-get install g++ flex bison curl doxygen libyajl-dev libgeoip-dev libtool dh-autoreconf libcurl4-gnutls-dev libxml2 libpcre++-dev libxml2-dev -y
|
||||
}
|
||||
|
||||
# Nginx Env's Extra Stuff.
|
||||
#ngx-envs() {
|
||||
#
|
||||
#}
|
||||
|
||||
download() {
|
||||
cd /
|
||||
wget https://github.com/systemroot/my-nginx/raw/master/nginx-plus/nginx-plus.zip
|
||||
unzip -P ****** nginx-plus.zip; rm -Rf nginx-plus.zip
|
||||
clear
|
||||
}
|
||||
|
||||
rebuild-conf() {
|
||||
|
||||
}
|
||||
|
||||
download-mods() {
|
||||
|
||||
}
|
||||
|
||||
compile-mods() {
|
||||
|
||||
}
|
||||
|
||||
move-mods() {
|
||||
|
||||
}
|
||||
@@ -1,498 +0,0 @@
|
||||
# ====================================
|
||||
# GOOGLE.
|
||||
# ====================================
|
||||
108.177.8.0/21 1;
|
||||
54.36.0.0/16 1;
|
||||
104.132.0.0/23 1;
|
||||
104.132.11.0/24 1;
|
||||
104.132.141.0/24 1;
|
||||
104.132.34.0/24 1;
|
||||
104.132.5.0/24 1;
|
||||
104.132.51.0/24 1;
|
||||
104.132.7.0/24 1;
|
||||
104.132.8.0/24 1;
|
||||
104.133.0.0/24 1;
|
||||
104.133.2.0/23 1;
|
||||
104.154.0.0/15 1;
|
||||
104.196.0.0/14 1;
|
||||
107.167.160.0/19 1;
|
||||
107.178.192.0/18 1;
|
||||
108.170.192.0/18 1;
|
||||
108.177.0.0/17 1;
|
||||
108.177.10.0/24 1;
|
||||
108.177.103.0/24 1;
|
||||
108.177.104.0/24 1;
|
||||
108.177.11.0/24 1;
|
||||
108.177.112.0/24 1;
|
||||
108.177.119.0/24 1;
|
||||
108.177.120.0/24 1;
|
||||
108.177.12.0/24 1;
|
||||
108.177.121.0/24 1;
|
||||
108.177.125.0/24 1;
|
||||
108.177.126.0/24 1;
|
||||
108.177.127.0/24 1;
|
||||
108.177.13.0/24 1;
|
||||
108.177.14.0/24 1;
|
||||
108.177.15.0/24 1;
|
||||
108.177.28.0/24 1;
|
||||
108.177.30.0/24 1;
|
||||
108.177.8.0/24 1;
|
||||
108.177.9.0/24 1;
|
||||
108.177.96.0/24 1;
|
||||
108.177.97.0/24 1;
|
||||
108.177.98.0/24 1;
|
||||
108.59.80.0/20 1;
|
||||
130.211.0.0/16 1;
|
||||
142.250.0.0/15 1;
|
||||
146.148.0.0/17 1;
|
||||
162.216.148.0/22 1;
|
||||
162.222.176.0/21 1;
|
||||
172.102.10.0/24 1;
|
||||
172.102.11.0/24 1;
|
||||
172.102.12.0/23 1;
|
||||
172.102.14.0/23 1;
|
||||
172.102.8.0/21 1;
|
||||
172.102.8.0/24 1;
|
||||
172.110.32.0/21 1;
|
||||
172.217.0.0/16 1;
|
||||
172.217.0.0/24 1;
|
||||
172.217.10.0/24 1;
|
||||
172.217.1.0/24 1;
|
||||
172.217.11.0/24 1;
|
||||
172.217.12.0/24 1;
|
||||
172.217.13.0/24 1;
|
||||
172.217.14.0/24 1;
|
||||
172.217.15.0/24 1;
|
||||
172.217.16.0/24 1;
|
||||
172.217.17.0/24 1;
|
||||
172.217.18.0/24 1;
|
||||
172.217.19.0/24 1;
|
||||
172.217.20.0/24 1;
|
||||
172.217.2.0/24 1;
|
||||
172.217.21.0/24 1;
|
||||
172.217.22.0/24 1;
|
||||
172.217.23.0/24 1;
|
||||
172.217.24.0/24 1;
|
||||
172.217.25.0/24 1;
|
||||
172.217.26.0/24 1;
|
||||
172.217.27.0/24 1;
|
||||
172.217.28.0/24 1;
|
||||
172.217.29.0/24 1;
|
||||
172.217.30.0/24 1;
|
||||
172.217.3.0/24 1;
|
||||
172.217.31.0/24 1;
|
||||
172.217.4.0/24 1;
|
||||
172.217.5.0/24 1;
|
||||
172.217.6.0/24 1;
|
||||
172.217.7.0/24 1;
|
||||
172.217.8.0/24 1;
|
||||
172.217.9.0/24 1;
|
||||
172.253.0.0/16 1;
|
||||
173.194.112.0/24 1;
|
||||
173.194.113.0/24 1;
|
||||
173.194.117.0/24 1;
|
||||
173.194.118.0/24 1;
|
||||
173.194.119.0/24 1;
|
||||
173.194.120.0/24 1;
|
||||
173.194.121.0/24 1;
|
||||
173.194.124.0/24 1;
|
||||
173.194.132.0/24 1;
|
||||
173.194.136.0/24 1;
|
||||
173.194.140.0/24 1;
|
||||
173.194.141.0/24 1;
|
||||
173.194.142.0/24 1;
|
||||
173.194.175.0/24 1;
|
||||
173.194.192.0/24 1;
|
||||
173.194.193.0/24 1;
|
||||
173.194.194.0/24 1;
|
||||
173.194.195.0/24 1;
|
||||
173.194.196.0/24 1;
|
||||
173.194.197.0/24 1;
|
||||
173.194.198.0/24 1;
|
||||
173.194.199.0/24 1;
|
||||
173.194.200.0/24 1;
|
||||
173.194.201.0/24 1;
|
||||
173.194.202.0/24 1;
|
||||
173.194.203.0/24 1;
|
||||
173.194.204.0/24 1;
|
||||
173.194.205.0/24 1;
|
||||
173.194.206.0/24 1;
|
||||
173.194.207.0/24 1;
|
||||
173.194.208.0/24 1;
|
||||
173.194.209.0/24 1;
|
||||
173.194.210.0/24 1;
|
||||
173.194.211.0/24 1;
|
||||
173.194.212.0/24 1;
|
||||
173.194.213.0/24 1;
|
||||
173.194.214.0/24 1;
|
||||
173.194.215.0/24 1;
|
||||
173.194.216.0/24 1;
|
||||
173.194.217.0/24 1;
|
||||
173.194.218.0/24 1;
|
||||
173.194.219.0/24 1;
|
||||
173.194.220.0/24 1;
|
||||
173.194.221.0/24 1;
|
||||
173.194.222.0/24 1;
|
||||
173.194.223.0/24 1;
|
||||
173.194.32.0/24 1;
|
||||
173.194.34.0/24 1;
|
||||
173.194.35.0/24 1;
|
||||
173.194.36.0/24 1;
|
||||
173.194.37.0/24 1;
|
||||
173.194.38.0/24 1;
|
||||
173.194.39.0/24 1;
|
||||
173.194.40.0/24 1;
|
||||
173.194.41.0/24 1;
|
||||
173.194.42.0/24 1;
|
||||
173.194.44.0/24 1;
|
||||
173.194.46.0/24 1;
|
||||
173.194.53.0/24 1;
|
||||
173.194.63.0/24 1;
|
||||
173.194.66.0/24 1;
|
||||
173.194.67.0/24 1;
|
||||
173.194.68.0/24 1;
|
||||
173.194.69.0/24 1;
|
||||
173.194.70.0/24 1;
|
||||
173.194.7.0/24 1;
|
||||
173.194.73.0/24 1;
|
||||
173.194.74.0/24 1;
|
||||
173.194.76.0/24 1;
|
||||
173.194.78.0/24 1;
|
||||
173.194.79.0/24 1;
|
||||
173.255.112.0/20 1;
|
||||
185.150.148.0/22 1;
|
||||
185.25.28.0/23 1;
|
||||
192.104.160.0/23 1;
|
||||
192.158.28.0/22 1;
|
||||
192.178.0.0/15 1;
|
||||
199.192.112.0/22 1;
|
||||
199.223.232.0/21 1;
|
||||
207.223.160.0/20 1;
|
||||
208.68.108.0/22 1;
|
||||
208.81.188.0/22 1;
|
||||
209.107.176.0/20 1;
|
||||
209.107.176.0/23 1;
|
||||
209.107.182.0/23 1;
|
||||
209.107.184.0/23 1;
|
||||
209.107.185.0/24 1;
|
||||
209.85.144.0/24 1;
|
||||
209.85.145.0/24 1;
|
||||
209.85.147.0/24 1;
|
||||
209.85.200.0/24 1;
|
||||
209.85.201.0/24 1;
|
||||
209.85.202.0/24 1;
|
||||
209.85.203.0/24 1;
|
||||
209.85.232.0/24 1;
|
||||
209.85.233.0/24 1;
|
||||
209.85.234.0/24 1;
|
||||
209.85.235.0/24 1;
|
||||
216.239.32.0/24 1;
|
||||
216.239.33.0/24 1;
|
||||
216.239.34.0/24 1;
|
||||
216.239.35.0/24 1;
|
||||
216.239.36.0/24 1;
|
||||
216.239.38.0/24 1;
|
||||
216.239.39.0/24 1;
|
||||
216.252.220.0/22 1;
|
||||
216.252.220.0/24 1;
|
||||
216.252.222.0/24 1;
|
||||
216.58.200.0/24 1;
|
||||
216.58.208.0/24 1;
|
||||
216.58.209.0/24 1;
|
||||
216.58.210.0/24 1;
|
||||
216.58.211.0/24 1;
|
||||
216.58.212.0/24 1;
|
||||
216.58.213.0/24 1;
|
||||
216.58.214.0/24 1;
|
||||
216.58.215.0/24 1;
|
||||
216.58.216.0/24 1;
|
||||
216.58.217.0/24 1;
|
||||
216.58.218.0/24 1;
|
||||
216.58.219.0/24 1;
|
||||
216.58.220.0/24 1;
|
||||
216.58.221.0/24 1;
|
||||
216.58.222.0/24 1;
|
||||
216.58.223.0/24 1;
|
||||
216.73.80.0/20 1;
|
||||
23.236.48.0/20 1;
|
||||
23.251.128.0/19 1;
|
||||
35.184.0.0/13 1;
|
||||
35.192.0.0/13 1;
|
||||
35.200.0.0/14 1;
|
||||
35.204.0.0/15 1;
|
||||
35.224.0.0/14 1;
|
||||
35.228.0.0/14 1;
|
||||
35.232.0.0/14 1;
|
||||
35.236.0.0/14 1;
|
||||
35.240.0.0/14 1;
|
||||
35.244.0.0/14 1;
|
||||
64.233.161.0/24 1;
|
||||
64.233.162.0/24 1;
|
||||
64.233.163.0/24 1;
|
||||
64.233.164.0/24 1;
|
||||
64.233.165.0/24 1;
|
||||
64.233.166.0/24 1;
|
||||
64.233.167.0/24 1;
|
||||
64.233.168.0/24 1;
|
||||
64.233.169.0/24 1;
|
||||
64.233.170.0/24 1;
|
||||
64.233.171.0/24 1;
|
||||
64.233.176.0/24 1;
|
||||
64.233.177.0/24 1;
|
||||
64.233.178.0/24 1;
|
||||
64.233.179.0/24 1;
|
||||
64.233.180.0/24 1;
|
||||
64.233.181.0/24 1;
|
||||
64.233.182.0/24 1;
|
||||
64.233.183.0/24 1;
|
||||
64.233.184.0/24 1;
|
||||
64.233.185.0/24 1;
|
||||
64.233.186.0/24 1;
|
||||
64.233.187.0/24 1;
|
||||
64.233.188.0/24 1;
|
||||
64.233.189.0/24 1;
|
||||
64.233.190.0/24 1;
|
||||
64.233.191.0/24 1;
|
||||
66.102.1.0/24 1;
|
||||
66.102.12.0/24 1;
|
||||
66.102.2.0/24 1;
|
||||
66.102.3.0/24 1;
|
||||
66.102.4.0/24 1;
|
||||
66.249.64.0/19 1;
|
||||
70.32.128.0/19 1;
|
||||
70.32.131.0/24 1;
|
||||
70.32.145.0/24 1;
|
||||
70.32.146.0/23 1;
|
||||
70.32.151.0/24 1;
|
||||
74.114.24.0/21 1;
|
||||
74.125.124.0/24 1;
|
||||
74.125.126.0/24 1;
|
||||
74.125.127.0/24 1;
|
||||
74.125.128.0/24 1;
|
||||
74.125.129.0/24 1;
|
||||
74.125.130.0/24 1;
|
||||
74.125.131.0/24 1;
|
||||
74.125.132.0/24 1;
|
||||
74.125.133.0/24 1;
|
||||
74.125.134.0/24 1;
|
||||
74.125.135.0/24 1;
|
||||
74.125.136.0/24 1;
|
||||
74.125.138.0/24 1;
|
||||
74.125.139.0/24 1;
|
||||
74.125.140.0/24 1;
|
||||
74.125.141.0/24 1;
|
||||
74.125.143.0/24 1;
|
||||
74.125.192.0/24 1;
|
||||
74.125.196.0/24 1;
|
||||
74.125.197.0/24 1;
|
||||
74.125.198.0/24 1;
|
||||
74.125.199.0/24 1;
|
||||
74.125.200.0/24 1;
|
||||
74.125.201.0/24 1;
|
||||
74.125.202.0/24 1;
|
||||
74.125.203.0/24 1;
|
||||
74.125.204.0/24 1;
|
||||
74.125.205.0/24 1;
|
||||
74.125.206.0/24 1;
|
||||
74.125.21.0/24 1;
|
||||
74.125.22.0/24 1;
|
||||
74.125.225.0/24 1;
|
||||
74.125.226.0/24 1;
|
||||
74.125.227.0/24 1;
|
||||
74.125.228.0/24 1;
|
||||
74.125.230.0/24 1;
|
||||
74.125.23.0/24 1;
|
||||
74.125.232.0/24 1;
|
||||
74.125.234.0/24 1;
|
||||
74.125.235.0/24 1;
|
||||
74.125.236.0/24 1;
|
||||
74.125.238.0/24 1;
|
||||
74.125.24.0/24 1;
|
||||
74.125.26.0/24 1;
|
||||
74.125.27.0/24 1;
|
||||
74.125.28.0/24 1;
|
||||
74.125.29.0/24 1;
|
||||
74.125.30.0/24 1;
|
||||
74.125.31.0/24 1;
|
||||
74.125.39.0/24 1;
|
||||
74.125.6.0/24 1;
|
||||
74.125.68.0/24 1;
|
||||
74.125.69.0/24 1;
|
||||
74.125.70.0/24 1;
|
||||
74.125.71.0/24 1;
|
||||
8.34.208.0/21 1;
|
||||
8.34.216.0/21 1;
|
||||
8.35.192.0/21 1;
|
||||
8.35.200.0/21 1;
|
||||
8.8.4.0/24 1;
|
||||
8.8.8.0/24 1;
|
||||
108.177.96.0/19 1;
|
||||
172.217.0.0/19 1;
|
||||
173.194.0.0/16 1;
|
||||
2001:4860:4000::/36 1;
|
||||
203.208.60.0/24 1;
|
||||
207.126.144.0/20 1;
|
||||
209.85.128.0/17 1;
|
||||
216.239.32.0/19 1;
|
||||
216.58.192.0/19 1;
|
||||
2404:6800:4000::/36 1;
|
||||
2607:f8b0:4000::/36 1;
|
||||
2800:3f0:4000::/36 1;
|
||||
2a00:1450:4000::/36 1;
|
||||
2c0f:fb50:4000::/36 1;
|
||||
64.18.0.0/20 1;
|
||||
64.233.160.0/19 1;
|
||||
64.68.80.0/21 1;
|
||||
66.102.0.0/20 1;
|
||||
66.249.64.0/18 1;
|
||||
72.14.192.0/18 1;
|
||||
74.125.0.0/16 1;
|
||||
# ====================================
|
||||
# END GOOGLE.
|
||||
# ====================================
|
||||
|
||||
# ====================================
|
||||
# START BING.
|
||||
# ====================================
|
||||
131.253.24.0/22 1;
|
||||
131.253.46.0/23 1;
|
||||
157.54.0.0/15 1;
|
||||
157.56.0.0/14 1;
|
||||
157.60.0.0/16 1;
|
||||
199.30.16.0/24 1;
|
||||
199.30.27.0/24 1;
|
||||
207.46.0.0/16 1;
|
||||
40.112.0.0/13 1;
|
||||
40.120.0.0/14 1;
|
||||
40.124.0.0/16 1;
|
||||
40.125.0.0/17 1;
|
||||
40.74.0.0/15 1;
|
||||
40.76.0.0/14 1;
|
||||
40.80.0.0/12 1;
|
||||
40.96.0.0/12 1;
|
||||
65.52.104.0/24 1;
|
||||
65.52.108.0/22 1;
|
||||
65.55.213.0/24 1;
|
||||
65.55.217.0/24 1;
|
||||
65.55.24.0/24 1;
|
||||
65.55.52.0/24 1;
|
||||
65.55.55.0/24 1;
|
||||
# ====================================
|
||||
# END BING.
|
||||
# ====================================
|
||||
|
||||
# ====================================
|
||||
# START CLOUDFLARE.
|
||||
# ====================================
|
||||
103.21.244.0/22 1;
|
||||
103.22.200.0/22 1;
|
||||
103.31.4.0/22 1;
|
||||
104.16.0.0/12 1;
|
||||
108.162.192.0/18 1;
|
||||
131.0.72.0/22 1;
|
||||
141.101.64.0/18 1;
|
||||
162.158.0.0/15 1;
|
||||
172.64.0.0/13 1;
|
||||
173.245.48.0/20 1;
|
||||
188.114.96.0/20 1;
|
||||
190.93.240.0/20 1;
|
||||
197.234.240.0/22 1;
|
||||
198.41.128.0/17 1;
|
||||
# ====================================
|
||||
# END CLOUDFLARE.
|
||||
# ====================================
|
||||
|
||||
# ====================================
|
||||
# START UPTIME ROBOT.
|
||||
# ====================================
|
||||
216.144.250.150 1;
|
||||
69.162.124.226 1;
|
||||
69.162.124.227 1;
|
||||
69.162.124.228 1;
|
||||
69.162.124.229 1;
|
||||
69.162.124.230 1;
|
||||
69.162.124.231 1;
|
||||
69.162.124.232 1;
|
||||
69.162.124.233 1;
|
||||
69.162.124.234 1;
|
||||
69.162.124.235 1;
|
||||
69.162.124.236 1;
|
||||
69.162.124.237 1;
|
||||
63.143.42.242 1;
|
||||
63.143.42.243 1;
|
||||
63.143.42.244 1;
|
||||
63.143.42.245 1;
|
||||
63.143.42.246 1;
|
||||
63.143.42.247 1;
|
||||
63.143.42.248 1;
|
||||
63.143.42.249 1;
|
||||
63.143.42.250 1;
|
||||
63.143.42.251 1;
|
||||
63.143.42.252 1;
|
||||
63.143.42.253 1;
|
||||
46.137.190.132 1;
|
||||
122.248.234.23 1;
|
||||
188.226.183.141 1;
|
||||
178.62.52.237 1;
|
||||
54.79.28.129 1;
|
||||
54.94.142.218 1;
|
||||
104.131.107.63 1;
|
||||
54.67.10.127 1;
|
||||
54.64.67.106 1;
|
||||
159.203.30.41 1;
|
||||
46.101.250.135 1;
|
||||
18.221.56.27 1;
|
||||
52.60.129.180 1;
|
||||
159.89.8.111 1;
|
||||
146.185.143.14 1;
|
||||
139.59.173.249 1;
|
||||
165.227.83.148 1;
|
||||
128.199.195.156 1;
|
||||
138.197.150.151 1;
|
||||
34.233.66.117 1;
|
||||
# ====================================
|
||||
# END UPTIME ROBOT.
|
||||
# ====================================
|
||||
|
||||
# ====================================
|
||||
# START DOPEHOSTING.NET
|
||||
# ====================================
|
||||
54.37.223.16/30 1;
|
||||
37.59.144.72/30 1;
|
||||
137.74.180.224 1;
|
||||
54.36.45.68 1;
|
||||
46.105.102.209 1;
|
||||
188.165.209.76 1;
|
||||
178.32.143.180 1;
|
||||
94.23.174.121 1;
|
||||
145.239.109.72/30 1;
|
||||
51.254.165.84/30 1;
|
||||
176.31.143.0/30 1;
|
||||
151.80.88.22 1;
|
||||
151.80.88.23 1;
|
||||
164.132.205.172 1;
|
||||
91.134.123.247 1;
|
||||
145.239.77.50 1;
|
||||
178.33.104.93 1;
|
||||
178.33.104.96 1;
|
||||
178.33.104.181 1;
|
||||
178.33.106.145 1;
|
||||
51.254.94.129 1;
|
||||
178.32.56.33 1;
|
||||
164.132.30.228 1;
|
||||
137.74.234.202 1;
|
||||
94.23.172.79 1;
|
||||
46.105.53.116 1;
|
||||
91.134.201.79 1;
|
||||
137.74.234.209 1;
|
||||
54.36.100.120 1;
|
||||
94.23.172.83 1;
|
||||
46.105.51.193 1;
|
||||
178.32.53.54 1;
|
||||
# ====================================
|
||||
# END DOPEHOSTING.NET
|
||||
# ====================================
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
`
|
||||
@@ -1,16 +0,0 @@
|
||||
[Unit]
|
||||
Description=A high performance web server and a reverse proxy server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/nginx.pid
|
||||
ExecStartPre=/usr/sbin/nginx -t -q -g 'daemon on; master_process on;'
|
||||
ExecStart=/usr/sbin/nginx -g 'daemon on; master_process on;'
|
||||
ExecReload=/usr/sbin/nginx -g 'daemon on; master_process on;' -s reload
|
||||
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid
|
||||
TimeoutStopSec=5
|
||||
KillMode=mixed
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
+351
@@ -0,0 +1,351 @@
|
||||
. ./version
|
||||
set -e
|
||||
function reqs() {
|
||||
apt-get update -y; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y
|
||||
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata dialog
|
||||
# apt-get purge nftables firewalld ufw -y; apt-get autoremove -y
|
||||
apt-get -y install wget zip unzip build-essential libssl-dev curl nano git
|
||||
# apt-get -y install iptables ipset
|
||||
apt-get install libtool pkg-config make cmake automake autoconf -y
|
||||
apt-get install libyajl-dev ssdeep zlib1g-dev libxslt1-dev libgd-dev libgeoip-dev liblmdb-dev libfuzzy-dev libmaxminddb-dev liblua5.1-dev libcurl4-openssl-dev libxml2 libxml2-dev libpcre3-dev mercurial libpcre2-dev libc-ares-dev libre2-dev -y
|
||||
mkdir -p $LUA_SCRIPTS
|
||||
}
|
||||
function clean_install() {
|
||||
mkdir -p /opt/mod
|
||||
|
||||
# Nginx
|
||||
if [ ! -d /opt/nginx-${NGINX} ]; then
|
||||
cd /opt/ && wget https://nginx.org/download/nginx-${NGINX}.tar.gz
|
||||
tar xf nginx-${NGINX}.tar.gz && rm -Rf nginx-${NGINX}.tar.gz
|
||||
fi
|
||||
|
||||
# START OF SYSTEM REQUIRED LIBS
|
||||
# ============================================================================================================
|
||||
# OPENSSL
|
||||
if [ ! -d /opt/mod/openssl-opernssl-${SYSTEM_OPENSSL} ]; then
|
||||
cd /opt/mod; wget https://github.com/quictls/openssl/archive/refs/tags/opernssl-${SYSTEM_OPENSSL}.tar.gz
|
||||
cd /opt/mod && tar xf opernssl-${SYSTEM_OPENSSL}.tar.gz; rm -Rf opernssl-${SYSTEM_OPENSSL}.tar.gz
|
||||
fi
|
||||
|
||||
# ZLIB
|
||||
if [ ! -d /opt/mod/zlib ]; then
|
||||
cd /opt/mod && wget http://zlib.net/current/zlib.tar.gz
|
||||
cd /opt/mod && tar xf zlib.tar.gz; rm -Rf zlib.tar.gz; mv zlib-* zlib
|
||||
fi
|
||||
|
||||
# SYSTEM_LUAJIT
|
||||
if [ ! -d /opt/mod/luajit2-${SYSTEM_LUAJIT} ]; then
|
||||
cd /opt/mod && wget https://github.com/openresty/luajit2/archive/refs/tags/v${SYSTEM_LUAJIT}.tar.gz
|
||||
cd /opt/mod && tar xf v${SYSTEM_LUAJIT}.tar.gz && rm -Rf v${SYSTEM_LUAJIT}.tar.gz
|
||||
if [ ! -d /usr/local/LuaJIT/include/luajit-2.1 ]; then
|
||||
cd /opt/mod/luajit2-${SYSTEM_LUAJIT}/ && make clean && make install PREFIX=/usr/local/LuaJIT && ldconfig
|
||||
# apt-get -y install liblua5.1-0-dev; apt-get -y install luarocks; luarocks install lua-resty-core
|
||||
fi
|
||||
fi
|
||||
|
||||
# SYSTEM_MODSECURITY
|
||||
if [ ! -d /opt/mod/modsecurity-v${SYSTEM_MODSECURITY} ]; then
|
||||
cd /opt/mod && wget https://github.com/SpiderLabs/ModSecurity/releases/download/v${SYSTEM_MODSECURITY}/modsecurity-v${SYSTEM_MODSECURITY}.tar.gz
|
||||
cd /opt/mod && tar xf modsecurity-v${SYSTEM_MODSECURITY}.tar.gz; rm -Rf modsecurity-v${SYSTEM_MODSECURITY}.tar.gz
|
||||
if [ ! -d /usr/local/modsecurity ]; then
|
||||
cd /opt/mod/modsecurity-v${SYSTEM_MODSECURITY} && ./configure && make -j`nproc` && make install
|
||||
fi
|
||||
fi
|
||||
|
||||
# SYSTEM_PCRE
|
||||
if [ ! -d /opt/mod/pcre2-pcre2-${SYSTEM_PCRE} ]; then
|
||||
cd /opt/mod && wget https://github.com/PCRE2Project/pcre2/archive/refs/tags/pcre2-${SYSTEM_PCRE}.tar.gz
|
||||
cd /opt/mod && tar xf pcre2-${SYSTEM_PCRE}.tar.gz; rm -Rf pcre2-${SYSTEM_PCRE}.tar.gz
|
||||
cd /opt/mod/pcre2-pcre2-${SYSTEM_PCRE} && ./autogen.sh
|
||||
fi
|
||||
|
||||
# LibInjection
|
||||
if [ ! -d /opt/mod/libinjection ]; then
|
||||
cd /opt/mod && git clone https://github.com/libinjection/libinjection.git
|
||||
cd /opt/mod/libinjection && ./autogen.sh && ./configure && make -j`nproc` && make install
|
||||
fi
|
||||
# END OF SYSTEM REQUIRED LIBS
|
||||
# ============================================================================================================
|
||||
|
||||
|
||||
# START OF NGINX MODULES
|
||||
# ============================================================================================================
|
||||
# NGX_MOD_LUA
|
||||
if [ ! -d /opt/mod/lua-nginx-module-${NGX_MOD_LUA} ]; then
|
||||
cd /opt/mod/; wget https://github.com/openresty/lua-nginx-module/archive/refs/tags/v${NGX_MOD_LUA}.tar.gz
|
||||
cd /opt/mod/; tar xf v${NGX_MOD_LUA}.tar.gz; rm -Rf v${NGX_MOD_LUA}.tar.gz
|
||||
sed -i 's/cookies/cookie/g' /opt/mod/lua-nginx-module-${NGX_MOD_LUA}/src/ngx_http_lua_headers_in.c
|
||||
fi
|
||||
|
||||
# NGX_LUA_CORE
|
||||
if [ ! -d /opt/mod/lua-resty-core ]; then
|
||||
cd /opt/mod/; git clone https://github.com/openresty/lua-resty-core.git
|
||||
cd /opt/mod/lua-resty-core; make install PREFIX=${LUA_SCRIPTS}
|
||||
fi
|
||||
|
||||
# NGX_LUA_LRUCACHE
|
||||
if [ ! -d /opt/mod/lua-resty-lrucache ]; then
|
||||
cd /opt/mod/; git clone https://github.com/openresty/lua-resty-lrucache.git
|
||||
cd /opt/mod/lua-resty-lrucache; make install PREFIX=${LUA_SCRIPTS}
|
||||
fi
|
||||
|
||||
# NGX_MOD_LUA_MYSQL
|
||||
if [ ! -d /opt/mod/lua-resty-mysql-${NGX_MOD_LUA_MYSQL} ]; then
|
||||
cd /opt/mod/; wget https://github.com/openresty/lua-resty-mysql/archive/refs/tags/v${NGX_MOD_LUA_MYSQL}.tar.gz
|
||||
cd /opt/mod/; tar xf v${NGX_MOD_LUA_MYSQL}.tar.gz; rm -Rf v${NGX_MOD_LUA_MYSQL}.tar.gz
|
||||
cd /opt/mod/lua-resty-mysql-${NGX_MOD_LUA_MYSQL} && make install PREFIX=${LUA_SCRIPTS}
|
||||
fi
|
||||
|
||||
# NGX_MOD_LUA_SRCACHE
|
||||
if [ ! -d /opt/mod/srcache-nginx-module-${NGX_MOD_LUA_SRCACHE} ]; then
|
||||
cd /opt/mod/; wget https://github.com/openresty/srcache-nginx-module/archive/refs/tags/v${NGX_MOD_LUA_SRCACHE}.tar.gz
|
||||
cd /opt/mod/; tar xf v${NGX_MOD_LUA_SRCACHE}.tar.gz; rm -Rf v${NGX_MOD_LUA_SRCACHE}.tar.gz
|
||||
fi
|
||||
|
||||
# NGX_MOD_LUA_REDIS2
|
||||
if [ ! -d /opt/mod/redis2-nginx-module ]; then
|
||||
cd /opt/mod/; git clone --recursive https://github.com/openresty/redis2-nginx-module.git
|
||||
fi
|
||||
|
||||
# NGX_MOD_LUA_LOCK 0.09
|
||||
if [ ! -d /opt/mod/lua-resty-lock-${NGX_MOD_LUA_LOCK} ]; then
|
||||
cd /opt/mod/; wget https://github.com/openresty/lua-resty-lock/archive/refs/tags/v${NGX_MOD_LUA_LOCK}.tar.gz
|
||||
cd /opt/mod/; tar xf v${NGX_MOD_LUA_LOCK}.tar.gz; rm -Rf v${NGX_MOD_LUA_LOCK}.tar.gz
|
||||
cd /opt/mod/lua-resty-lock-${NGX_MOD_LUA_LOCK} && make install PREFIX=${LUA_SCRIPTS}
|
||||
fi
|
||||
|
||||
# NGX_MOD_LUA_CACHE
|
||||
if [ ! -d /opt/mod/lua-resty-cache ]; then
|
||||
cd /opt/mod/; git clone --branch feature-srcache --recursive https://github.com/lloydzhou/lua-resty-cache
|
||||
cd /opt/mod/lua-resty-cache && make install PREFIX=${LUA_SCRIPTS}
|
||||
fi
|
||||
|
||||
# NGX_MOD_DEVELKIT
|
||||
if [ ! -d /opt/mod/ngx_devel_kit-${NGX_MOD_DEVELKIT} ]; then
|
||||
cd /opt/mod/; wget https://github.com/vision5/ngx_devel_kit/archive/refs/tags/v${NGX_MOD_DEVELKIT}.tar.gz
|
||||
cd /opt/mod/; tar xf v${NGX_MOD_DEVELKIT}.tar.gz; rm -Rf v${NGX_MOD_DEVELKIT}.tar.gz
|
||||
fi
|
||||
|
||||
# NGX_MOD_GEOIP2
|
||||
if [ ! -d /opt/mod/ngx_http_geoip2_module-${NGX_MOD_GEOIP2} ]; then
|
||||
cd /opt/mod/; wget https://github.com/leev/ngx_http_geoip2_module/archive/refs/tags/${NGX_MOD_GEOIP2}.tar.gz
|
||||
cd /opt/mod/; tar xf ${NGX_MOD_GEOIP2}.tar.gz; rm -Rf ${NGX_MOD_GEOIP2}.tar.gz
|
||||
fi
|
||||
|
||||
# NGX_MOD_MODSECURITY
|
||||
if [ ! -d /opt/mod/ModSecurity-nginx-${NGX_MOD_MODSECURITY} ]; then
|
||||
cd /opt/mod/; wget https://github.com/SpiderLabs/ModSecurity-nginx/archive/refs/tags/v${NGX_MOD_MODSECURITY}.tar.gz
|
||||
cd /opt/mod/; tar xf v${NGX_MOD_MODSECURITY}.tar.gz; rm -Rf v${NGX_MOD_MODSECURITY}.tar.gz
|
||||
fi
|
||||
|
||||
# NGX_MOD_HTTPFLV
|
||||
if [ ! -d /opt/mod/nginx-http-flv-module-${NGX_MOD_HTTPFLV} ]; then
|
||||
cd /opt/mod/; wget https://github.com/winshining/nginx-http-flv-module/archive/refs/tags/v${NGX_MOD_HTTPFLV}.tar.gz
|
||||
cd /opt/mod/; tar xf v${NGX_MOD_HTTPFLV}.tar.gz; rm -Rf v${NGX_MOD_HTTPFLV}.tar.gz
|
||||
fi
|
||||
|
||||
# NGX_MOD_HEADERS_MORE
|
||||
if [ ! -d /opt/mod/headers-more-nginx-module-${NGX_MOD_HEADERS_MORE} ]; then
|
||||
cd /opt/mod/; wget https://github.com/openresty/headers-more-nginx-module/archive/refs/tags/v${NGX_MOD_HEADERS_MORE}.tar.gz
|
||||
cd /opt/mod/; tar xf v${NGX_MOD_HEADERS_MORE}.tar.gz; rm -Rf v${NGX_MOD_HEADERS_MORE}.tar.gz
|
||||
fi
|
||||
|
||||
# NGX_MOD_SETMISC
|
||||
if [ ! -d /opt/mod/set-misc-nginx-module-${NGX_MOD_SETMISC} ]; then
|
||||
cd /opt/mod/; wget https://github.com/openresty/set-misc-nginx-module/archive/refs/tags/v${NGX_MOD_SETMISC}.tar.gz
|
||||
cd /opt/mod/; tar xf v${NGX_MOD_SETMISC}.tar.gz; rm -Rf v${NGX_MOD_SETMISC}.tar.gz
|
||||
fi
|
||||
|
||||
# Testcookie
|
||||
if [ ! -d /opt/mod/testcookie ]; then
|
||||
cd /opt/mod/; git clone https://github.com/kyprizel/testcookie-nginx-module.git testcookie
|
||||
fi
|
||||
|
||||
# Brotli
|
||||
if [ ! -d /opt/mod/ngx_brotli ]; then
|
||||
cd /opt/mod/; git clone https://github.com/google/ngx_brotli.git ngx_brotli; cd /opt/mod/ngx_brotli && git submodule update --init
|
||||
fi
|
||||
|
||||
# Naxsi
|
||||
if [ ! -d /opt/mod/naxsi ]; then
|
||||
cd /opt/mod/; git clone --recurse-submodules https://github.com/wargio/naxsi.git naxsi
|
||||
fi
|
||||
|
||||
# END OF NGINX MODULES
|
||||
# ============================================================================================================
|
||||
}
|
||||
|
||||
test_nginx() {
|
||||
cd /opt/nginx-${NGINX} && LUAJIT_LIB="/usr/local/LuaJIT/lib" LUAJIT_INC="/usr/local/LuaJIT/include/luajit-2.1/" CFLAGS=-fPIC CXXFLAGS=-fPIC ./configure --with-compat \
|
||||
--user=nginx \
|
||||
--group=nginx \
|
||||
--sbin-path=/usr/sbin/nginx \
|
||||
--conf-path=/nginx/nginx.conf \
|
||||
--modules-path=/nginx/modules \
|
||||
--pid-path=/var/run/nginx.pid \
|
||||
--lock-path=/var/run/nginx.lock \
|
||||
--error-log-path=/var/log/nginx/error.log \
|
||||
--http-log-path=/var/log/nginx/access.log \
|
||||
--with-openssl=/opt/mod/openssl-opernssl-${SYSTEM_OPENSSL} \
|
||||
--with-openssl-opt=enable-tls1_3 \
|
||||
--with-pcre \
|
||||
--with-pcre-jit \
|
||||
--with-pcre=/opt/mod/pcre2-pcre2-${SYSTEM_PCRE} \
|
||||
--with-zlib=/opt/mod/zlib \
|
||||
--with-threads \
|
||||
--with-file-aio \
|
||||
--with-http_ssl_module \
|
||||
--with-http_v2_module \
|
||||
--with-http_v3_module \
|
||||
--with-http_realip_module \
|
||||
--with-http_addition_module \
|
||||
--with-http_xslt_module \
|
||||
--with-http_image_filter_module \
|
||||
--with-http_geoip_module \
|
||||
--with-http_sub_module \
|
||||
--with-http_dav_module \
|
||||
--with-http_flv_module \
|
||||
--with-http_mp4_module \
|
||||
--with-http_gunzip_module \
|
||||
--with-http_gzip_static_module \
|
||||
--with-http_auth_request_module \
|
||||
--with-http_random_index_module \
|
||||
--with-http_secure_link_module \
|
||||
--with-http_slice_module \
|
||||
--with-http_stub_status_module \
|
||||
--with-mail \
|
||||
--with-mail_ssl_module \
|
||||
--with-stream \
|
||||
--with-stream_ssl_module \
|
||||
--with-stream_realip_module \
|
||||
--with-stream_geoip_module \
|
||||
--add-module=/opt/mod/ngx_devel_kit-${NGX_MOD_DEVELKIT} \
|
||||
--add-module=/opt/mod/set-misc-nginx-module-${NGX_MOD_SETMISC} \
|
||||
--add-module=/opt/mod/ngx_http_geoip2_module-${NGX_MOD_GEOIP2} \
|
||||
--add-module=/opt/mod/headers-more-nginx-module-${NGX_MOD_HEADERS_MORE} \
|
||||
--add-module=/opt/mod/lua-nginx-module-${NGX_MOD_LUA} \
|
||||
--add-module=/opt/mod/ModSecurity-nginx-${NGX_MOD_MODSECURITY} \
|
||||
--add-module=/opt/mod/naxsi/naxsi_src \
|
||||
--add-module=/opt/mod/nginx-http-flv-module-${NGX_MOD_HTTPFLV} \
|
||||
--add-module=/opt/mod/srcache-nginx-module-${NGX_MOD_LUA_SRCACHE} \
|
||||
--add-module=/opt/mod/redis2-nginx-module \
|
||||
--add-module=/opt/mod/ngx_brotli \
|
||||
--add-module=/opt/mod/testcookie \
|
||||
--with-cc-opt="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC" \
|
||||
--with-ld-opt="-Wl,-rpath,/usr/local/LuaJIT/lib -Wl,-rpath,/usr/local/lib -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie -L/opt/mod/pcre2-pcre2-${SYSTEM_PCRE}/.libs -lpcre2-8 -L/lib/x86_64-linux-gnu -lpcre"
|
||||
make clean
|
||||
}
|
||||
function build() {
|
||||
cd /opt/nginx-${NGINX} && LUAJIT_LIB="/usr/local/LuaJIT/lib" LUAJIT_INC="/usr/local/LuaJIT/include/luajit-2.1/" CFLAGS=-fPIC CXXFLAGS=-fPIC ./configure --with-compat \
|
||||
--user=nginx \
|
||||
--group=nginx \
|
||||
--sbin-path=/usr/sbin/nginx \
|
||||
--conf-path=/nginx/nginx.conf \
|
||||
--modules-path=/nginx/modules \
|
||||
--pid-path=/var/run/nginx.pid \
|
||||
--lock-path=/var/run/nginx.lock \
|
||||
--error-log-path=/var/log/nginx/error.log \
|
||||
--http-log-path=/var/log/nginx/access.log \
|
||||
--with-openssl=/opt/mod/openssl-opernssl-${SYSTEM_OPENSSL} \
|
||||
--with-openssl-opt=enable-tls1_3 \
|
||||
--with-pcre \
|
||||
--with-pcre-jit \
|
||||
--with-pcre=/opt/mod/pcre2-pcre2-${SYSTEM_PCRE} \
|
||||
--with-zlib=/opt/mod/zlib \
|
||||
--with-threads \
|
||||
--with-file-aio \
|
||||
--with-http_ssl_module \
|
||||
--with-http_v2_module \
|
||||
--with-http_v3_module \
|
||||
--with-http_realip_module \
|
||||
--with-http_addition_module \
|
||||
--with-http_xslt_module \
|
||||
--with-http_image_filter_module \
|
||||
--with-http_geoip_module \
|
||||
--with-http_sub_module \
|
||||
--with-http_dav_module \
|
||||
--with-http_flv_module \
|
||||
--with-http_mp4_module \
|
||||
--with-http_gunzip_module \
|
||||
--with-http_gzip_static_module \
|
||||
--with-http_auth_request_module \
|
||||
--with-http_random_index_module \
|
||||
--with-http_secure_link_module \
|
||||
--with-http_slice_module \
|
||||
--with-http_stub_status_module \
|
||||
--with-mail \
|
||||
--with-mail_ssl_module \
|
||||
--with-stream \
|
||||
--with-stream_ssl_module \
|
||||
--with-stream_realip_module \
|
||||
--with-stream_geoip_module \
|
||||
--add-module=/opt/mod/ngx_devel_kit-${NGX_MOD_DEVELKIT} \
|
||||
--add-module=/opt/mod/set-misc-nginx-module-${NGX_MOD_SETMISC} \
|
||||
--add-module=/opt/mod/ngx_http_geoip2_module-${NGX_MOD_GEOIP2} \
|
||||
--add-module=/opt/mod/headers-more-nginx-module-${NGX_MOD_HEADERS_MORE} \
|
||||
--add-module=/opt/mod/ModSecurity-nginx-${NGX_MOD_MODSECURITY} \
|
||||
--add-module=/opt/mod/lua-nginx-module-${NGX_MOD_LUA} \
|
||||
--add-module=/opt/mod/naxsi/naxsi_src \
|
||||
--add-module=/opt/mod/nginx-http-flv-module-${NGX_MOD_HTTPFLV} \
|
||||
--add-module=/opt/mod/srcache-nginx-module-${NGX_MOD_LUA_SRCACHE} \
|
||||
--add-module=/opt/mod/redis2-nginx-module \
|
||||
--add-module=/opt/mod/ngx_brotli \
|
||||
--add-module=/opt/mod/testcookie \
|
||||
--with-cc-opt="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC" \
|
||||
--with-ld-opt="-Wl,-rpath,/usr/local/LuaJIT/lib -Wl,-rpath,/usr/local/lib -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie -L/opt/mod/pcre2-pcre2-${SYSTEM_PCRE}/.libs -lpcre2-8 -L/lib/x86_64-linux-gnu -lpcre"
|
||||
make -j`nproc` && make install && make clean
|
||||
unset NGINX
|
||||
}
|
||||
function post_build() {
|
||||
useradd nginx; unset NGINX; rm -rf /nginx/*.default;
|
||||
mkdir -p /nginx/live
|
||||
mkdir -p /nginx/conf.d
|
||||
mkdir -p /nginx/config
|
||||
mkdir -p /var/log/nginx
|
||||
mkdir -p /nginx/modsec; curl -s https://raw.githubusercontent.com/nbs-system/naxsi/master/naxsi_config/naxsi_core.rules > /nginx/modsec/naxi.core
|
||||
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/modsec/l7.conf > /nginx/modsec/l7.conf
|
||||
curl -s https://raw.githubusercontent.com/SpiderLabs/ModSecurity/v3/master/modsecurity.conf-recommended > /nginx/modsec/modsecurity.conf
|
||||
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/modsec/tester.conf > /nginx/modsec/tester.conf
|
||||
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/modsec/unicode.mapping > /nginx/modsec/unicode.mapping
|
||||
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nginx/nginx.conf > /nginx/nginx.conf
|
||||
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nginx/live/default > /nginx/live/default
|
||||
mkdir -p /hostdata/default/public_html/ && curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/index.html > /hostdata/default/public_html/index.html
|
||||
mkdir -p /hostdata/default/public_html/cdn/modsec && curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/modsec/aes.min.js > /hostdata/default/public_html/cdn/modsec/aes.min.js
|
||||
if [ -f "/run/.containerenv" ] || [ -f "/.dockerenv" ] || [ -f "/home/runner/.dockerenv" ]; then
|
||||
echo "Skipping systemctl commands on GitHub runner"
|
||||
mkdir -p /etc/systemd/system/
|
||||
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/Jammy/nginx.service > /etc/systemd/system/nginx.service
|
||||
else
|
||||
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/Jammy/nginx.service > /etc/systemd/system/nginx.service
|
||||
systemctl daemon-reload
|
||||
systemctl start nginx.service
|
||||
systemctl enable nginx.service
|
||||
fi
|
||||
}
|
||||
|
||||
# Handling command-line arguments
|
||||
case "$1" in
|
||||
new)
|
||||
reqs
|
||||
clean_install
|
||||
;;
|
||||
test)
|
||||
test_nginx
|
||||
;;
|
||||
build)
|
||||
build
|
||||
;;
|
||||
postfix)
|
||||
post_build
|
||||
;;
|
||||
*)
|
||||
echo "Invalid option: $1"
|
||||
echo "Usage: $0 {new|test|build|postfix}"
|
||||
echo ""
|
||||
echo " new: will download all modules & nginx (if you change a version from file, simply rerun this to download that)"
|
||||
echo " test: Test nginx configuration"
|
||||
echo " build: Build nginx, or Rebuild (mods/configs will not be redownloaded this will only build)"
|
||||
echo " postfix: After first installation, run this to download nginx configs (it will replace nginx.conf if there already is one)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -1,37 +0,0 @@
|
||||
#!/bin/bash
|
||||
# ===============================================================================
|
||||
# YOU SHOULD CHANGE THOSE.
|
||||
# ===============================================================================
|
||||
export NS_PORT='80' # $BIND_IP:80.
|
||||
export ADMIN_PORT='8282' # $BIND_IP:8282.
|
||||
export BIND_IP='145.239.109.73' # $BIND_IP:$NS_PORT Will be used for your nginx vhosts configs.
|
||||
export MY_OS='UBUNTU14' # (UBUNTU14 = Ubuntu 14.04, CENTOS7 = Centos 7.x, Debian7 = Debian 7.9).
|
||||
export SYM_IT='/nginx' # (Easy way to find nginx 'cd /nginx').
|
||||
# ===============================================================================
|
||||
# ===============================================================================
|
||||
|
||||
|
||||
|
||||
# ===============================================================================
|
||||
# I DON'T GAVE SUPPORT IF YOU CHANGE THOSE.
|
||||
# ===============================================================================
|
||||
export OWNER='root' # Under which user will nginx run!
|
||||
export PHP_OWNER='root' # Under which group will nginx run!
|
||||
export HOSTDATA='/hostdata/' # In which folder will website files stored!
|
||||
export HOSTDATA_DEF='/hostdata/default/public_html/' # Where is the default_server folder.
|
||||
|
||||
# CONFIGS.
|
||||
# ===============================================================================
|
||||
export NGINX_CONF='/nginx/nginx.conf' # nginx.conf
|
||||
export VHOST_LIVE_DIR='/nginx/live/' # Live sites.conf folder.
|
||||
export DEFAULT_SERVER='/nginx/live/default.conf' # Where is the default_server conf.
|
||||
|
||||
# EXAMPLE OF EXTRA CONFIGS.
|
||||
# ===============================================================================
|
||||
export NGINX_RAILS_UNICORN_CONF_FILE='/etc/nginx/conf.d/rails-unicorn.conf'
|
||||
export NGINX_RAILS_THIN_CONF_FILE='/etc/nginx/conf.d/rails-thin.conf'
|
||||
export NGINX_PYRAMID_CONF_FILE='/etc/nginx/conf.d/pyramid.conf'
|
||||
export NGINX_DJANGO_CONF_FILE='/etc/nginx/conf.d/django.conf'
|
||||
export NGINX_PHP_CONF_FILE='/etc/nginx/conf.d/php-fpm.conf'
|
||||
# ===============================================================================
|
||||
# ===============================================================================
|
||||
@@ -1,560 +0,0 @@
|
||||
#!/bin/bash
|
||||
case "`grep DISTRIB_CODENAME /etc/*-release | awk -F '=' '{print $2}'`" in
|
||||
trusty)
|
||||
if [ "$(whoami)" != "root" ]
|
||||
then
|
||||
echo "You should Login as root to use this script!";
|
||||
echo "May you already have access for sudo, but commands aren't designed with sudo! so..";
|
||||
echo "sudo -i";
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "/nginx/" ]; then
|
||||
echo "We've detect a folder '/nginx/' which means"
|
||||
echo "Maybe you have use this script before!"
|
||||
echo "You can fix this by executing!"
|
||||
echo "./setup clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "/etc/nginx" ]; then
|
||||
echo "We've detect a folder '/etc/nginx' which means"
|
||||
echo "Maybe you have use this script before!"
|
||||
echo "./setup clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "/opt/nginx/" ]; then
|
||||
echo "We've detect a folder '/opt/nginx/' which means"
|
||||
echo "Maybe you have use this script before!"
|
||||
echo "./setup clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y;
|
||||
apt-get install sudo -y
|
||||
apt-get install build-essential libssl-dev curl nano wget zip unzip git -y
|
||||
apt-get purge --remove nginx -y
|
||||
apt-get purge --remove apache2 -y
|
||||
apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y
|
||||
apt-get autoremove -y
|
||||
apt-get install apt-utils build-essential -y
|
||||
apt-get install git -y
|
||||
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg libxml2 zlib1g-dev -y
|
||||
apt-get install -y unzip
|
||||
apt-get install -y libicu-dev libcurl4-gnutls-dev libtool
|
||||
apt-get install -y libmozjs-24-dev
|
||||
apt-get install -y libmozjs-24-bin; sudo ln -sf /usr/bin/js24 /usr/bin/js
|
||||
apt-get install openssl libssl-dev libperl-dev libexpat-dev -y
|
||||
apt-get install mercurial meld -y
|
||||
apt-get install libxslt-dev -y
|
||||
apt-get install libgd2-xpm -y
|
||||
apt-get install libgd2-xpm-dev -y
|
||||
apt-get install libgeoip-dev -y
|
||||
apt-get install libssl libssl-dev -y
|
||||
apt-get install dh-autoreconf -y
|
||||
apt-get install -y software-properties-common
|
||||
apt-get install -y python-software-properties
|
||||
apt-get install -y libcairo2 libcairo2-dev
|
||||
apt-get install -y python-dev
|
||||
sudo add-apt-repository ppa:maxmind/ppa -y
|
||||
apt-get install aptitude -y
|
||||
aptitude update -y
|
||||
aptitude upgrade -y
|
||||
aptitude install libmaxminddb0 libmaxminddb-dev mmdb-bin -y
|
||||
apt-get install libmysqlclient-dev -y
|
||||
apt-get install libmariadbclient-dev -y
|
||||
apt-get install g++ flex bison curl doxygen libyajl-dev libgeoip-dev libtool dh-autoreconf libcurl4-gnutls-dev libxml2 libpcre++-dev libxml2-dev -y
|
||||
apt-get install libuuid1 uuid-dev -y
|
||||
apt-get install libgd-dev libc6 -y
|
||||
|
||||
|
||||
mkdir -p /hostdata/
|
||||
mkdir -p /var/log/nginx/
|
||||
mkdir -p /opt/nginx/modules/
|
||||
|
||||
cd /opt/
|
||||
git clone https://github.com/SpiderLabs/ModSecurity
|
||||
cd /opt/ModSecurity/
|
||||
git checkout -b v3/master origin/v3/master
|
||||
sh build.sh
|
||||
git submodule init
|
||||
git submodule update
|
||||
./configure
|
||||
make -j`nproc`
|
||||
make install
|
||||
|
||||
cd /opt/nginx/modules/
|
||||
wget https://github.com/simplresty/ngx_devel_kit/archive/v0.3.1rc1.zip
|
||||
unzip v0.3.1rc1.zip; rm -Rf v0.3.1rc1.zip
|
||||
mv /opt/nginx/modules/ngx_devel_kit-0.3.1rc1/ /opt/nginx/modules/ngx_devel_kit/
|
||||
|
||||
#Pagespeed Library
|
||||
cd /opt/nginx/modules/
|
||||
wget https://github.com/apache/incubator-pagespeed-ngx/archive/v1.13.35.2-stable.zip
|
||||
unzip v1.13.35.2-stable.zip
|
||||
rm -Rf v1.13.35.2-stable.zip
|
||||
mv /opt/nginx/modules/incubator-pagespeed-ngx-1.13.35.2-stable /opt/nginx/modules/ngx_pagespeed-1.13.35.2-stable
|
||||
cd /opt/nginx/modules/ngx_pagespeed-1.13.35.2-stable
|
||||
wget https://dl.google.com/dl/page-speed/psol/1.13.35.2-x64.tar.gz
|
||||
tar -xzvf 1.13.35.2-x64.tar.gz; rm -Rf 1.13.35.2-x64.tar.gz
|
||||
|
||||
#LuaJIT Library
|
||||
cd /opt/nginx/modules/
|
||||
git clone http://luajit.org/git/luajit-2.0.git
|
||||
cd luajit-2.0/
|
||||
make -j`nproc`
|
||||
sudo make install
|
||||
ldconfig
|
||||
|
||||
#Naxsi Mod
|
||||
cd /opt/nginx/modules/
|
||||
wget https://github.com/nbs-system/naxsi/archive/master.zip
|
||||
unzip master.zip; rm -Rf master.zip
|
||||
mv /opt/nginx/modules/naxsi-master /opt/nginx/modules/naxsi
|
||||
|
||||
mkdir -p /opt/nginx/modules/
|
||||
cd /opt/nginx/modules/
|
||||
rm -Rf nginx_redis/
|
||||
git clone https://github.com/openresty/set-misc-nginx-module.git
|
||||
git clone https://github.com/FRiCKLE/ngx_cache_purge.git
|
||||
git clone https://github.com/kyprizel/testcookie-nginx-module.git
|
||||
git clone https://github.com/openresty/headers-more-nginx-module.git
|
||||
git clone https://github.com/openresty/echo-nginx-module.git
|
||||
git clone https://github.com/leev/ngx_http_geoip2_module.git
|
||||
git clone https://github.com/openresty/lua-nginx-module.git
|
||||
git clone https://github.com/SpiderLabs/ModSecurity-nginx.git
|
||||
git clone https://github.com/openresty/encrypted-session-nginx-module.git
|
||||
git clone https://github.com/flant/nginx-http-rdns.git
|
||||
|
||||
# Download Nginx
|
||||
mkdir -p /opt/nginx/sources/
|
||||
cd /opt/nginx/sources/
|
||||
wget 'http://nginx.org/download/nginx-1.15.5.tar.gz'
|
||||
tar -xzvf nginx-1.15.5.tar.gz; rm -Rf nginx-1.15.5.tar.gz
|
||||
cd /opt/nginx/sources/nginx-1.15.5/
|
||||
wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nbuild.sh
|
||||
chmod +x nbuild.sh
|
||||
./nbuild.sh
|
||||
make -j`nproc`
|
||||
make install
|
||||
ldconfig
|
||||
|
||||
mkdir -p /nginx/live
|
||||
mkdir -p /nginx/logs
|
||||
mkdir -p /nginx/conf.d
|
||||
touch /nginx/logs/access.log
|
||||
touch /nginx/logs/error.log
|
||||
useradd -r nginx
|
||||
rm -Rf /etc/init.d/nginx
|
||||
cd /etc/init.d/; wget https://raw.githubusercontent.com/theraw/my-nginx/master/etc/init.d/nginx
|
||||
chmod +x /etc/init.d/nginx
|
||||
cd /nginx/; mkdir conf.d; rm -Rf nginx.conf*; wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nginx.conf
|
||||
mkdir -p /nginx/live/
|
||||
cd /nginx/live/
|
||||
wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/vhost/default
|
||||
|
||||
mkdir -p /hostdata/default
|
||||
mkdir -p /hostdata/default/public_html
|
||||
mkdir -p /hostdata/default/logs
|
||||
mkdir -p /hostdata/default/cache
|
||||
mkdir -p /nginx/modsecurity/
|
||||
cd /hostdata/default/public_html/
|
||||
wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/html/index.html
|
||||
sudo update-rc.d nginx defaults
|
||||
|
||||
cd /nginx/; mkdir db/; cd db/; wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/GeoLite2-Country.mmdb
|
||||
cd /nginx/; rm -Rf *.default
|
||||
cp /opt/nginx/modules/naxsi/naxsi_config/naxsi_core.rules /nginx/naxsi_core.rules
|
||||
cp /opt/ModSecurity/modsecurity.conf-recommended /nginx/modsecurity/modsecurity.conf
|
||||
|
||||
cd /opt/; git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git
|
||||
cp -a /opt/owasp-modsecurity-crs/rules/ /nginx/modsecurity/
|
||||
cp -a /opt/owasp-modsecurity-crs/crs-setup.conf.example /nginx/modsecurity/crs-setup.conf
|
||||
clear
|
||||
#mkdir -p /tmp/; cd /tmp; wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/iptables/install
|
||||
#chmod +x install; ./install
|
||||
clear
|
||||
sudo apt-get install fail2ban -y
|
||||
sudo service fail2ban stop
|
||||
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/iptables/jail.local > /etc/fail2ban/jail.local
|
||||
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/iptables/filter.d/nginx-limits.conf > /etc/fail2ban/filter.d/nginx-limits.conf
|
||||
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/iptables/filter.d/nginx-ban.conf > /etc/fail2ban/filter.d/nginx-ban.conf
|
||||
touch /nginx/logs/error.log
|
||||
clear
|
||||
sudo service fail2ban start
|
||||
clear
|
||||
|
||||
service fail2ban status
|
||||
nginx -t
|
||||
service nginx stop
|
||||
service nginx start
|
||||
;;
|
||||
|
||||
xenial)
|
||||
|
||||
if [ "$(whoami)" != "root" ]
|
||||
then
|
||||
echo "You should Login as root to use this script!";
|
||||
echo "May you already have access for sudo, but commands aren't designed with sudo! so..";
|
||||
echo "sudo -i";
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "/nginx/" ]; then
|
||||
echo "We've detect a folder '/nginx/' which means"
|
||||
echo "Maybe you have use this script before!"
|
||||
echo "You can fix this by executing!"
|
||||
echo "./setup clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "/etc/nginx" ]; then
|
||||
echo "We've detect a folder '/etc/nginx' which means"
|
||||
echo "Maybe you have use this script before!"
|
||||
echo "./setup clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "/opt/nginx/" ]; then
|
||||
echo "We've detect a folder '/opt/nginx/' which means"
|
||||
echo "Maybe you have use this script before!"
|
||||
echo "./setup clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
apt update
|
||||
apt upgrade -y
|
||||
apt dist-upgrade -y
|
||||
apt install build-essential apt-utils libssl-dev curl nano wget zip unzip git htop iftop whois screen sudo -y
|
||||
apt purge --remove nginx -y
|
||||
apt purge --remove apache2 -y
|
||||
apt autoremove -y
|
||||
|
||||
apt install -y checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg libxml2 zlib1g-dev
|
||||
apt install -y libicu-dev libcurl4-gnutls-dev libtool
|
||||
apt install -y libmozjs-24-dev
|
||||
apt install -y libmozjs-24-bin; sudo ln -sf /usr/bin/js24 /usr/bin/js
|
||||
apt install openssl libssl-dev libperl-dev libexpat-dev -y
|
||||
apt install mercurial meld -y
|
||||
apt install libxslt-dev -y
|
||||
apt install libgd2-xpm -y
|
||||
apt install libgd2-xpm-dev -y
|
||||
apt install libgeoip-dev -y
|
||||
apt install dh-autoreconf -y
|
||||
apt install -y software-properties-common
|
||||
apt install -y python-software-properties
|
||||
apt install -y libcairo2 libcairo2-dev
|
||||
apt install -y python-dev
|
||||
sudo add-apt-repository ppa:maxmind/ppa -y
|
||||
apt update; apt upgrade -y; apt dist-upgrade -y
|
||||
apt install aptitude -y
|
||||
aptitude update -y
|
||||
aptitude upgrade -y
|
||||
aptitude install libmaxminddb0 libmaxminddb-dev mmdb-bin -y
|
||||
apt install libmysqlclient-dev -y
|
||||
apt install libmariadbclient-dev -y
|
||||
apt install g++ flex bison curl doxygen libyajl-dev libgeoip-dev libtool dh-autoreconf libcurl4-gnutls-dev libxml2 libpcre++-dev libxml2-dev -y
|
||||
apt install libuuid1 uuid-dev -y
|
||||
|
||||
mkdir -p /hostdata/
|
||||
mkdir -p /var/log/nginx/
|
||||
mkdir -p /opt/nginx/modules/
|
||||
|
||||
cd /opt/
|
||||
git clone https://github.com/SpiderLabs/ModSecurity
|
||||
cd /opt/ModSecurity/
|
||||
git checkout -b v3/master origin/v3/master
|
||||
sh build.sh
|
||||
git submodule init
|
||||
git submodule update
|
||||
./configure
|
||||
make -j`nproc`
|
||||
make install
|
||||
|
||||
cd /opt/nginx/modules/
|
||||
wget https://github.com/simplresty/ngx_devel_kit/archive/v0.3.1rc1.zip
|
||||
unzip v0.3.1rc1.zip; rm -Rf v0.3.1rc1.zip
|
||||
mv /opt/nginx/modules/ngx_devel_kit-0.3.1rc1/ /opt/nginx/modules/ngx_devel_kit/
|
||||
|
||||
cd /opt/nginx/modules/
|
||||
wget https://github.com/apache/incubator-pagespeed-ngx/archive/v1.13.35.2-stable.zip
|
||||
unzip v1.13.35.2-stable.zip
|
||||
rm -Rf v1.13.35.2-stable.zip
|
||||
mv /opt/nginx/modules/incubator-pagespeed-ngx-1.13.35.2-stable /opt/nginx/modules/ngx_pagespeed-1.13.35.2-stable
|
||||
cd /opt/nginx/modules/ngx_pagespeed-1.13.35.2-stable
|
||||
wget https://dl.google.com/dl/page-speed/psol/1.13.35.2-x64.tar.gz
|
||||
tar -xzvf 1.13.35.2-x64.tar.gz; rm -Rf 1.13.35.2-x64.tar.gz
|
||||
|
||||
#LuaJIT Library
|
||||
cd /opt/nginx/modules/
|
||||
git clone http://luajit.org/git/luajit-2.0.git
|
||||
cd luajit-2.0/
|
||||
make -j`nproc`
|
||||
sudo make install
|
||||
ldconfig
|
||||
|
||||
cd /opt/nginx/modules/
|
||||
wget https://github.com/nbs-system/naxsi/archive/master.zip
|
||||
unzip master.zip; rm -Rf master.zip
|
||||
mv /opt/nginx/modules/naxsi-master /opt/nginx/modules/naxsi
|
||||
|
||||
mkdir -p /opt/nginx/modules/
|
||||
cd /opt/nginx/modules/
|
||||
rm -Rf nginx_redis/
|
||||
git clone https://github.com/openresty/set-misc-nginx-module.git
|
||||
git clone https://github.com/FRiCKLE/ngx_cache_purge.git
|
||||
git clone https://github.com/kyprizel/testcookie-nginx-module.git
|
||||
git clone https://github.com/openresty/headers-more-nginx-module.git
|
||||
git clone https://github.com/openresty/echo-nginx-module.git
|
||||
git clone https://github.com/leev/ngx_http_geoip2_module.git
|
||||
git clone https://github.com/openresty/lua-nginx-module.git
|
||||
git clone https://github.com/SpiderLabs/ModSecurity-nginx.git
|
||||
git clone https://github.com/openresty/encrypted-session-nginx-module.git
|
||||
git clone https://github.com/flant/nginx-http-rdns.git
|
||||
|
||||
# Download Nginx
|
||||
mkdir -p /opt/nginx/sources/
|
||||
cd /opt/nginx/sources/
|
||||
wget 'http://nginx.org/download/nginx-1.15.5.tar.gz'
|
||||
tar -xzvf nginx-1.15.5.tar.gz; rm -Rf nginx-1.15.5.tar.gz
|
||||
cd /opt/nginx/sources/nginx-1.15.5/
|
||||
wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nbuild.sh
|
||||
chmod +x nbuild.sh
|
||||
./nbuild.sh
|
||||
make -j`nproc`
|
||||
make install
|
||||
ldconfig
|
||||
|
||||
mkdir -p /nginx/live
|
||||
mkdir -p /nginx/logs
|
||||
mkdir -p /nginx/conf.d
|
||||
touch /nginx/logs/access.log
|
||||
touch /nginx/logs/error.log
|
||||
useradd -r nginx
|
||||
rm -Rf /etc/init.d/nginx
|
||||
cd /etc/init.d/; wget https://raw.githubusercontent.com/theraw/my-nginx/master/etc/init.d/nginx
|
||||
chmod +x /etc/init.d/nginx
|
||||
cd /nginx/; mkdir conf.d; rm -Rf nginx.conf*; wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nginx.conf
|
||||
cd /nginx/live/
|
||||
wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/vhost/default
|
||||
|
||||
mkdir -p /hostdata/default
|
||||
mkdir -p /hostdata/default/public_html
|
||||
mkdir -p /hostdata/default/logs
|
||||
mkdir -p /hostdata/default/cache
|
||||
mkdir -p /nginx/modsecurity/
|
||||
cd /hostdata/default/public_html/
|
||||
wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/html/index.html
|
||||
sudo update-rc.d nginx defaults
|
||||
|
||||
cd /nginx/; mkdir db/; cd db/; wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/GeoLite2-Country.mmdb
|
||||
cd /nginx/; rm -Rf *.default
|
||||
cp /opt/nginx/modules/naxsi/naxsi_config/naxsi_core.rules /nginx/naxsi_core.rules
|
||||
cp /opt/ModSecurity/modsecurity.conf-recommended /nginx/modsecurity/modsecurity.conf
|
||||
|
||||
cd /opt/; git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git
|
||||
cp -a /opt/owasp-modsecurity-crs/rules/ /nginx/modsecurity/
|
||||
cp -a /opt/owasp-modsecurity-crs/crs-setup.conf.example /nginx/modsecurity/crs-setup.conf
|
||||
clear
|
||||
cd /etc/systemd/system/; wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/UBUNTU16/nginx.service
|
||||
sudo systemctl start nginx.service && sudo systemctl enable nginx.service
|
||||
killall nginx
|
||||
systemctl daemon-reload
|
||||
service nginx stop
|
||||
service nginx start
|
||||
|
||||
;;
|
||||
|
||||
cosmic)
|
||||
if [ "$(whoami)" != "root" ]
|
||||
then
|
||||
echo "You should Login as root to use this script!";
|
||||
echo "May you already have access for sudo, but commands aren't designed with sudo! so..";
|
||||
echo "sudo -i";
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "/nginx/" ]; then
|
||||
echo "We've detect a folder '/nginx/' which means"
|
||||
echo "Maybe you have use this script before!"
|
||||
echo "You can fix this by executing!"
|
||||
echo "./setup clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "/etc/nginx" ]; then
|
||||
echo "We've detect a folder '/etc/nginx' which means"
|
||||
echo "Maybe you have use this script before!"
|
||||
echo "./setup clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d "/opt/nginx/" ]; then
|
||||
echo "We've detect a folder '/opt/nginx/' which means"
|
||||
echo "Maybe you have use this script before!"
|
||||
echo "./setup clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y;
|
||||
apt-get install sudo -y
|
||||
apt-get install build-essential libssl-dev curl nano wget zip unzip git -y
|
||||
apt-get purge --remove nginx -y
|
||||
apt-get purge --remove apache2 -y
|
||||
apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y
|
||||
apt-get autoremove -y
|
||||
apt-get install apt-utils build-essential -y
|
||||
apt-get install git -y
|
||||
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg libxml2 zlib1g-dev -y
|
||||
apt-get install -y unzip
|
||||
apt-get install -y libicu-dev libcurl4-gnutls-dev libtool
|
||||
apt-get install -y libmozjs-24-dev
|
||||
apt-get install -y libmozjs-24-bin; sudo ln -sf /usr/bin/js24 /usr/bin/js
|
||||
apt-get install openssl libssl-dev libperl-dev libexpat-dev -y
|
||||
apt-get install mercurial meld -y
|
||||
apt-get install libxslt-dev -y
|
||||
apt-get install libgd2-xpm -y
|
||||
apt-get install libgd2-xpm-dev -y
|
||||
apt-get install libgeoip-dev -y
|
||||
apt-get install libssl libssl-dev -y
|
||||
apt-get install dh-autoreconf -y
|
||||
apt-get install -y software-properties-common
|
||||
apt-get install -y python-software-properties
|
||||
apt-get install -y libcairo2 libcairo2-dev
|
||||
apt-get install -y python-dev
|
||||
sudo add-apt-repository ppa:maxmind/ppa -y
|
||||
apt-get install aptitude -y
|
||||
aptitude update -y
|
||||
aptitude upgrade -y
|
||||
aptitude install libmaxminddb0 libmaxminddb-dev mmdb-bin -y
|
||||
apt-get install libmysqlclient-dev -y
|
||||
apt-get install libmariadbclient-dev -y
|
||||
apt-get install g++ flex bison curl doxygen libyajl-dev libgeoip-dev libtool dh-autoreconf libcurl4-gnutls-dev libxml2 libpcre++-dev libxml2-dev -y
|
||||
apt-get install libuuid1 uuid-dev -y
|
||||
apt-get install libgd-dev libc6 -y
|
||||
|
||||
|
||||
mkdir -p /hostdata/
|
||||
mkdir -p /var/log/nginx/
|
||||
mkdir -p /opt/nginx/modules/
|
||||
|
||||
cd /opt/
|
||||
git clone https://github.com/SpiderLabs/ModSecurity
|
||||
cd /opt/ModSecurity/
|
||||
git checkout -b v3/master origin/v3/master
|
||||
sh build.sh
|
||||
git submodule init
|
||||
git submodule update
|
||||
./configure
|
||||
make -j`nproc`
|
||||
make install
|
||||
|
||||
cd /opt/nginx/modules/
|
||||
wget https://github.com/simplresty/ngx_devel_kit/archive/v0.3.1rc1.zip
|
||||
unzip v0.3.1rc1.zip; rm -Rf v0.3.1rc1.zip
|
||||
mv /opt/nginx/modules/ngx_devel_kit-0.3.1rc1/ /opt/nginx/modules/ngx_devel_kit/
|
||||
|
||||
#Pagespeed Library
|
||||
cd /opt/nginx/modules/
|
||||
wget https://github.com/apache/incubator-pagespeed-ngx/archive/v1.13.35.2-stable.zip
|
||||
unzip v1.13.35.2-stable.zip
|
||||
rm -Rf v1.13.35.2-stable.zip
|
||||
mv /opt/nginx/modules/incubator-pagespeed-ngx-1.13.35.2-stable /opt/nginx/modules/ngx_pagespeed-1.13.35.2-stable
|
||||
cd /opt/nginx/modules/ngx_pagespeed-1.13.35.2-stable
|
||||
wget https://dl.google.com/dl/page-speed/psol/1.13.35.2-x64.tar.gz
|
||||
tar -xzvf 1.13.35.2-x64.tar.gz; rm -Rf 1.13.35.2-x64.tar.gz
|
||||
|
||||
#LuaJIT Library
|
||||
cd /opt/nginx/modules/
|
||||
git clone http://luajit.org/git/luajit-2.0.git
|
||||
cd luajit-2.0/
|
||||
make -j`nproc`
|
||||
sudo make install
|
||||
ldconfig
|
||||
|
||||
#Naxsi Mod
|
||||
cd /opt/nginx/modules/
|
||||
wget https://github.com/nbs-system/naxsi/archive/master.zip
|
||||
unzip master.zip; rm -Rf master.zip
|
||||
mv /opt/nginx/modules/naxsi-master /opt/nginx/modules/naxsi
|
||||
|
||||
mkdir -p /opt/nginx/modules/
|
||||
cd /opt/nginx/modules/
|
||||
rm -Rf nginx_redis/
|
||||
git clone https://github.com/openresty/set-misc-nginx-module.git
|
||||
git clone https://github.com/FRiCKLE/ngx_cache_purge.git
|
||||
git clone https://github.com/kyprizel/testcookie-nginx-module.git
|
||||
git clone https://github.com/openresty/headers-more-nginx-module.git
|
||||
git clone https://github.com/openresty/echo-nginx-module.git
|
||||
git clone https://github.com/leev/ngx_http_geoip2_module.git
|
||||
git clone https://github.com/openresty/lua-nginx-module.git
|
||||
git clone https://github.com/SpiderLabs/ModSecurity-nginx.git
|
||||
git clone https://github.com/openresty/encrypted-session-nginx-module.git
|
||||
git clone https://github.com/flant/nginx-http-rdns.git
|
||||
|
||||
# Download Nginx
|
||||
mkdir -p /opt/nginx/sources/
|
||||
cd /opt/nginx/sources/
|
||||
wget 'http://nginx.org/download/nginx-1.15.5.tar.gz'
|
||||
tar -xzvf nginx-1.15.5.tar.gz; rm -Rf nginx-1.15.5.tar.gz
|
||||
cd /opt/nginx/sources/nginx-1.15.5/
|
||||
wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nbuild.sh
|
||||
chmod +x nbuild.sh
|
||||
./nbuild.sh
|
||||
make -j`nproc`
|
||||
make install
|
||||
ldconfig
|
||||
|
||||
mkdir -p /nginx/live
|
||||
mkdir -p /nginx/logs
|
||||
mkdir -p /nginx/conf.d
|
||||
touch /nginx/logs/access.log
|
||||
touch /nginx/logs/error.log
|
||||
useradd -r nginx
|
||||
rm -Rf /etc/init.d/nginx
|
||||
cd /etc/init.d/; wget https://raw.githubusercontent.com/theraw/my-nginx/master/etc/init.d/nginx
|
||||
chmod +x /etc/init.d/nginx
|
||||
cd /nginx/; mkdir conf.d; rm -Rf nginx.conf*; wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/nginx.conf
|
||||
mkdir -p /nginx/live/
|
||||
cd /nginx/live/
|
||||
wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/vhost/default
|
||||
|
||||
mkdir -p /hostdata/default
|
||||
mkdir -p /hostdata/default/public_html
|
||||
mkdir -p /hostdata/default/logs
|
||||
mkdir -p /hostdata/default/cache
|
||||
mkdir -p /nginx/modsecurity/
|
||||
cd /hostdata/default/public_html/
|
||||
wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/static/html/index.html
|
||||
sudo update-rc.d nginx defaults
|
||||
|
||||
cd /nginx/; mkdir db/; cd db/; wget https://github.com/theraw/The-World-Is-Yours/raw/master/static/GeoLite2-Country.mmdb
|
||||
cd /nginx/; rm -Rf *.default
|
||||
cp /opt/nginx/modules/naxsi/naxsi_config/naxsi_core.rules /nginx/naxsi_core.rules
|
||||
cp /opt/ModSecurity/modsecurity.conf-recommended /nginx/modsecurity/modsecurity.conf
|
||||
|
||||
cd /opt/; git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git
|
||||
cp -a /opt/owasp-modsecurity-crs/rules/ /nginx/modsecurity/
|
||||
cp -a /opt/owasp-modsecurity-crs/crs-setup.conf.example /nginx/modsecurity/crs-setup.conf
|
||||
|
||||
clear
|
||||
cd /etc/systemd/system/; wget https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/UBUNTU16/nginx.service
|
||||
sudo systemctl start nginx.service && sudo systemctl enable nginx.service
|
||||
systemctl daemon-reload
|
||||
clear
|
||||
service nginx stop
|
||||
service nginx start
|
||||
clear
|
||||
nginx -t
|
||||
echo "Installation script on ubuntu 18 maybe can fail is not well tested if so please report any problem on github!"
|
||||
;;
|
||||
|
||||
centos)
|
||||
yum -y update; yum -y upgrade
|
||||
yum install epel-release wget curl git zip unzip -y
|
||||
yum remove httpd -y
|
||||
yum remove apache2 -y
|
||||
yum remove nginx -y
|
||||
;;
|
||||
esac
|
||||
@@ -1,5 +0,0 @@
|
||||
[Definition]
|
||||
|
||||
failregex = ^.*client: <HOST>.* 444.*$
|
||||
|
||||
ignoreregex =
|
||||
@@ -1,8 +0,0 @@
|
||||
# fail2ban filter configuration for nginx limit connection for ip.
|
||||
|
||||
|
||||
[Definition]
|
||||
|
||||
failregex = ^.*client: <HOST>.*$
|
||||
|
||||
ignoreregex =
|
||||
@@ -1,27 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
apt-get update; apt-get upgrade -y; apt-get dist-upgrade -y; apt-get autoremove -y
|
||||
sudo apt-get install iptables-persistent
|
||||
sudo invoke-rc.d iptables-persistent save
|
||||
clear
|
||||
|
||||
# ========================================================================
|
||||
mkdir -p /firewall/iptables/bin
|
||||
echo '#!/bin/bash' > /firewall/iptables/bin/fire.sh
|
||||
echo 'sudo service fail2ban stop' >> /firewall/iptables/bin/fire.sh
|
||||
echo 'nano /etc/iptables/rules.v4' >> /firewall/iptables/bin/fire.sh
|
||||
echo 'iptables-restore < /etc/iptables/rules.v4' >> /firewall/iptables/bin/fire.sh
|
||||
echo 'iptables-save > /etc/iptables/rules.v4' >> /firewall/iptables/bin/fire.sh
|
||||
echo 'sudo service fail2ban start' >> /firewall/iptables/bin/fire.sh
|
||||
ln -sf /firewall/iptables/bin/fire.sh /bin/fire
|
||||
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/iptables/rules > /etc/iptables/rules.v4
|
||||
chmod +x /bin/fire
|
||||
# ========================================================================
|
||||
|
||||
|
||||
sudo apt-get install fail2ban -y
|
||||
sudo service fail2ban stop
|
||||
curl -s https://raw.githubusercontent.com/theraw/The-World-Is-Yours/master/iptables/jail.local > /etc/fail2ban/jail.local
|
||||
touch /nginx/logs/error.log
|
||||
sudo service fail2ban start
|
||||
clear
|
||||
@@ -1,471 +0,0 @@
|
||||
[DEFAULT]
|
||||
ignoreip = 127.0.0.1/8
|
||||
|
||||
# "bantime" is the number of seconds that a host is banned.
|
||||
bantime = 1200
|
||||
|
||||
# A host is banned if it has generated "maxretry" during the last "findtime"
|
||||
# seconds.
|
||||
findtime = 600
|
||||
maxretry = 3
|
||||
|
||||
# "backend" specifies the backend used to get files modification.
|
||||
# Available options are "pyinotify", "gamin", "polling" and "auto".
|
||||
# This option can be overridden in each jail as well.
|
||||
#
|
||||
# pyinotify: requires pyinotify (a file alteration monitor) to be installed.
|
||||
# If pyinotify is not installed, Fail2ban will use auto.
|
||||
# gamin: requires Gamin (a file alteration monitor) to be installed.
|
||||
# If Gamin is not installed, Fail2ban will use auto.
|
||||
# polling: uses a polling algorithm which does not require external libraries.
|
||||
# auto: will try to use the following backends, in order:
|
||||
# pyinotify, gamin, polling.
|
||||
backend = auto
|
||||
|
||||
# "usedns" specifies if jails should trust hostnames in logs,
|
||||
# warn when reverse DNS lookups are performed, or ignore all hostnames in logs
|
||||
#
|
||||
# yes: if a hostname is encountered, a reverse DNS lookup will be performed.
|
||||
# warn: if a hostname is encountered, a reverse DNS lookup will be performed,
|
||||
# but it will be logged as a warning.
|
||||
# no: if a hostname is encountered, will not be used for banning,
|
||||
# but it will be logged as info.
|
||||
usedns = warn
|
||||
|
||||
# Destination email address used solely for the interpolations in
|
||||
# jail.{conf,local} configuration files.
|
||||
destemail = root@localhost
|
||||
|
||||
# Name of the sender for mta actions
|
||||
sendername = Fail2Ban
|
||||
|
||||
# ACTIONS
|
||||
|
||||
# Default banning action (e.g. iptables, iptables-new,
|
||||
# iptables-multiport, shorewall, etc) It is used to define
|
||||
# action_* variables. Can be overridden globally or per
|
||||
# section within jail.local file
|
||||
banaction = iptables-multiport
|
||||
|
||||
# email action. Since 0.8.1 upstream fail2ban uses sendmail
|
||||
# MTA for the mailing. Change mta configuration parameter to mail
|
||||
# if you want to revert to conventional 'mail'.
|
||||
mta = sendmail
|
||||
|
||||
# Default protocol
|
||||
protocol = tcp
|
||||
|
||||
# Specify chain where jumps would need to be added in iptables-* actions
|
||||
chain = INPUT
|
||||
|
||||
#
|
||||
# Action shortcuts. To be used to define action parameter
|
||||
|
||||
# The simplest action to take: ban only
|
||||
action_ = %(banaction)s[name=%(__name__)s, port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
|
||||
|
||||
# ban & send an e-mail with whois report to the destemail.
|
||||
action_mw = %(banaction)s[name=%(__name__)s, port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
|
||||
%(mta)s-whois[name=%(__name__)s, dest="%(destemail)s", protocol="%(protocol)s", chain="%(chain)s", sendername="%(sendername)s"]
|
||||
|
||||
# ban & send an e-mail with whois report and relevant log lines
|
||||
# to the destemail.
|
||||
action_mwl = %(banaction)s[name=%(__name__)s, port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
|
||||
%(mta)s-whois-lines[name=%(__name__)s, dest="%(destemail)s", logpath=%(logpath)s, chain="%(chain)s", sendername="%(sendername)s"]
|
||||
|
||||
# Choose default action. To change, just override value of 'action' with the
|
||||
# interpolation to the chosen action shortcut (e.g. action_mw, action_mwl, etc) in jail.local
|
||||
# globally (section [DEFAULT]) or per specific section
|
||||
action = %(action_)s
|
||||
|
||||
#
|
||||
# JAILS
|
||||
#
|
||||
|
||||
# Next jails corresponds to the standard configuration in Fail2ban 0.6 which
|
||||
# was shipped in Debian. Enable any defined here jail by including
|
||||
#
|
||||
# [SECTION_NAME]
|
||||
# enabled = true
|
||||
|
||||
#
|
||||
# in /etc/fail2ban/jail.local.
|
||||
#
|
||||
# Optionally you may override any other parameter (e.g. banaction,
|
||||
# action, port, logpath, etc) in that section within jail.local
|
||||
|
||||
[ssh]
|
||||
|
||||
enabled = true
|
||||
port = ssh
|
||||
filter = sshd
|
||||
logpath = /var/log/auth.log
|
||||
maxretry = 6
|
||||
|
||||
[nginx-limits]
|
||||
|
||||
enabled = true
|
||||
port = http,https
|
||||
filter = nginx-limits
|
||||
logpath = /hostdata/*/logs/error.log
|
||||
maxretry = 6
|
||||
|
||||
[nginx-ban]
|
||||
enabled = true
|
||||
port = http,https
|
||||
filter = nginx-ban
|
||||
logpath = /hostdata/*/logs/access.log
|
||||
maxretry = 1
|
||||
|
||||
[dropbear]
|
||||
|
||||
enabled = false
|
||||
port = ssh
|
||||
filter = dropbear
|
||||
logpath = /var/log/auth.log
|
||||
maxretry = 6
|
||||
|
||||
# Generic filter for pam. Has to be used with action which bans all ports
|
||||
# such as iptables-allports, shorewall
|
||||
[pam-generic]
|
||||
|
||||
enabled = false
|
||||
# pam-generic filter can be customized to monitor specific subset of 'tty's
|
||||
filter = pam-generic
|
||||
# port actually must be irrelevant but lets leave it all for some possible uses
|
||||
port = all
|
||||
banaction = iptables-allports
|
||||
port = anyport
|
||||
logpath = /var/log/auth.log
|
||||
maxretry = 6
|
||||
|
||||
[xinetd-fail]
|
||||
|
||||
enabled = false
|
||||
filter = xinetd-fail
|
||||
port = all
|
||||
banaction = iptables-multiport-log
|
||||
logpath = /var/log/daemon.log
|
||||
maxretry = 2
|
||||
|
||||
|
||||
[ssh-ddos]
|
||||
|
||||
enabled = false
|
||||
port = ssh
|
||||
filter = sshd-ddos
|
||||
logpath = /var/log/auth.log
|
||||
maxretry = 6
|
||||
|
||||
|
||||
# Here we use blackhole routes for not requiring any additional kernel support
|
||||
# to store large volumes of banned IPs
|
||||
|
||||
[ssh-route]
|
||||
|
||||
enabled = false
|
||||
filter = sshd
|
||||
action = route
|
||||
logpath = /var/log/sshd.log
|
||||
maxretry = 6
|
||||
|
||||
# Here we use a combination of Netfilter/Iptables and IPsets
|
||||
# for storing large volumes of banned IPs
|
||||
#
|
||||
# IPset comes in two versions. See ipset -V for which one to use
|
||||
# requires the ipset package and kernel support.
|
||||
[ssh-iptables-ipset4]
|
||||
|
||||
enabled = false
|
||||
port = ssh
|
||||
filter = sshd
|
||||
banaction = iptables-ipset-proto4
|
||||
logpath = /var/log/sshd.log
|
||||
maxretry = 6
|
||||
|
||||
[ssh-iptables-ipset6]
|
||||
|
||||
enabled = false
|
||||
port = ssh
|
||||
filter = sshd
|
||||
banaction = iptables-ipset-proto6
|
||||
logpath = /var/log/sshd.log
|
||||
maxretry = 6
|
||||
|
||||
|
||||
#
|
||||
# HTTP servers
|
||||
#
|
||||
|
||||
[apache]
|
||||
|
||||
enabled = false
|
||||
port = http,https
|
||||
filter = apache-auth
|
||||
logpath = /var/log/apache*/*error.log
|
||||
maxretry = 6
|
||||
|
||||
# default action is now multiport, so apache-multiport jail was left
|
||||
# for compatibility with previous (<0.7.6-2) releases
|
||||
[apache-multiport]
|
||||
|
||||
enabled = false
|
||||
port = http,https
|
||||
filter = apache-auth
|
||||
logpath = /var/log/apache*/*error.log
|
||||
maxretry = 6
|
||||
|
||||
[apache-noscript]
|
||||
|
||||
enabled = false
|
||||
port = http,https
|
||||
filter = apache-noscript
|
||||
logpath = /var/log/apache*/*error.log
|
||||
maxretry = 6
|
||||
|
||||
[apache-overflows]
|
||||
|
||||
enabled = false
|
||||
port = http,https
|
||||
filter = apache-overflows
|
||||
logpath = /var/log/apache*/*error.log
|
||||
maxretry = 2
|
||||
|
||||
# Ban attackers that try to use PHP's URL-fopen() functionality
|
||||
# through GET/POST variables. - Experimental, with more than a year
|
||||
# of usage in production environments.
|
||||
|
||||
[php-url-fopen]
|
||||
|
||||
enabled = false
|
||||
port = http,https
|
||||
filter = php-url-fopen
|
||||
logpath = /var/www/*/logs/access_log
|
||||
|
||||
# A simple PHP-fastcgi jail which works with lighttpd.
|
||||
# If you run a lighttpd server, then you probably will
|
||||
# find these kinds of messages in your error_log:
|
||||
# ALERT – tried to register forbidden variable ‘GLOBALS’
|
||||
# through GET variables (attacker '1.2.3.4', file '/var/www/default/htdocs/index.php')
|
||||
|
||||
[lighttpd-fastcgi]
|
||||
|
||||
enabled = false
|
||||
port = http,https
|
||||
filter = lighttpd-fastcgi
|
||||
logpath = /var/log/lighttpd/error.log
|
||||
|
||||
# Same as above for mod_auth
|
||||
# It catches wrong authentifications
|
||||
|
||||
[lighttpd-auth]
|
||||
|
||||
enabled = false
|
||||
port = http,https
|
||||
filter = suhosin
|
||||
logpath = /var/log/lighttpd/error.log
|
||||
|
||||
[nginx-http-auth]
|
||||
|
||||
enabled = true
|
||||
filter = nginx-http-auth
|
||||
port = http,https
|
||||
logpath = /var/log/nginx/error.log
|
||||
|
||||
# Monitor roundcube server
|
||||
|
||||
[roundcube-auth]
|
||||
|
||||
enabled = false
|
||||
filter = roundcube-auth
|
||||
port = http,https
|
||||
logpath = /var/log/roundcube/userlogins
|
||||
|
||||
|
||||
[sogo-auth]
|
||||
|
||||
enabled = false
|
||||
filter = sogo-auth
|
||||
port = http, https
|
||||
# without proxy this would be:
|
||||
# port = 20000
|
||||
logpath = /var/log/sogo/sogo.log
|
||||
|
||||
|
||||
# FTP servers
|
||||
|
||||
[vsftpd]
|
||||
|
||||
enabled = false
|
||||
port = ftp,ftp-data,ftps,ftps-data
|
||||
filter = vsftpd
|
||||
logpath = /var/log/vsftpd.log
|
||||
# or overwrite it in jails.local to be
|
||||
# logpath = /var/log/auth.log
|
||||
# if you want to rely on PAM failed login attempts
|
||||
# vsftpd's failregex should match both of those formats
|
||||
maxretry = 6
|
||||
|
||||
|
||||
[proftpd]
|
||||
|
||||
enabled = false
|
||||
port = ftp,ftp-data,ftps,ftps-data
|
||||
filter = proftpd
|
||||
logpath = /var/log/proftpd/proftpd.log
|
||||
maxretry = 6
|
||||
|
||||
|
||||
[pure-ftpd]
|
||||
|
||||
enabled = false
|
||||
port = ftp,ftp-data,ftps,ftps-data
|
||||
filter = pure-ftpd
|
||||
logpath = /var/log/syslog
|
||||
maxretry = 6
|
||||
|
||||
|
||||
[wuftpd]
|
||||
|
||||
enabled = false
|
||||
port = ftp,ftp-data,ftps,ftps-data
|
||||
filter = wuftpd
|
||||
logpath = /var/log/syslog
|
||||
maxretry = 6
|
||||
|
||||
|
||||
# Mail servers
|
||||
|
||||
[postfix]
|
||||
|
||||
enabled = false
|
||||
port = smtp,ssmtp,submission
|
||||
filter = postfix
|
||||
logpath = /var/log/mail.log
|
||||
|
||||
|
||||
[couriersmtp]
|
||||
|
||||
enabled = false
|
||||
port = smtp,ssmtp,submission
|
||||
filter = couriersmtp
|
||||
logpath = /var/log/mail.log
|
||||
|
||||
|
||||
#
|
||||
# Mail servers authenticators: might be used for smtp,ftp,imap servers, so
|
||||
# all relevant ports get banned
|
||||
#
|
||||
|
||||
[courierauth]
|
||||
|
||||
enabled = false
|
||||
port = smtp,ssmtp,submission,imap2,imap3,imaps,pop3,pop3s
|
||||
filter = courierlogin
|
||||
logpath = /var/log/mail.log
|
||||
|
||||
|
||||
[sasl]
|
||||
|
||||
enabled = false
|
||||
port = smtp,ssmtp,submission,imap2,imap3,imaps,pop3,pop3s
|
||||
filter = postfix-sasl
|
||||
# You might consider monitoring /var/log/mail.warn instead if you are
|
||||
# running postfix since it would provide the same log lines at the
|
||||
# "warn" level but overall at the smaller filesize.
|
||||
logpath = /var/log/mail.log
|
||||
|
||||
[dovecot]
|
||||
|
||||
enabled = false
|
||||
port = smtp,ssmtp,submission,imap2,imap3,imaps,pop3,pop3s
|
||||
filter = dovecot
|
||||
logpath = /var/log/mail.log
|
||||
|
||||
# To log wrong MySQL access attempts add to /etc/my.cnf:
|
||||
# log-error=/var/log/mysqld.log
|
||||
# log-warning = 2
|
||||
[mysqld-auth]
|
||||
|
||||
enabled = false
|
||||
filter = mysqld-auth
|
||||
port = 3306
|
||||
logpath = /var/log/mysqld.log
|
||||
|
||||
|
||||
# DNS Servers
|
||||
|
||||
|
||||
# These jails block attacks against named (bind9). By default, logging is off
|
||||
# with bind9 installation. You will need something like this:
|
||||
#
|
||||
# logging {
|
||||
# channel security_file {
|
||||
# file "/var/log/named/security.log" versions 3 size 30m;
|
||||
# severity dynamic;
|
||||
# print-time yes;
|
||||
# };
|
||||
# category security {
|
||||
# security_file;
|
||||
# };
|
||||
# };
|
||||
#
|
||||
# in your named.conf to provide proper logging
|
||||
|
||||
# !!! WARNING !!!
|
||||
# Since UDP is connection-less protocol, spoofing of IP and imitation
|
||||
# of illegal actions is way too simple. Thus enabling of this filter
|
||||
# might provide an easy way for implementing a DoS against a chosen
|
||||
# victim. See
|
||||
# http://nion.modprobe.de/blog/archives/690-fail2ban-+-dns-fail.html
|
||||
# Please DO NOT USE this jail unless you know what you are doing.
|
||||
#[named-refused-udp]
|
||||
#
|
||||
#enabled = false
|
||||
#port = domain,953
|
||||
#protocol = udp
|
||||
#filter = named-refused
|
||||
#logpath = /var/log/named/security.log
|
||||
|
||||
[named-refused-tcp]
|
||||
|
||||
enabled = false
|
||||
port = domain,953
|
||||
protocol = tcp
|
||||
filter = named-refused
|
||||
logpath = /var/log/named/security.log
|
||||
|
||||
# Multiple jails, 1 per protocol, are necessary ATM:
|
||||
# see https://github.com/fail2ban/fail2ban/issues/37
|
||||
[asterisk-tcp]
|
||||
|
||||
enabled = false
|
||||
filter = asterisk
|
||||
port = 5060,5061
|
||||
protocol = tcp
|
||||
logpath = /var/log/asterisk/messages
|
||||
|
||||
[asterisk-udp]
|
||||
|
||||
enabled = false
|
||||
filter = asterisk
|
||||
port = 5060,5061
|
||||
protocol = udp
|
||||
logpath = /var/log/asterisk/messages
|
||||
|
||||
|
||||
# Jail for more extended banning of persistent abusers
|
||||
# !!! WARNING !!!
|
||||
# Make sure that your loglevel specified in fail2ban.conf/.local
|
||||
# is not at DEBUG level -- which might then cause fail2ban to fall into
|
||||
# an infinite loop constantly feeding itself with non-informative lines
|
||||
[recidive]
|
||||
|
||||
enabled = false
|
||||
filter = recidive
|
||||
logpath = /var/log/fail2ban.log
|
||||
action = iptables-allports[name=recidive]
|
||||
sendmail-whois-lines[name=recidive, logpath=/var/log/fail2ban.log]
|
||||
bantime = 604800 ; 1 week
|
||||
findtime = 86400 ; 1 day
|
||||
maxretry = 5
|
||||
@@ -1,33 +0,0 @@
|
||||
# Generated by iptables-save v1.6.1 on Fri May 3 07:22:39 2019
|
||||
*mangle
|
||||
:PREROUTING ACCEPT [0:0]
|
||||
:INPUT ACCEPT [0:0]
|
||||
:FORWARD ACCEPT [0:0]
|
||||
:OUTPUT ACCEPT [3:376]
|
||||
:POSTROUTING ACCEPT [3:376]
|
||||
COMMIT
|
||||
# Completed on Fri May 3 07:22:39 2019
|
||||
# Generated by iptables-save v1.6.1 on Fri May 3 07:22:39 2019
|
||||
*nat
|
||||
:PREROUTING ACCEPT [0:0]
|
||||
:INPUT ACCEPT [0:0]
|
||||
:OUTPUT ACCEPT [0:0]
|
||||
:POSTROUTING ACCEPT [0:0]
|
||||
COMMIT
|
||||
# Completed on Fri May 3 07:22:39 2019
|
||||
# Generated by iptables-save v1.6.1 on Fri May 3 07:22:39 2019
|
||||
*filter
|
||||
:INPUT DROP [0:0]
|
||||
:FORWARD ACCEPT [0:0]
|
||||
:OUTPUT ACCEPT [3:376]
|
||||
-A INPUT -i lo -j ACCEPT
|
||||
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
|
||||
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
|
||||
-A INPUT -m conntrack --ctstate INVALID -j DROP
|
||||
-A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable
|
||||
-A INPUT -p tcp -j REJECT --reject-with tcp-reset
|
||||
-A INPUT -j REJECT --reject-with icmp-proto-unreachable
|
||||
COMMIT
|
||||
# Completed on Fri May 3 07:22:39 2019
|
||||
@@ -0,0 +1,16 @@
|
||||
[Nginx]
|
||||
Description=A high performance web server and a reverse proxy server
|
||||
After=syslog.target network-online.target remote-fs.target nss-lookup.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/nginx.pid
|
||||
ExecStartPre=/usr/sbin/nginx -t
|
||||
ExecStart=/usr/sbin/nginx
|
||||
ExecReload=/usr/sbin/nginx -s reload
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=A high performance web server and a reverse proxy server
|
||||
After=syslog.target network-online.target remote-fs.target nss-lookup.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/nginx.pid
|
||||
ExecStartPre=/usr/sbin/nginx -t
|
||||
ExecStart=/usr/sbin/nginx
|
||||
ExecReload=/usr/sbin/nginx -s reload
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,195 +0,0 @@
|
||||
# ========================================
|
||||
# Proxies used for brute force.
|
||||
deny 185.145.200.0/22;
|
||||
deny 175.139.192.0/18;
|
||||
deny 160.16.128.0/17;
|
||||
deny 35.190.128.0/19;
|
||||
deny 34.192.0.0/12;
|
||||
deny 123.30.174.0/24;
|
||||
deny 58.82.144.0/21;
|
||||
deny 92.63.96.0/21;
|
||||
deny 109.68.150.0/24;
|
||||
deny 171.248.0.0/13;
|
||||
deny 196.220.97.0/24;
|
||||
deny 185.145.202.171/32;
|
||||
deny 123.30.174.151/32;
|
||||
deny 47.90.87.225/32;
|
||||
deny 204.12.155.201/32;
|
||||
deny 168.90.224.75/32;
|
||||
deny 47.52.231.140/32;
|
||||
deny 47.90.72.227/32;
|
||||
deny 47.91.139.78/32;
|
||||
deny 62.109.14.242/32;
|
||||
deny 118.193.26.18/32;
|
||||
deny 159.224.176.205/32;
|
||||
deny 74.217.93.206/32;
|
||||
deny 27.111.43.178/32;
|
||||
deny 47.206.51.67/32;
|
||||
deny 194.190.17.23/32;
|
||||
deny 50.233.136.254/32;
|
||||
deny 62.133.191.113/32;
|
||||
deny 80.95.11.139/32;
|
||||
deny 37.99.214.45/32;
|
||||
deny 103.74.246.161/32;
|
||||
deny 69.85.70.37/32;
|
||||
deny 187.58.213.116/32;
|
||||
deny 85.30.219.24/32;
|
||||
deny 34.200.213.29/32;
|
||||
deny 92.63.103.226/32;
|
||||
deny 181.196.50.238/32;
|
||||
deny 36.73.121.24/32;
|
||||
deny 74.217.93.211/32;
|
||||
deny 81.22.54.60/32;
|
||||
deny 36.73.159.128/32;
|
||||
deny 2.138.24.102/32;
|
||||
deny 188.244.185.94/32;
|
||||
deny 89.255.94.111/32;
|
||||
deny 74.217.93.208/32;
|
||||
deny 58.82.151.37/32;
|
||||
deny 74.217.93.207/32;
|
||||
deny 74.217.93.209/32;
|
||||
deny 74.217.93.212/32;
|
||||
deny 24.155.93.123/32;
|
||||
deny 74.217.93.204/32;
|
||||
deny 74.217.93.210/32;
|
||||
deny 117.6.161.118/32;
|
||||
deny 154.119.50.246/32;
|
||||
deny 74.217.93.205/32;
|
||||
deny 37.76.234.230/32;
|
||||
deny 176.122.251.56/32;
|
||||
deny 113.254.33.38/32;
|
||||
deny 185.145.202.171/32;
|
||||
deny 175.139.252.193/32;
|
||||
deny 5.188.10.8/32;
|
||||
deny 5.199.130.127/32;
|
||||
deny 185.220.101.10/32;
|
||||
deny 192.160.102.169/32;
|
||||
deny 185.220.101.9/32;
|
||||
deny 216.218.134.12/32;
|
||||
deny 144.217.245.23/32;
|
||||
deny 185.220.101.22/32;
|
||||
deny 104.192.0.58/32;
|
||||
deny 91.195.158.95/32;
|
||||
deny 51.15.72.211/32;
|
||||
deny 185.220.101.30/32;
|
||||
deny 185.100.87.206/32;
|
||||
deny 104.218.63.72/32;
|
||||
deny 185.38.14.171/32;
|
||||
deny 65.19.167.130/32;
|
||||
deny 185.220.101.29/32;
|
||||
deny 65.19.167.131/32;
|
||||
deny 216.218.222.12/32;
|
||||
deny 204.85.191.30/32;
|
||||
deny 196.220.97.1/32;
|
||||
deny 193.90.12.119/32;
|
||||
deny 54.36.222.37/32;
|
||||
deny 163.172.171.163/32;
|
||||
deny 51.15.143.28/32;
|
||||
deny 84.141.66.143/32;
|
||||
deny 93.115.95.207/32;
|
||||
deny 62.210.105.116/32;
|
||||
deny 193.90.12.116/32;
|
||||
deny 185.220.101.24/32;
|
||||
deny 51.254.208.245/32;
|
||||
deny 37.187.94.86/32;
|
||||
deny 185.220.101.21/32;
|
||||
deny 51.15.64.39/32;
|
||||
deny 91.250.241.241/32;
|
||||
deny 188.214.104.146/32;
|
||||
deny 172.104.252.154/32;
|
||||
deny 77.247.181.162/32;
|
||||
deny 176.10.104.243/32;
|
||||
deny 192.36.27.4/32;
|
||||
deny 93.115.86.4/32;
|
||||
deny 149.202.170.60/32;
|
||||
deny 144.217.60.239/32;
|
||||
deny 185.220.101.1/32;
|
||||
deny 185.11.167.4/32;
|
||||
deny 185.10.68.114/32;
|
||||
deny 109.201.133.100/32;
|
||||
deny 171.25.193.77/32;
|
||||
deny 5.79.86.15/32;
|
||||
deny 172.104.29.241/32;
|
||||
deny 163.172.41.228/32;
|
||||
deny 163.172.160.182/32;
|
||||
deny 94.100.6.27/32;
|
||||
deny 185.220.101.28/32;
|
||||
deny 176.31.180.157/32;
|
||||
deny 5.135.158.101/32;
|
||||
deny 185.195.25.111/32;
|
||||
deny 185.220.101.25/32;
|
||||
deny 62.210.110.181/32;
|
||||
deny 193.90.12.115/32;
|
||||
deny 195.22.126.147/32;
|
||||
deny 84.53.65.151/32;
|
||||
deny 104.218.63.74/32;
|
||||
deny 144.217.245.243/32;
|
||||
deny 178.17.170.156/32;
|
||||
deny 46.182.106.190/32;
|
||||
deny 84.209.48.106/32;
|
||||
deny 185.117.118.234/32;
|
||||
deny 185.220.101.44/32;
|
||||
deny 192.99.247.1/32;
|
||||
deny 163.172.174.24/32;
|
||||
deny 46.101.128.0/18;
|
||||
deny 192.36.27.6/32;
|
||||
deny 185.129.62.63/32;
|
||||
deny 104.223.123.98/32;
|
||||
deny 193.90.12.117/32;
|
||||
deny 171.25.193.235/32;
|
||||
deny 51.15.64.212/32;
|
||||
deny 166.70.207.2/32;
|
||||
deny 216.218.222.14/32;
|
||||
deny 176.223.113.26/32;
|
||||
deny 178.63.97.34/32;
|
||||
deny 176.10.99.200/32;
|
||||
deny 37.233.103.114/32;
|
||||
deny 78.109.23.1/32;
|
||||
deny 185.165.168.229/32;
|
||||
deny 109.228.51.164/32;
|
||||
deny 170.250.140.52/32;
|
||||
deny 176.107.188.11/32;
|
||||
deny 185.220.101.6/32;
|
||||
deny 185.220.101.46/32;
|
||||
deny 146.185.177.103/32;
|
||||
deny 64.113.32.29/32;
|
||||
deny 95.128.43.164/32;
|
||||
deny 37.220.35.202/32;
|
||||
deny 5.196.66.162/32;
|
||||
deny 5.254.112.154/32;
|
||||
deny 31.171.155.131/32;
|
||||
deny 93.115.95.206/32;
|
||||
deny 185.220.101.15/32;
|
||||
deny 185.220.101.4/32;
|
||||
deny 185.100.85.101/32;
|
||||
deny 185.222.209.32/32;
|
||||
deny 185.227.82.9/32;
|
||||
deny 85.93.218.204/32;
|
||||
deny 93.115.95.205/32;
|
||||
deny 87.118.92.43/32;
|
||||
deny 51.15.56.204/32;
|
||||
deny 66.70.217.179/32;
|
||||
deny 185.100.87.207/32;
|
||||
deny 185.220.101.32/32;
|
||||
deny 176.8.24.228/32;
|
||||
deny 51.15.209.128/32;
|
||||
deny 193.90.12.118/32;
|
||||
deny 52.224.48.30/32;
|
||||
deny 62.210.37.82/32;
|
||||
deny 80.127.116.96/32;
|
||||
deny 122.183.242.53/32;
|
||||
deny 93.115.95.204/32;
|
||||
deny 165.227.39.194/32;
|
||||
deny 144.217.60.211/32;
|
||||
deny 176.126.252.12/32;
|
||||
deny 178.165.72.177/32;
|
||||
deny 185.38.14.215/32;
|
||||
deny 27.124.124.126/32;
|
||||
deny 185.165.168.77/32;
|
||||
deny 185.220.101.26/32;
|
||||
deny 217.147.169.75/32;
|
||||
deny 185.169.43.68/32;
|
||||
deny 185.220.101.8/32;
|
||||
deny 144.217.45.37/32;
|
||||
deny 65.19.167.132/32;
|
||||
# ==========================================
|
||||
@@ -1,23 +0,0 @@
|
||||
map $geoip2_data_country_code $allowed_country {
|
||||
default yes;
|
||||
BD no;
|
||||
IT no;
|
||||
PL no;
|
||||
CM no;
|
||||
CA no;
|
||||
TH no;
|
||||
ZA no;
|
||||
EC no;
|
||||
HK no;
|
||||
CZ no;
|
||||
ID no;
|
||||
BR no;
|
||||
SA no;
|
||||
FK no;
|
||||
FM no;
|
||||
EH no;
|
||||
CN no;
|
||||
VN no;
|
||||
RU no;
|
||||
TR no;
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
[unix_http_server]
|
||||
file=/var/run/supervisor.sock
|
||||
chmod=0700
|
||||
|
||||
[supervisord]
|
||||
user=root
|
||||
logfile=/var/log/supervisor/supervisord.log
|
||||
pidfile=/var/run/supervisord.pid
|
||||
childlogdir=/var/log/supervisor
|
||||
|
||||
|
||||
[rpcinterface:supervisor]
|
||||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||
|
||||
[supervisorctl]
|
||||
serverurl=unix:///var/run/supervisor.sock
|
||||
|
||||
[program:nginx]
|
||||
user=root
|
||||
command=/usr/sbin/nginx -g "daemon off;"
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startretries=5
|
||||
startsecs=0
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
stderr_logfile=/var/log/supervisor/%(program_name)s_stderr.log
|
||||
stderr_logfile_maxbytes=1MB
|
||||
stdout_logfile=/var/log/supervisor/%(program_name)s_stdout.log
|
||||
stdout_logfile_maxbytes=1MB
|
||||
|
||||
[include]
|
||||
files = /etc/supervisor/conf.d/*.conf
|
||||
@@ -1,5 +1,5 @@
|
||||
<html>
|
||||
<center><h1>NGINX-AS-WEB-FIREWALL Default Page!?</h1></center>
|
||||
<center><h1>Congratulations</h1></center>
|
||||
<center><h2>If you can see this that means your installation was successful!</h2></center>
|
||||
<center><h2>Thank You For Using This Project, For Issues or suggestion Post them on <a href="https://github.com/theraw/The-World-Is-Yours" target="_blank">(Github)</a></h2></center>
|
||||
</html>
|
||||
@@ -0,0 +1,23 @@
|
||||
testcookie off;
|
||||
testcookie_name DOPEHOSTING;
|
||||
testcookie_secret random;
|
||||
testcookie_session $remote_addr;
|
||||
#testcookie_arg GO;
|
||||
testcookie_httponly_flag on;
|
||||
testcookie_max_attempts 3;
|
||||
testcookie_secure_flag on;
|
||||
testcookie_get_only on;
|
||||
testcookie_p3p 'CP="CUR ADM OUR NOR STA NID", policyref="/w3c/p3p.xml"';
|
||||
testcookie_fallback /cookies.html?backurl=$scheme://$host$request_uri;
|
||||
|
||||
# Those are some ip's whitelisted by me. mostly are search engines. But not everything!
|
||||
testcookie_whitelist {
|
||||
8.8.8.8/32;
|
||||
127.0.0.1/32;
|
||||
# I don't suggest using alot of IPs here as this whitelist can fail!.
|
||||
}
|
||||
testcookie_redirect_via_refresh on;
|
||||
testcookie_refresh_encrypt_cookie on;
|
||||
testcookie_refresh_encrypt_cookie_key random;
|
||||
testcookie_refresh_encrypt_cookie_iv random;
|
||||
testcookie_refresh_template '<html><head><meta http-equiv="refresh" content="0; $testcookie_nexturl"><title>Just a moment please...</title></head><body> </script><script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script><script type=\"text/javascript\" src="//cdn.jsdelivr.net/gh/theraw/The-World-Is-Yours/static/modsec/aes.min.js" ></script><script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("$testcookie_enc_key"),b=toNumbers("$testcookie_enc_iv"),c=toNumbers("$testcookie_enc_set");document.cookie="DOPEHOSTING="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/";</script></body></html>';
|
||||
@@ -0,0 +1,275 @@
|
||||
# -- Rule engine initialization ----------------------------------------------
|
||||
|
||||
# Enable ModSecurity, attaching it to every transaction. Use detection
|
||||
# only to start with, because that minimises the chances of post-installation
|
||||
# disruption.
|
||||
#
|
||||
SecRuleEngine DetectionOnly
|
||||
|
||||
|
||||
# -- Request body handling ---------------------------------------------------
|
||||
|
||||
# Allow ModSecurity to access request bodies. If you don't, ModSecurity
|
||||
# won't be able to see any POST parameters, which opens a large security
|
||||
# hole for attackers to exploit.
|
||||
#
|
||||
SecRequestBodyAccess On
|
||||
|
||||
|
||||
# Enable XML request body parser.
|
||||
# Initiate XML Processor in case of xml content-type
|
||||
#
|
||||
SecRule REQUEST_HEADERS:Content-Type "(?:application(?:/soap\+|/)|text/)xml" \
|
||||
"id:'200000',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=XML"
|
||||
|
||||
# Enable JSON request body parser.
|
||||
# Initiate JSON Processor in case of JSON content-type; change accordingly
|
||||
# if your application does not use 'application/json'
|
||||
#
|
||||
SecRule REQUEST_HEADERS:Content-Type "application/json" \
|
||||
"id:'200001',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=JSON"
|
||||
|
||||
# Sample rule to enable JSON request body parser for more subtypes.
|
||||
# Uncomment or adapt this rule if you want to engage the JSON
|
||||
# Processor for "+json" subtypes
|
||||
#
|
||||
#SecRule REQUEST_HEADERS:Content-Type "^application/.+[+]json$" \
|
||||
# "id:'200006',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=JSON"
|
||||
|
||||
# Maximum request body size we will accept for buffering. If you support
|
||||
# file uploads then the value given on the first line has to be as large
|
||||
# as the largest file you are willing to accept. The second value refers
|
||||
# to the size of data, with files excluded. You want to keep that value as
|
||||
# low as practical.
|
||||
#
|
||||
SecRequestBodyLimit 13107200
|
||||
SecRequestBodyNoFilesLimit 131072
|
||||
|
||||
# What to do if the request body size is above our configured limit.
|
||||
# Keep in mind that this setting will automatically be set to ProcessPartial
|
||||
# when SecRuleEngine is set to DetectionOnly mode in order to minimize
|
||||
# disruptions when initially deploying ModSecurity.
|
||||
#
|
||||
SecRequestBodyLimitAction Reject
|
||||
|
||||
# Maximum parsing depth allowed for JSON objects. You want to keep this
|
||||
# value as low as practical.
|
||||
#
|
||||
SecRequestBodyJsonDepthLimit 512
|
||||
|
||||
# Verify that we've correctly processed the request body.
|
||||
# As a rule of thumb, when failing to process a request body
|
||||
# you should reject the request (when deployed in blocking mode)
|
||||
# or log a high-severity alert (when deployed in detection-only mode).
|
||||
#
|
||||
SecRule REQBODY_ERROR "!@eq 0" \
|
||||
"id:'200002', phase:2,t:none,log,deny,status:400,msg:'Failed to parse request body.',logdata:'%{reqbody_error_msg}',severity:2"
|
||||
|
||||
# By default be strict with what we accept in the multipart/form-data
|
||||
# request body. If the rule below proves to be too strict for your
|
||||
# environment consider changing it to detection-only. You are encouraged
|
||||
# _not_ to remove it altogether.
|
||||
#
|
||||
SecRule MULTIPART_STRICT_ERROR "!@eq 0" \
|
||||
"id:'200003',phase:2,t:none,log,deny,status:400, \
|
||||
msg:'Multipart request body failed strict validation: \
|
||||
PE %{REQBODY_PROCESSOR_ERROR}, \
|
||||
BQ %{MULTIPART_BOUNDARY_QUOTED}, \
|
||||
BW %{MULTIPART_BOUNDARY_WHITESPACE}, \
|
||||
DB %{MULTIPART_DATA_BEFORE}, \
|
||||
DA %{MULTIPART_DATA_AFTER}, \
|
||||
HF %{MULTIPART_HEADER_FOLDING}, \
|
||||
LF %{MULTIPART_LF_LINE}, \
|
||||
SM %{MULTIPART_MISSING_SEMICOLON}, \
|
||||
IQ %{MULTIPART_INVALID_QUOTING}, \
|
||||
IP %{MULTIPART_INVALID_PART}, \
|
||||
IH %{MULTIPART_INVALID_HEADER_FOLDING}, \
|
||||
FL %{MULTIPART_FILE_LIMIT_EXCEEDED}'"
|
||||
|
||||
# Did we see anything that might be a boundary?
|
||||
#
|
||||
# Here is a short description about the ModSecurity Multipart parser: the
|
||||
# parser returns with value 0, if all "boundary-like" line matches with
|
||||
# the boundary string which given in MIME header. In any other cases it returns
|
||||
# with different value, eg. 1 or 2.
|
||||
#
|
||||
# The RFC 1341 descript the multipart content-type and its syntax must contains
|
||||
# only three mandatory lines (above the content):
|
||||
# * Content-Type: multipart/mixed; boundary=BOUNDARY_STRING
|
||||
# * --BOUNDARY_STRING
|
||||
# * --BOUNDARY_STRING--
|
||||
#
|
||||
# First line indicates, that this is a multipart content, second shows that
|
||||
# here starts a part of the multipart content, third shows the end of content.
|
||||
#
|
||||
# If there are any other lines, which starts with "--", then it should be
|
||||
# another boundary id - or not.
|
||||
#
|
||||
# After 3.0.3, there are two kinds of types of boundary errors: strict and permissive.
|
||||
#
|
||||
# If multipart content contains the three necessary lines with correct order, but
|
||||
# there are one or more lines with "--", then parser returns with value 2 (non-zero).
|
||||
#
|
||||
# If some of the necessary lines (usually the start or end) misses, or the order
|
||||
# is wrong, then parser returns with value 1 (also a non-zero).
|
||||
#
|
||||
# You can choose, which one is what you need. The example below contains the
|
||||
# 'strict' mode, which means if there are any lines with start of "--", then
|
||||
# ModSecurity blocked the content. But the next, commented example contains
|
||||
# the 'permissive' mode, then you check only if the necessary lines exists in
|
||||
# correct order. Whit this, you can enable to upload PEM files (eg "----BEGIN.."),
|
||||
# or other text files, which contains eg. HTTP headers.
|
||||
#
|
||||
# The difference is only the operator - in strict mode (first) the content blocked
|
||||
# in case of any non-zero value. In permissive mode (second, commented) the
|
||||
# content blocked only if the value is explicit 1. If it 0 or 2, the content will
|
||||
# allowed.
|
||||
#
|
||||
|
||||
#
|
||||
# See #1747 and #1924 for further information on the possible values for
|
||||
# MULTIPART_UNMATCHED_BOUNDARY.
|
||||
#
|
||||
SecRule MULTIPART_UNMATCHED_BOUNDARY "@eq 1" \
|
||||
"id:'200004',phase:2,t:none,log,deny,msg:'Multipart parser detected a possible unmatched boundary.'"
|
||||
|
||||
|
||||
# PCRE Tuning
|
||||
# We want to avoid a potential RegEx DoS condition
|
||||
#
|
||||
SecPcreMatchLimit 1000
|
||||
SecPcreMatchLimitRecursion 1000
|
||||
|
||||
# Some internal errors will set flags in TX and we will need to look for these.
|
||||
# All of these are prefixed with "MSC_". The following flags currently exist:
|
||||
#
|
||||
# MSC_PCRE_LIMITS_EXCEEDED: PCRE match limits were exceeded.
|
||||
#
|
||||
SecRule TX:/^MSC_/ "!@streq 0" \
|
||||
"id:'200005',phase:2,t:none,deny,msg:'ModSecurity internal error flagged: %{MATCHED_VAR_NAME}'"
|
||||
|
||||
|
||||
# -- Response body handling --------------------------------------------------
|
||||
|
||||
# Allow ModSecurity to access response bodies.
|
||||
# You should have this directive enabled in order to identify errors
|
||||
# and data leakage issues.
|
||||
#
|
||||
# Do keep in mind that enabling this directive does increases both
|
||||
# memory consumption and response latency.
|
||||
#
|
||||
SecResponseBodyAccess On
|
||||
|
||||
# Which response MIME types do you want to inspect? You should adjust the
|
||||
# configuration below to catch documents but avoid static files
|
||||
# (e.g., images and archives).
|
||||
#
|
||||
SecResponseBodyMimeType text/plain text/html text/xml
|
||||
|
||||
# Buffer response bodies of up to 512 KB in length.
|
||||
SecResponseBodyLimit 524288
|
||||
|
||||
# What happens when we encounter a response body larger than the configured
|
||||
# limit? By default, we process what we have and let the rest through.
|
||||
# That's somewhat less secure, but does not break any legitimate pages.
|
||||
#
|
||||
SecResponseBodyLimitAction ProcessPartial
|
||||
|
||||
|
||||
# -- Filesystem configuration ------------------------------------------------
|
||||
|
||||
# The location where ModSecurity stores temporary files (for example, when
|
||||
# it needs to handle a file upload that is larger than the configured limit).
|
||||
#
|
||||
# This default setting is chosen due to all systems have /tmp available however,
|
||||
# this is less than ideal. It is recommended that you specify a location that's private.
|
||||
#
|
||||
SecTmpDir /tmp/
|
||||
|
||||
# The location where ModSecurity will keep its persistent data. This default setting
|
||||
# is chosen due to all systems have /tmp available however, it
|
||||
# too should be updated to a place that other users can't access.
|
||||
#
|
||||
SecDataDir /tmp/
|
||||
|
||||
|
||||
# -- File uploads handling configuration -------------------------------------
|
||||
|
||||
# The location where ModSecurity stores intercepted uploaded files. This
|
||||
# location must be private to ModSecurity. You don't want other users on
|
||||
# the server to access the files, do you?
|
||||
#
|
||||
#SecUploadDir /opt/modsecurity/var/upload/
|
||||
|
||||
# By default, only keep the files that were determined to be unusual
|
||||
# in some way (by an external inspection script). For this to work you
|
||||
# will also need at least one file inspection rule.
|
||||
#
|
||||
#SecUploadKeepFiles RelevantOnly
|
||||
|
||||
# Uploaded files are by default created with permissions that do not allow
|
||||
# any other user to access them. You may need to relax that if you want to
|
||||
# interface ModSecurity to an external program (e.g., an anti-virus).
|
||||
#
|
||||
#SecUploadFileMode 0600
|
||||
|
||||
|
||||
# -- Debug log configuration -------------------------------------------------
|
||||
|
||||
# The default debug log configuration is to duplicate the error, warning
|
||||
# and notice messages from the error log.
|
||||
#
|
||||
#SecDebugLog /opt/modsecurity/var/log/debug.log
|
||||
#SecDebugLogLevel 3
|
||||
|
||||
|
||||
# -- Audit log configuration -------------------------------------------------
|
||||
|
||||
# Log the transactions that are marked by a rule, as well as those that
|
||||
# trigger a server error (determined by a 5xx or 4xx, excluding 404,
|
||||
# level response status codes).
|
||||
#
|
||||
SecAuditEngine RelevantOnly
|
||||
SecAuditLogRelevantStatus "^(?:5|4(?!04))"
|
||||
|
||||
# Log everything we know about a transaction.
|
||||
SecAuditLogParts ABIJDEFHZ
|
||||
|
||||
# Use a single file for logging. This is much easier to look at, but
|
||||
# assumes that you will use the audit log only ocassionally.
|
||||
#
|
||||
SecAuditLogType Serial
|
||||
SecAuditLog /var/log/modsec_audit.log
|
||||
|
||||
# Specify the path for concurrent audit logging.
|
||||
#SecAuditLogStorageDir /opt/modsecurity/var/audit/
|
||||
|
||||
|
||||
# -- Miscellaneous -----------------------------------------------------------
|
||||
|
||||
# Use the most commonly used application/x-www-form-urlencoded parameter
|
||||
# separator. There's probably only one application somewhere that uses
|
||||
# something else so don't expect to change this value.
|
||||
#
|
||||
SecArgumentSeparator &
|
||||
|
||||
# Settle on version 0 (zero) cookies, as that is what most applications
|
||||
# use. Using an incorrect cookie version may open your installation to
|
||||
# evasion attacks (against the rules that examine named cookies).
|
||||
#
|
||||
SecCookieFormat 0
|
||||
|
||||
# Specify your Unicode Code Point.
|
||||
# This mapping is used by the t:urlDecodeUni transformation function
|
||||
# to properly map encoded data to your language. Properly setting
|
||||
# these directives helps to reduce false positives and negatives.
|
||||
#
|
||||
SecUnicodeMapFile unicode.mapping 20127
|
||||
|
||||
# Improve the quality of ModSecurity by sharing information about your
|
||||
# current ModSecurity version and dependencies versions.
|
||||
# The following information will be shared: ModSecurity version,
|
||||
# Web Server version, APR version, PCRE version, Lua version, Libxml2
|
||||
# version, Anonymous unique id for host.
|
||||
SecStatusEngine On
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# Include the recommended configuration
|
||||
Include /nginx/modsec/modsecurity.conf
|
||||
|
||||
|
||||
# A test rule
|
||||
SecRule ARGS:testparam "@contains test" "id:1234,deny,log,status:403"
|
||||
@@ -0,0 +1,96 @@
|
||||
(MAC - Roman)
|
||||
|
||||
|
||||
(MAC - Icelandic)
|
||||
|
||||
|
||||
1250 (ANSI - Central Europe)
|
||||
00a1:21 00a2:63 00a3:4c 00a5:59 00aa:61 00b2:32 00b3:33 00b9:31 00ba:6f 00bc:31 00bd:31 00be:33 00c0:41 00c3:41 00c5:41 00c6:41 00c8:45 00ca:45 00cc:49 00cf:49 00d1:4e 00d2:4f 00d5:4f 00d8:4f 00d9:55 00db:55 00e0:61 00e3:61 00e5:61 00e6:61 00e8:65 00ea:65 00ec:69 00ef:69 00f1:6e 00f2:6f 00f5:6f 00f8:6f 00f9:75 00fb:75 00ff:79 0100:41 0101:61 0108:43 0109:63 010a:43 010b:63 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0131:69 0134:4a 0135:6a 0136:4b 0137:6b 013b:4c 013c:6c 0145:4e 0146:6e 014c:4f 014d:6f 014e:4f 014f:6f 0152:4f 0153:6f 0156:52 0157:72 015c:53 015d:73 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0178:59 0180:62 0191:46 0192:66 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01b6:7a 01c0:7c 01c3:21 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 0261:67 02b9:27 02ba:22 02bc:27 02c4:5e 02c6:5e 02c8:27 02cb:60 02cd:5f 02dc:7e 0300:60 0302:5e 0303:7e 030e:22 0331:5f 0332:5f 037e:3b 04bb:68 0589:3a 066a:25 2000:20 2001:20 2002:20 2003:20 2004:20 2005:20 2006:20 2010:2d 2011:2d 2032:27 2035:60 203c:21 2044:2f 2074:34 2075:35 2076:36 2077:37 2078:38 2080:30 2081:31 2082:32 2083:33 2084:34 2085:35 2086:36 2087:37 2088:38 2089:39 2102:43 2107:45 210a:67 210b:48 210c:48 210d:48 210e:68 2110:49 2111:49 2112:4c 2113:6c 2115:4e 2118:50 2119:50 211a:51 211b:52 211c:52 211d:52 2124:5a 2128:5a 212a:4b 212c:42 212d:43 212e:65 212f:65 2130:45 2131:46 2133:4d 2134:6f 2191:5e 2194:2d 2195:7c 21a8:7c 2212:2d 2215:2f 2216:5c 2217:2a 221f:4c 2223:7c 2236:3a 223c:7e 2303:5e 2329:3c 232a:3e 2502:2d 250c:2d 2514:4c 2518:2d 251c:2b 2524:2b 252c:54 2534:2b 253c:2b 2550:3d 2554:2d 255a:4c 255d:2d 2566:54 256c:2b 2580:2d 2584:2d 2588:2d 2591:2d 2592:2d 2593:2d 25ac:2d 25b2:5e 25ba:3e 25c4:3c 25cb:30 25d9:30 263c:30 2640:2b 2642:3e 266a:64 266b:64 2758:7c 3000:20 3008:3c 3009:3e 301a:5b 301b:5d ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
1251 (ANSI - Cyrillic)
|
||||
00c0:41 00c1:41 00c2:41 00c3:41 00c4:41 00c5:41 00c7:43 00c8:45 00c9:45 00ca:45 00cb:45 00cc:49 00cd:49 00ce:49 00cf:49 00d1:4e 00d2:4f 00d3:4f 00d4:4f 00d5:4f 00d6:4f 00d8:4f 00d9:55 00da:55 00db:55 00dc:55 00dd:59 00e0:61 00e1:61 00e2:61 00e3:61 00e4:61 00e5:61 00e7:63 00e8:65 00e9:65 00ea:65 00eb:65 00ec:69 00ed:69 00ee:69 00ef:69 00f1:6e 00f2:6f 00f3:6f 00f4:6f 00f5:6f 00f6:6f 00f8:6f 00f9:75 00fa:75 00fb:75 00fc:75 00fd:79 00ff:79 0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0110:44 0111:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0134:4a 0135:6a 0136:4b 0137:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 015e:53 015f:73 0160:53 0161:73 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0178:59 0179:5a 017b:5a 017c:7a 017d:5a 017e:7a 0180:62 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 203c:21 2190:3c 2191:5e 2192:3e 2193:76 2194:2d 221a:76 221f:4c 2500:2d 250c:2d 2514:4c 2518:2d 251c:2b 2524:2b 252c:54 2534:2b 253c:2b 2550:3d 2552:2d 2558:4c 2559:4c 255a:4c 255b:2d 255c:2d 255d:2d 2564:54 2565:54 2566:54 256a:2b 256b:2b 256c:2b 2580:2d 2584:2d 2588:2d 2591:2d 2592:2d 2593:2d 25ac:2d 25b2:5e 25ba:3e 25c4:3c 25cb:30 25d9:30 263a:4f 263b:4f 263c:30 2640:2b 2642:3e 266a:64 266b:64 ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
1252 (ANSI - Latin I)
|
||||
0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0111:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0131:69 0134:4a 0135:6a 0136:4b 0137:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 015e:53 015f:73 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0179:5a 017b:5a 017c:7a 0180:62 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01b6:7a 01c0:7c 01c3:21 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 0261:67 02b9:27 02ba:22 02bc:27 02c4:5e 02c8:27 02cb:60 02cd:5f 0300:60 0302:5e 0303:7e 030e:22 0331:5f 0332:5f 037e:3b 0393:47 0398:54 03a3:53 03a6:46 03a9:4f 03b1:61 03b4:64 03b5:65 03c0:70 03c3:73 03c4:74 03c6:66 04bb:68 0589:3a 066a:25 2000:20 2001:20 2002:20 2003:20 2004:20 2005:20 2006:20 2010:2d 2011:2d 2017:3d 2032:27 2035:60 2044:2f 2074:34 2075:35 2076:36 2077:37 2078:38 207f:6e 2080:30 2081:31 2082:32 2083:33 2084:34 2085:35 2086:36 2087:37 2088:38 2089:39 20a7:50 2102:43 2107:45 210a:67 210b:48 210c:48 210d:48 210e:68 2110:49 2111:49 2112:4c 2113:6c 2115:4e 2118:50 2119:50 211a:51 211b:52 211c:52 211d:52 2124:5a 2128:5a 212a:4b 212c:42 212d:43 212e:65 212f:65 2130:45 2131:46 2133:4d 2134:6f 2212:2d 2215:2f 2216:5c 2217:2a 221a:76 221e:38 2223:7c 2229:6e 2236:3a 223c:7e 2261:3d 2264:3d 2265:3d 2303:5e 2320:28 2321:29 2329:3c 232a:3e 2500:2d 250c:2b 2510:2b 2514:2b 2518:2b 251c:2b 252c:2d 2534:2d 253c:2b 2550:2d 2552:2b 2553:2b 2554:2b 2555:2b 2556:2b 2557:2b 2558:2b 2559:2b 255a:2b 255b:2b 255c:2b 255d:2b 2564:2d 2565:2d 2566:2d 2567:2d 2568:2d 2569:2d 256a:2b 256b:2b 256c:2b 2584:5f 2758:7c 3000:20 3008:3c 3009:3e 301a:5b 301b:5d ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
1253 (ANSI - Greek)
|
||||
00b4:2f 00c0:41 00c1:41 00c2:41 00c3:41 00c4:41 00c5:41 00c7:43 00c8:45 00c9:45 00ca:45 00cb:45 00cc:49 00cd:49 00ce:49 00cf:49 00d1:4e 00d2:4f 00d3:4f 00d4:4f 00d5:4f 00d6:4f 00d8:4f 00d9:55 00da:55 00db:55 00dc:55 00dd:59 00e0:61 00e1:61 00e2:61 00e3:61 00e4:61 00e5:61 00e7:63 00e8:65 00e9:65 00ea:65 00eb:65 00ec:69 00ed:69 00ee:69 00ef:69 00f1:6e 00f2:6f 00f3:6f 00f4:6f 00f5:6f 00f6:6f 00f8:6f 00f9:75 00fa:75 00fb:75 00fc:75 00fd:79 00ff:79 0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0110:44 0111:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0134:4a 0135:6a 0136:4b 0137:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 015e:53 015f:73 0160:53 0161:73 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0178:59 0179:5a 017b:5a 017c:7a 017d:5a 017e:7a 0180:62 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 037e:3b 203c:21 2190:3c 2191:5e 2192:3e 2193:76 2194:2d 221f:4c 2500:2d 250c:2d 2514:4c 2518:2d 251c:2b 2524:2b 252c:54 2534:2b 253c:2b 2550:3d 2554:2d 255a:4c 255d:2d 2566:54 256c:2b 2580:2d 2584:2d 2588:2d 2591:2d 2592:2d 2593:2d 25ac:2d 25b2:5e 25ba:3e 25c4:3c 25cb:30 25d9:30 263a:4f 263b:4f 263c:30 2640:2b 2642:3e 266a:64 266b:64 ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
1254 (ANSI - Turkish)
|
||||
00dd:59 00fd:79 0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0110:44 0111:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0134:4a 0135:6a 0136:4b 0137:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0179:5a 017b:5a 017c:7a 017d:5a 017e:7a 0180:62 0189:44 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01b6:7a 01c0:7c 01c3:21 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 0261:67 02b9:27 02ba:22 02bc:27 02c4:5e 02c7:5e 02c8:27 02cb:60 02cd:5f 02d8:5e 02d9:27 0300:60 0302:5e 0331:5f 0332:5f 04bb:68 0589:3a 066a:25 2000:20 2001:20 2002:20 2003:20 2004:20 2005:20 2006:20 2010:2d 2011:2d 2032:27 2035:60 203c:21 2044:2f 2074:34 2075:35 2076:36 2077:37 2078:38 2081:30 2084:34 2085:35 2086:36 2087:37 2088:38 2089:39 2102:43 2107:45 210a:67 210b:48 210c:48 210d:48 210e:68 2110:49 2111:49 2112:4c 2113:6c 2115:4e 2118:50 2119:50 211a:51 211b:52 211c:52 211d:52 2124:5a 2128:5a 212a:4b 212c:42 212d:43 212e:65 212f:65 2130:45 2131:46 2133:4d 2134:6f 2191:5e 2193:76 2194:2d 2195:7c 21a8:7c 2212:2d 2215:2f 2216:5c 2217:2a 221f:4c 2223:7c 2236:3a 223c:7e 2303:5e 2329:3c 232a:3e 2502:2d 250c:2d 2514:4c 2518:2d 251c:2b 2524:2b 252c:54 2534:2b 253c:2b 2550:3d 2554:2d 255a:4c 255d:2d 2566:54 256c:2b 2580:2d 2584:2d 2588:2d 2591:2d 2592:2d 2593:2d 25ac:2d 25b2:5e 25ba:3e 25c4:3c 25cb:30 25d9:30 263a:4f 263b:4f 263c:30 2640:2b 2642:3e 266a:64 266b:64 2758:7c 3000:20 3008:3c 3009:3e 301a:5b 301b:3d 301d:22 301e:22 ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
1255 (ANSI - Hebrew)
|
||||
0191:46 ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
1256 (ANSI - Arabic)
|
||||
0620:41 0621:41 0622:43 0623:45 0624:45 0625:45 0626:45 0627:49 0628:49 0629:4f 062a:55 062b:55 062c:55 062d:46 062e:43 062f:44 0630:45 0631:46 0632:47 0633:48 0634:49 0635:4a 0636:4b 0637:4c 0638:4d 0639:4e 063a:4f 0641:41 0642:42 0643:43 0644:44 0645:45 0646:46 0647:47 0648:48 0649:49 064a:4a 064b:4b 064c:4c 064d:4d 064e:4e 064f:4f 0650:50 0651:51 0652:52
|
||||
|
||||
1257 (ANSI - Baltic)
|
||||
ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
1258 (ANSI/OEM - Viet Nam)
|
||||
ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
20127 (US-ASCII)
|
||||
00a0:20 00a1:21 00a2:63 00a4:24 00a5:59 00a6:7c 00a9:43 00aa:61 00ab:3c 00ad:2d 00ae:52 00b2:32 00b3:33 00b7:2e 00b8:2c 00b9:31 00ba:6f 00bb:3e 00c0:41 00c1:41 00c2:41 00c3:41 00c4:41 00c5:41 00c6:41 00c7:43 00c8:45 00c9:45 00ca:45 00cb:45 00cc:49 00cd:49 00ce:49 00cf:49 00d0:44 00d1:4e 00d2:4f 00d3:4f 00d4:4f 00d5:4f 00d6:4f 00d8:4f 00d9:55 00da:55 00db:55 00dc:55 00dd:59 00e0:61 00e1:61 00e2:61 00e3:61 00e4:61 00e5:61 00e6:61 00e7:63 00e8:65 00e9:65 00ea:65 00eb:65 00ec:69 00ed:69 00ee:69 00ef:69 00f1:6e 00f2:6f 00f3:6f 00f4:6f 00f5:6f 00f6:6f 00f8:6f 00f9:75 00fa:75 00fb:75 00fc:75 00fd:79 00ff:79 0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0110:44 0111:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0131:69 0134:4a 0135:6a 0136:4b 0137:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0152:4f 0153:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 015e:53 015f:73 0160:53 0161:73 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0178:59 0179:5a 017b:5a 017c:7a 017d:5a 017e:7a 0180:62 0189:44 0191:46 0192:66 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01b6:7a 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 0261:67 02b9:27 02ba:22 02bc:27 02c4:5e 02c6:5e 02c8:27 02cb:60 02cd:5f 02dc:7e 0300:60 0302:5e 0303:7e 030e:22 0331:5f 0332:5f 2000:20 2001:20 2002:20 2003:20 2004:20 2005:20 2006:20 2010:2d 2011:2d 2013:2d 2014:2d 2018:27 2019:27 201a:2c 201c:22 201d:22 201e:22 2022:2e 2026:2e 2032:27 2035:60 2039:3c 203a:3e 2122:54 ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
20261 (T.61)
|
||||
f8dd:5c f8de:5e f8df:60 f8e0:7b f8fc:7d f8fd:7e f8fe:7f
|
||||
|
||||
20866 (Russian - KOI8)
|
||||
00a7:15 00ab:3c 00ad:2d 00ae:52 00b1:2b 00b6:14 00bb:3e 00c0:41 00c1:41 00c2:41 00c3:41 00c4:41 00c5:41 00c7:43 00c8:45 00c9:45 00ca:45 00cb:45 00cc:49 00cd:49 00ce:49 00cf:49 00d1:4e 00d2:4f 00d3:4f 00d4:4f 00d5:4f 00d6:4f 00d8:4f 00d9:55 00da:55 00db:55 00dc:55 00dd:59 00e0:61 00e1:61 00e2:61 00e3:61 00e4:61 00e5:61 00e7:63 00e8:65 00e9:65 00ea:65 00eb:65 00ec:69 00ed:69 00ee:69 00ef:69 00f1:6e 00f2:6f 00f3:6f 00f4:6f 00f5:6f 00f6:6f 00f8:6f 00f9:75 00fa:75 00fb:75 00fc:75 00fd:79 00ff:79 0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0110:44 0111:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0134:4a 0135:6a 0136:4b 0137:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 015e:53 015f:73 0160:53 0161:73 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0178:59 0179:5a 017b:5a 017c:7a 017d:5a 017e:7a 0180:62 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 2013:2d 2014:2d 2018:27 2019:27 201a:27 201c:22 201d:22 201e:22 2022:07 2026:3a 2030:25 2039:3c 203a:3e 203c:13 2122:54 2190:1b 2191:18 2192:1a 2193:19 2194:1d 2195:12 21a8:17 221f:1c 2302:7f 25ac:16 25b2:1e 25ba:10 25bc:1f 25c4:11 25cb:09 25d8:08 25d9:0a 263a:01 263b:02 263c:0f 2640:0c 2642:0b 2660:06 2663:05 2665:03 2666:04 266a:0d 266b:0e
|
||||
|
||||
28591 (ISO 8859-1 Latin I)
|
||||
0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0110:44 0111:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0131:69 0134:4a 0135:6a 0136:4b 0137:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0152:4f 0153:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 015e:53 015f:73 0160:53 0161:73 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0178:59 0179:5a 017b:5a 017c:7a 017d:5a 017e:7a 0180:62 0189:44 0191:46 0192:66 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01b6:7a 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 0261:67 02b9:27 02ba:22 02bc:27 02c4:5e 02c6:5e 02c8:27 02cb:60 02cd:5f 02dc:7e 0300:60 0302:5e 0303:7e 030e:22 0331:5f 0332:5f 2000:20 2001:20 2002:20 2003:20 2004:20 2005:20 2006:20 2010:2d 2011:2d 2013:2d 2014:2d 2018:27 2019:27 201a:2c 201c:22 201d:22 201e:22 2022:2e 2026:2e 2032:27 2035:60 2039:3c 203a:3e 2122:54 ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
28592 (ISO 8859-2 Central Europe)
|
||||
00a1:21 00a2:63 00a5:59 00a6:7c 00a9:43 00aa:61 00ab:3c 00ae:52 00b2:32 00b3:33 00b7:2e 00b9:31 00ba:6f 00bb:3e 00c0:41 00c3:41 00c5:41 00c6:41 00c8:45 00ca:45 00cc:49 00cf:49 00d0:44 00d1:4e 00d2:4f 00d5:4f 00d8:4f 00d9:55 00db:55 00e0:61 00e3:61 00e5:61 00e6:61 00e8:65 00ea:65 00ec:69 00ef:69 00f1:6e 00f2:6f 00f5:6f 00f8:6f 00f9:75 00fb:75 00ff:79 0100:41 0101:61 0108:43 0109:63 010a:43 010b:63 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0131:69 0134:4a 0135:6a 0136:4b 0137:6b 013b:4c 013c:6c 0145:4e 0146:6e 014c:4f 014d:6f 014e:4f 014f:6f 0152:4f 0153:6f 0156:52 0157:72 015c:53 015d:73 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0178:59 0180:62 0189:44 0191:46 0192:66 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01b6:7a 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 0261:67 02b9:27 02ba:22 02bc:27 02c4:5e 02c6:5e 02c8:27 02cb:60 02cd:5f 02dc:7e 0300:60 0302:5e 0303:7e 030e:22 0331:5f 0332:5f 2000:20 2001:20 2002:20 2003:20 2004:20 2005:20 2006:20 2010:2d 2011:2d 2013:2d 2014:2d 2018:27 2019:27 201a:2c 201c:22 201d:22 201e:22 2022:2e 2026:2e 2032:27 2035:60 2039:3c 203a:3e 2122:54 ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
28605 (ISO 8859-15 Latin 9)
|
||||
00a6:7c 0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0131:69 0134:4a 0135:6a 0136:4b 0137:6b 0138:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014a:4e 014b:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 015e:53 015f:73 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:54 0169:74 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0179:5a 017b:5a 017c:7a 0180:62 0189:44 0191:46 0192:66 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01b6:7a 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 0261:67 02b9:27 02ba:22 02bc:27 02c4:5e 02c6:5e 02c8:27 02cb:60 02cd:5f 02dc:7e 0300:60 0302:5e 0303:7e 030e:22 0331:5f 0332:5f 2000:20 2001:20 2002:20 2003:20 2004:20 2005:20 2006:20 2010:2d 2011:2d 2013:2d 2014:2d 2018:27 2019:27 201a:2c 201c:22 201d:22 201e:22 2022:2e 2026:2e 2032:27 2035:60 2039:3c 203a:3e 2122:54 ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
37 (IBM EBCDIC - U.S./Canada)
|
||||
0004:37 0005:2d 0006:2e 0007:2f 0008:16 0009:05 000a:25 0014:3c 0015:3d 0016:32 0017:26 001a:3f 001b:27 0020:40 0021:5a 0022:7f 0023:7b 0024:5b 0025:6c 0026:50 0027:7d 0028:4d 0029:5d 002a:5c 002b:4e 002c:6b 002d:60 002e:4b 002f:61 003a:7a 003b:5e 003c:4c 003d:7e 003e:6e 003f:6f 0040:7c 005f:6d 0060:79 007c:4f 007f:07 0080:20 0081:21 0082:22 0083:23 0084:24 0085:15 0086:06 0087:17 0088:28 0089:29 008a:2a 008b:2b 008c:2c 008d:09 008e:0a 008f:1b 0090:30 0091:31 0092:1a 0093:33 0094:34 0095:35 0096:36 0097:08 0098:38 0099:39 009a:3a 009b:3b 009c:04 009d:14 009e:3e 00a0:41 00a2:4a 00a6:6a 00ac:5f 00c0:64 00c1:65 00c2:62 00c3:66 00c4:63 00c5:67 00c7:68 00c8:74 00c9:71 00ca:72 00cb:73 00cc:78 00cd:75 00ce:76 00cf:77 00d1:69 00df:59 00e0:44 00e1:45 00e2:42 00e3:46 00e4:43 00e5:47 00e7:48 00e8:54 00e9:51 00ea:52 00eb:53 00ec:58 00ed:55 00ee:56 00ef:57 00f1:49 00f8:70 ff01:5a ff02:7f ff03:7b ff04:5b ff05:6c ff06:50 ff07:7d ff08:4d ff09:5d ff0a:5c ff0b:4e ff0c:6b ff0d:60 ff0e:4b ff0f:61 ff1a:7a ff1b:5e ff1c:4c ff1d:7e ff1e:6e ff20:7c ff3f:6d ff40:79 ff5c:4f
|
||||
|
||||
437 (OEM - United States)
|
||||
00a4:0f 00a7:15 00a8:22 00a9:63 00ad:2d 00ae:72 00af:5f 00b3:33 00b4:27 00b6:14 00b8:2c 00b9:31 00be:5f 00c0:41 00c1:41 00c2:41 00c3:41 00c8:45 00ca:45 00cb:45 00cc:49 00cd:49 00ce:49 00cf:49 00d0:44 00d2:4f 00d3:4f 00d4:4f 00d5:4f 00d7:78 00d8:4f 00d9:55 00da:55 00db:55 00dd:59 00de:5f 00e3:61 00f0:64 00f5:6f 00f8:6f 00fd:79 00fe:5f 0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0110:44 0111:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0131:69 0134:4a 0135:6a 0136:4b 0137:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0152:4f 0153:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 015e:53 015f:73 0160:53 0161:73 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0178:59 0179:5a 017b:5a 017c:7a 017d:5a 017e:7a 0180:62 0189:44 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01b6:7a 01c0:7c 01c3:21 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 0261:67 02b9:27 02ba:22 02bc:27 02c4:5e 02c6:5e 02c8:27 02ca:27 02cb:60 02cd:5f 02dc:7e 0300:60 0301:27 0302:5e 0303:7e 0308:22 030e:22 0327:2c 0331:5f 0332:5f 037e:3b 04bb:68 0589:3a 066a:25 2000:20 2001:20 2002:20 2003:20 2004:20 2005:20 2006:20 2010:2d 2011:2d 2013:2d 2014:2d 2017:5f 2018:60 2019:27 201a:2c 201c:22 201d:22 201e:2c 2020:2b 2022:07 2026:2e 2030:25 2032:27 2035:60 2039:3c 203a:3e 203c:13 2044:2f 2074:34 2075:35 2076:36 2077:37 2078:38 2080:30 2081:31 2082:32 2083:33 2084:34 2085:35 2086:36 2087:37 2088:38 2089:39 20dd:09 2102:43 2107:45 210a:67 210b:48 210c:48 210d:48 210e:68 2110:49 2111:49 2112:4c 2113:6c 2115:4e 2118:50 2119:50 211a:51 211b:52 211c:52 211d:52 2122:54 2124:5a 2128:5a 212a:4b 212c:42 212d:43 212e:65 212f:65 2130:45 2131:46 2133:4d 2134:6f 2190:1b 2191:18 2192:1a 2193:19 2194:1d 2195:12 21a8:17 2212:2d 2215:2f 2216:5c 2217:2a 221f:1c 2223:7c 2236:3a 223c:7e 2302:7f 2303:5e 2329:3c 232a:3e 25ac:16 25b2:1e 25ba:10 25bc:1f 25c4:11 25cb:09 25d8:08 25d9:0a 263a:01 263b:02 263c:0f 2640:0c 2642:0b 2660:06 2663:05 2665:03 2666:04 266a:0d 266b:0e 2758:7c 3000:20 3007:09 3008:3c 3009:3e 301a:5b 301b:5d ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
500 (IBM EBCDIC - International)
|
||||
0004:37 0005:2d 0006:2e 0007:2f 0008:16 0009:05 000a:25 0014:3c 0015:3d 0016:32 0017:26 001a:3f 001b:27 0020:40 0021:4f 0022:7f 0023:7b 0024:5b 0025:6c 0026:50 0027:7d 0028:4d 0029:5d 002a:5c 002b:4e 002c:6b 002d:60 002e:4b 002f:61 003a:7a 003b:5e 003c:4c 003d:7e 003e:6e 003f:6f 0040:7c 005b:4a 005d:5a 005e:5f 005f:6d 0060:79 007f:07 0080:20 0081:21 0082:22 0083:23 0084:24 0085:15 0086:06 0087:17 0088:28 0089:29 008a:2a 008b:2b 008c:2c 008d:09 008e:0a 008f:1b 0090:30 0091:31 0092:1a 0093:33 0094:34 0095:35 0096:36 0097:08 0098:38 0099:39 009a:3a 009b:3b 009c:04 009d:14 009e:3e 00a0:41 00a6:6a 00c0:64 00c1:65 00c2:62 00c3:66 00c4:63 00c5:67 00c7:68 00c8:74 00c9:71 00ca:72 00cb:73 00cc:78 00cd:75 00ce:76 00cf:77 00d1:69 00df:59 00e0:44 00e1:45 00e2:42 00e3:46 00e4:43 00e5:47 00e7:48 00e8:54 00e9:51 00ea:52 00eb:53 00ec:58 00ed:55 00ee:56 00ef:57 00f1:49 00f8:70 ff01:4f ff02:7f ff03:7b ff04:5b ff05:6c ff06:50 ff07:7d ff08:4d ff09:5d ff0a:5c ff0b:4e ff0c:6b ff0d:60 ff0e:4b ff0f:61 ff1a:7a ff1b:5e ff1c:4c ff1d:7e ff1e:6e ff20:7c ff3b:4a ff3d:5a ff3e:5f ff3f:6d ff40:79
|
||||
|
||||
850 (OEM - Multilingual Latin I)
|
||||
0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0110:44 0111:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0134:4a 0135:6a 0136:4b 0137:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0152:4f 0153:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 015e:53 015f:73 0160:53 0161:73 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0178:59 0179:5a 017b:5a 017c:7a 017d:5a 017e:7a 0180:62 0189:44 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01a9:53 01ab:74 01ae:54 01af:55 01b0:75 01b6:5a 01c3:21 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 0261:67 02ba:22 02bc:27 02c4:5e 02c6:5e 02c8:27 02cb:27 02cd:5f 02dc:7e 0300:27 0302:5e 0303:7e 030e:22 0331:5f 0332:5f 037e:3b 0393:47 03a3:53 03a6:46 03a9:4f 03b1:61 03b4:64 03b5:65 03c0:70 03c3:73 03c4:74 03c6:66 04bb:68 0589:3a 066a:25 2000:20 2001:20 2002:20 2003:20 2004:20 2005:20 2006:20 2010:2d 2011:2d 2013:2d 2014:2d 2018:27 2019:27 201a:27 201c:22 201d:22 201e:22 2022:07 2024:07 2026:2e 2030:25 2039:3c 203a:3e 203c:13 2044:2f 2070:30 2074:34 2075:35 2076:36 2077:37 2078:39 207f:6e 2080:30 2084:34 2085:35 2086:36 2087:37 2088:38 2089:39 20a7:50 20dd:4f 2102:43 2107:45 210a:67 210b:48 210c:48 210d:48 210e:68 2110:49 2111:49 2112:4c 2113:6c 2115:4e 2118:50 2119:50 211a:51 211b:52 211c:52 211d:52 2122:54 2124:5a 2126:4f 2128:5a 212a:4b 212c:42 212d:43 212e:65 212f:65 2130:45 2131:46 2133:4d 2134:6f 2190:1b 2191:18 2192:1a 2193:19 2194:1d 2195:12 21a8:17 2211:53 2212:2d 2215:2f 2216:2f 2217:2a 2219:07 221a:56 221e:38 221f:1c 2229:6e 2236:3a 223c:7e 2248:7e 2261:3d 2264:3d 2265:3d 2302:7f 2303:5e 2320:28 2321:29 2329:3c 232a:3e 25ac:16 25b2:1e 25ba:10 25bc:1f 25c4:11 25cb:09 25d8:08 25d9:0a 263a:01 263b:02 263c:0f 2640:0c 2642:0b 2660:06 2663:05 2665:03 2666:04 266a:0d 266b:0e 2713:56 3000:20 3007:4f 3008:3c 3009:3e 301a:5b 301b:5d ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
860 (OEM - Portuguese)
|
||||
00a4:0f 00a5:59 00a7:15 00a8:22 00a9:63 00ad:5f 00ae:72 00af:16 00b3:33 00b4:2f 00b6:14 00b8:2c 00b9:31 00be:33 00c4:41 00c5:41 00c6:41 00cb:45 00ce:49 00cf:49 00d0:44 00d6:4f 00d7:58 00d8:4f 00db:55 00dd:59 00de:54 00e4:61 00e5:61 00e6:61 00eb:65 00ee:69 00ef:69 00f0:64 00f6:6f 00f8:6f 00fb:75 00fd:79 00fe:74 00ff:79 0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0110:44 0111:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0131:69 0134:4a 0135:6a 0136:4b 0137:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0152:4f 0153:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 015e:53 015f:73 0160:5c 0161:7c 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0178:59 0179:5a 017b:5a 017c:7a 017d:5a 017e:7a 0180:62 0189:44 0191:46 0192:66 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01b6:7a 01c0:7c 01c3:21 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 0261:67 0278:66 02b9:27 02ba:22 02bc:27 02c4:5e 02c6:5e 02c8:27 02c9:16 02ca:2f 02cb:60 02cd:5f 02dc:7e 0300:60 0301:2f 0302:5e 0303:7e 0304:16 0305:16 0308:22 030e:22 0327:2c 0331:5f 0332:5f 037e:3b 04bb:68 0589:3a 066a:25 2000:20 2001:20 2002:20 2003:20 2004:20 2005:20 2006:20 2010:5f 2011:5f 2013:5f 2014:5f 2017:5f 2018:27 2019:27 201a:2c 201c:22 201d:22 201e:22 2022:07 2024:07 2026:2e 2030:25 2032:27 2035:60 2039:3c 203a:3e 203c:13 2044:2f 2070:30 2074:34 2075:35 2076:36 2077:37 2078:38 2080:30 2081:31 2083:33 2084:34 2085:35 2086:36 2087:37 2088:38 2089:39 20dd:4f 2102:43 2107:45 210a:67 210b:48 210c:48 210d:48 210e:68 2110:49 2111:49 2112:4c 2113:6c 2115:4e 2118:70 2119:50 211a:51 211b:52 211c:52 211d:52 2122:74 2124:5a 2128:5a 212a:4b 212b:41 212c:42 212d:43 212e:65 212f:65 2130:45 2131:46 2133:4d 2134:6f 2190:1b 2191:18 2192:1a 2193:19 2194:1d 2195:12 21a8:17 2205:4f 2212:5f 2215:2f 2216:5c 2217:2a 221f:1c 2223:7c 2236:3a 223c:7e 22c5:07 2302:7f 2303:5e 2329:3c 232a:3e 25ac:16 25b2:1e 25ba:10 25bc:1f 25c4:11 25cb:09 25d8:08 25d9:0a 263a:01 263b:02 263c:0f 2640:0c 2642:0b 2660:06 2663:05 2665:03 2666:04 266a:0d 266b:0e 3000:20 3007:4f 3008:3c 3009:3e 301a:5b 301b:5d 30fb:07
|
||||
|
||||
861 (OEM - Icelandic)
|
||||
00a2:63 00a4:0f 00a5:59 00a7:15 00a8:22 00a9:63 00aa:61 00ad:5f 00ae:72 00af:16 00b3:33 00b4:2f 00b6:14 00b8:2c 00b9:31 00ba:6f 00be:33 00c0:41 00c2:41 00c3:41 00c8:45 00ca:45 00cb:45 00cc:49 00ce:49 00cf:49 00d1:4e 00d2:4f 00d4:4f 00d5:4f 00d7:58 00d9:55 00db:55 00e3:61 00ec:69 00ee:69 00ef:69 00f1:6e 00f2:6f 00f5:6f 00f9:75 00ff:79 0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0111:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0131:69 0134:4a 0135:6a 0136:4b 0137:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0152:4f 0153:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 015e:53 015f:73 0160:53 0161:73 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0178:59 0179:5a 017b:5a 017c:7a 017d:5a 017e:7a 0180:62 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01b6:7a 01c3:21 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 0261:67 0278:66 02b9:27 02ba:22 02bc:27 02c4:5e 02c6:5e 02c8:27 02c9:16 02ca:2f 02cb:60 02cd:5f 02dc:7e 0300:60 0301:2f 0302:5e 0303:7e 0304:16 0305:16 0308:22 030e:22 0327:2c 0331:5f 0332:5f 037e:3b 04bb:68 0589:3a 066a:25 2000:20 2001:20 2002:20 2003:20 2004:20 2005:20 2006:20 2010:2d 2011:2d 2013:2d 2014:2d 2017:5f 2018:27 2019:27 201a:27 201c:22 201d:22 201e:22 2022:07 2024:07 2026:07 2030:25 2032:27 2035:27 2039:3c 203a:3e 203c:13 2044:2f 2070:30 2074:34 2075:35 2076:36 2077:37 2078:38 2080:30 2081:31 2083:33 2084:34 2085:35 2086:36 2087:37 2088:38 2089:39 20dd:4f 2102:43 2107:45 210a:67 210b:48 210c:48 210d:48 210e:68 2110:49 2111:49 2112:4c 2113:6c 2115:4e 2118:70 2119:50 211a:51 211b:52 211c:52 211d:52 2122:74 2124:5a 2128:5a 212a:4b 212c:42 212d:43 212e:65 212f:65 2130:45 2131:46 2133:4d 2134:6f 2190:1b 2191:18 2192:1a 2193:19 2194:1d 2195:12 21a8:17 2205:4f 2212:5f 2215:2f 2216:5c 2217:2a 221f:1c 2223:7c 2236:3a 223c:7e 22c5:07 2302:7f 2303:5e 2329:3c 232a:3e 25ac:16 25b2:1e 25ba:10 25bc:1f 25c4:11 25cb:09 25d8:08 25d9:0a 263a:01 263b:02 263c:0f 2640:0c 2642:0b 2660:06 2663:05 2665:03 2666:04 266a:0d 266b:0e 3000:20 3007:4f 3008:3c 3009:3e 301a:5b 301b:5d 30fb:07
|
||||
|
||||
863 (OEM - Canadian French)
|
||||
00a1:21 00a5:59 00a9:63 00aa:61 00ad:16 00ae:72 00b9:33 00ba:6f 00c1:41 00c3:41 00c4:41 00c5:41 00c6:41 00cc:49 00cd:49 00d0:44 00d1:4e 00d2:4f 00d3:4f 00d5:4f 00d6:4f 00d7:58 00d8:4f 00da:55 00dd:59 00de:54 00e1:61 00e3:61 00e4:61 00e5:61 00e6:61 00ec:69 00ed:69 00f0:64 00f1:6e 00f2:6f 00f5:6f 00f6:6f 00f8:6f 00fd:79 00fe:74 00ff:79 0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0110:44 0111:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0131:69 0134:4a 0135:6a 0136:4b 0137:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0152:4f 0153:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 015e:53 015f:73 0160:53 0161:73 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0178:59 0179:5a 017b:5a 017c:7a 017d:5a 017e:7a 0180:62 0189:44 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01b6:7a 01c3:21 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 0261:67 02b9:22 02ba:27 02bc:27 02c4:5e 02c6:5e 02c8:27 02c9:16 02cb:60 02cd:5f 02dc:7e 0300:60 0302:5e 0303:7e 0304:16 0305:16 0331:5f 0332:5f 037e:3b 04bb:68 0589:3a 066a:25 2000:20 2001:20 2002:20 2003:20 2004:20 2005:20 2006:20 2010:2d 2011:2d 2013:2d 2014:2d 2018:27 2019:27 201a:27 201c:22 201d:22 201e:22 2022:07 2024:07 2026:07 2030:25 2032:27 2035:27 2039:3c 203a:3e 203c:13 2044:2f 2070:30 2074:34 2075:35 2076:36 2077:37 2078:38 2080:30 2081:31 2084:34 2085:35 2086:36 2087:37 2088:38 2089:39 20a7:50 20dd:4f 2102:43 2107:45 210a:67 210b:48 210c:48 210d:48 210e:68 2110:49 2111:49 2112:4c 2113:6c 2115:4e 2118:70 2119:50 211a:51 211b:52 211c:52 211d:52 2122:74 2124:5a 2128:5a 212a:4b 212b:41 212c:42 212d:43 212e:65 212f:65 2130:45 2131:46 2133:4d 2134:6f 2190:1b 2191:18 2192:1a 2193:19 2194:1d 2195:12 21a8:17 2205:4f 2212:5f 2215:2f 2216:5c 2217:2a 221f:1c 2223:7c 2236:3a 223c:7e 22c5:07 2302:7f 2303:5e 2329:3c 232a:3e 25ac:16 25b2:1e 25ba:10 25bc:1f 25c4:11 25cb:09 25d8:08 25d9:0a 263a:01 263b:02 263c:0f 2640:0c 2642:0b 2660:06 2663:05 2665:03 2666:04 266a:0d 266b:0e 3000:20 3007:4f 3008:3c 3009:3e 301a:5b 301b:5d 30fb:07
|
||||
|
||||
865 (OEM - Nordic)
|
||||
00a2:63 00a5:59 00a7:15 00a8:22 00a9:63 00ad:5f 00ae:72 00af:16 00b3:33 00b4:2f 00b6:14 00b8:2c 00b9:31 00bb:3e 00be:33 00c0:41 00c1:41 00c2:41 00c3:41 00c8:45 00ca:45 00cb:45 00cc:49 00cd:49 00ce:49 00cf:49 00d0:44 00d2:4f 00d3:4f 00d4:4f 00d5:4f 00d7:58 00d9:55 00da:55 00db:55 00dd:59 00de:54 00e3:61 00f0:64 00f5:6f 00fd:79 00fe:74 0100:41 0101:61 0102:41 0103:61 0104:41 0105:61 0106:43 0107:63 0108:43 0109:63 010a:43 010b:63 010c:43 010d:63 010e:44 010f:64 0110:44 0111:64 0112:45 0113:65 0114:45 0115:65 0116:45 0117:65 0118:45 0119:65 011a:45 011b:65 011c:47 011d:67 011e:47 011f:67 0120:47 0121:67 0122:47 0123:67 0124:48 0125:68 0126:48 0127:68 0128:49 0129:69 012a:49 012b:69 012c:49 012d:69 012e:49 012f:69 0130:49 0131:69 0134:4a 0135:6a 0136:4b 0137:6b 0139:4c 013a:6c 013b:4c 013c:6c 013d:4c 013e:6c 0141:4c 0142:6c 0143:4e 0144:6e 0145:4e 0146:6e 0147:4e 0148:6e 014c:4f 014d:6f 014e:4f 014f:6f 0150:4f 0151:6f 0152:4f 0153:6f 0154:52 0155:72 0156:52 0157:72 0158:52 0159:72 015a:53 015b:73 015c:53 015d:73 015e:53 015f:73 0160:53 0161:73 0162:54 0163:74 0164:54 0165:74 0166:54 0167:74 0168:55 0169:75 016a:55 016b:75 016c:55 016d:75 016e:55 016f:75 0170:55 0171:75 0172:55 0173:75 0174:57 0175:77 0176:59 0177:79 0178:59 0179:5a 017b:5a 017c:7a 017d:5a 017e:7a 0180:62 0189:44 0197:49 019a:6c 019f:4f 01a0:4f 01a1:6f 01ab:74 01ae:54 01af:55 01b0:75 01b6:7a 01c3:21 01cd:41 01ce:61 01cf:49 01d0:69 01d1:4f 01d2:6f 01d3:55 01d4:75 01d5:55 01d6:75 01d7:55 01d8:75 01d9:55 01da:75 01db:55 01dc:75 01de:41 01df:61 01e4:47 01e5:67 01e6:47 01e7:67 01e8:4b 01e9:6b 01ea:4f 01eb:6f 01ec:4f 01ed:6f 01f0:6a 0261:67 02b9:27 02ba:22 02bc:27 02c4:5e 02c6:5e 02c8:27 02c9:16 02ca:2f 02cb:60 02cd:5f 02dc:7e 0300:60 0301:2f 0302:5e 0303:7e 0304:16 0305:16 0308:22 030e:22 0327:2c 0331:5f 0332:5f 037e:3b 04bb:68 0589:3a 066a:25 2000:20 2001:20 2002:20 2003:20 2004:20 2005:20 2006:20 2010:2d 2011:2d 2013:2d 2014:2d 2017:5f 2018:27 2019:27 201a:27 201c:22 201d:22 201e:22 2022:07 2024:07 2026:07 2030:25 2032:27 2035:27 2039:3c 203a:3e 203c:13 2044:2f 2070:30 2074:34 2075:35 2076:36 2077:37 2078:38 2080:30 2081:31 2083:33 2084:34 2085:35 2086:36 2087:37 2088:38 2089:39 20dd:4f 2102:43 2107:45 210a:67 210b:48 210c:48 210d:48 210e:68 2110:49 2111:49 2112:4c 2113:6c 2115:4e 2118:70 2119:50 211a:51 211b:52 211c:52 211d:52 2122:74 2124:5a 2128:5a 212a:4b 212c:42 212d:43 212e:65 212f:65 2130:45 2131:46 2133:4d 2134:6f 2190:1b 2191:18 2192:1a 2193:19 2194:1d 2195:12 21a8:17 2205:4f 2212:5f 2215:2f 2216:5c 2217:2a 221f:1c 2223:7c 2236:3a 223c:7e 226b:3c 22c5:07 2302:7f 2303:5e 2329:3c 232a:3e 25ac:16 25b2:1e 25ba:10 25bc:1f 25c4:11 25cb:09 25d8:08 25d9:0a 263a:01 263b:02 263c:0f 2640:0c 2642:0b 2660:06 2663:05 2665:03 2666:04 266a:0d 266b:0e 3000:20 3007:4f 3008:3c 3009:3e 300b:3e 301a:5b 301b:5d 30fb:07
|
||||
|
||||
874 (ANSI/OEM - Thai)
|
||||
00a7:15 00b6:14 203c:13 2190:1b 2191:18 2192:1a 2193:19 2194:1d 2195:12 21a8:17 221f:1c 2302:7f 25ac:16 25b2:1e 25ba:10 25bc:1f 25c4:11 25cb:09 25d8:08 25d9:0a 263a:01 263b:02 263c:0f 2640:0c 2642:0b 2660:06 2663:05 2665:03 2666:04 266a:0d 266b:0e ff01:21 ff02:22 ff03:23 ff04:24 ff05:25 ff06:26 ff07:27 ff08:28 ff09:29 ff0a:2a ff0b:2b ff0c:2c ff0d:2d ff0e:2e ff0f:2f ff10:30 ff11:31 ff12:32 ff13:33 ff14:34 ff15:35 ff16:36 ff17:37 ff18:38 ff19:39 ff1a:3a ff1b:3b ff1c:3c ff1d:3d ff1e:3e ff20:40 ff21:41 ff22:42 ff23:43 ff24:44 ff25:45 ff26:46 ff27:47 ff28:48 ff29:49 ff2a:4a ff2b:4b ff2c:4c ff2d:4d ff2e:4e ff2f:4f ff30:50 ff31:51 ff32:52 ff33:53 ff34:54 ff35:55 ff36:56 ff37:57 ff38:58 ff39:59 ff3a:5a ff3b:5b ff3c:5c ff3d:5d ff3e:5e ff3f:5f ff40:60 ff41:61 ff42:62 ff43:63 ff44:64 ff45:65 ff46:66 ff47:67 ff48:68 ff49:69 ff4a:6a ff4b:6b ff4c:6c ff4d:6d ff4e:6e ff4f:6f ff50:70 ff51:71 ff52:72 ff53:73 ff54:74 ff55:75 ff56:76 ff57:77 ff58:78 ff59:79 ff5a:7a ff5b:7b ff5c:7c ff5d:7d ff5e:7e
|
||||
|
||||
932 (ANSI/OEM - Japanese Shift-JIS)
|
||||
00a1:21 00a5:5c 00a6:7c 00a9:63 00aa:61 00ad:2d 00ae:52 00b2:32 00b3:33 00b9:31 00ba:6f 00c0:41 00c1:41 00c2:41 00c3:41 00c4:41 00c5:41 00c6:41 00c7:43 00c8:45 00c9:45 00ca:45 00cb:45 00cc:49 00cd:49 00ce:49 00cf:49 00d0:44 00d1:4e 00d2:4f 00d3:4f 00d4:4f 00d5:4f 00d6:4f 00d8:4f 00d9:55 00da:55 00db:55 00dc:55 00dd:59 00de:54 00df:73 00e0:61 00e1:61 00e2:61 00e3:61 00e4:61 00e5:61 00e6:61 00e7:63 00e8:65 00e9:65 00ea:65 00eb:65 00ec:69 00ed:69 00ee:69 00ef:69 00f0:64 00f1:6e 00f2:6f 00f3:6f 00f4:6f 00f5:6f 00f6:6f 00f8:6f 00f9:75 00fa:75 00fb:75 00fc:75 00fd:79 00fe:74 00ff:79
|
||||
|
||||
936 (ANSI/OEM - Simplified Chinese GBK)
|
||||
00a6:7c 00aa:61 00ad:2d 00b2:32 00b3:33 00b9:31 00ba:6f 00d0:44 00dd:59 00de:54 00e2:61 00f0:65 00fd:79 00fe:74
|
||||
|
||||
949 (ANSI/OEM - Korean)
|
||||
00a6:7c 00c0:41 00c1:41 00c2:41 00c3:41 00c4:41 00c5:41 00c7:43 00c8:45 00c9:45 00ca:45 00cb:45 00cc:49 00cd:49 00ce:49 00cf:49 00d1:4e 00d2:4f 00d3:4f 00d4:4f 00d5:4f 00d6:4f 00d9:55 00da:55 00db:55 00dc:55 00dd:59 00e0:61 00e1:61 00e2:61 00e3:61 00e4:61 00e5:61 00e7:63 00e8:65 00e9:65 00ea:65 00eb:65 00ec:69 00ed:69 00ee:69 00ef:69 00f1:6e 00f2:6f 00f3:6f 00f4:6f 00f5:6f 00f6:6f 00f9:75 00fa:75 00fb:75 00fc:75 00fd:79 00ff:79 20a9:5c
|
||||
|
||||
950 (ANSI/OEM - Traditional Chinese Big5)
|
||||
00a1:21 00a6:7c 00a9:63 00aa:61 00ad:2d 00ae:52 00b2:32 00b3:33 00b9:31 00ba:6f 00c0:41 00c1:41 00c2:41 00c3:41 00c4:41 00c5:41 00c6:41 00c7:43 00c8:45 00c9:45 00ca:45 00cb:45 00cc:49 00cd:49 00ce:49 00cf:49 00d0:44 00d1:4e 00d2:4f 00d3:4f 00d4:4f 00d5:4f 00d6:4f 00d8:4f 00d9:55 00da:55 00db:55 00dc:55 00dd:59 00de:54 00df:73 00e0:61 00e1:61 00e2:61 00e3:61 00e4:61 00e5:61 00e6:61 00e7:63 00e8:65 00e9:65 00ea:65 00eb:65 00ec:69 00ed:69 00ee:69 00ef:69 00f0:65 00f1:6e 00f2:6f 00f3:6f 00f4:6f 00f5:6f 00f6:6f 00f8:6f 00f9:75 00fa:75 00fb:75 00fc:75 00fd:79 00fe:74 00ff:79
|
||||
|
||||
(UTF-7)
|
||||
|
||||
|
||||
(UTF-8)
|
||||
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
./configure \
|
||||
--user=nginx \
|
||||
--group=nginx \
|
||||
--sbin-path=/usr/sbin/nginx \
|
||||
--conf-path=/nginx/nginx.conf \
|
||||
--pid-path=/var/run/nginx.pid \
|
||||
--lock-path=/var/run/nginx.lock \
|
||||
--error-log-path=/nginx/logs/error.log \
|
||||
--http-log-path=/nginx/logs/access.log \
|
||||
--with-pcre \
|
||||
--with-threads \
|
||||
--with-file-aio \
|
||||
--with-http_ssl_module \
|
||||
--with-http_v2_module \
|
||||
--with-http_realip_module \
|
||||
--with-http_addition_module \
|
||||
--with-http_xslt_module \
|
||||
--with-http_image_filter_module \
|
||||
--with-http_geoip_module \
|
||||
--with-http_sub_module \
|
||||
--with-http_dav_module \
|
||||
--with-http_flv_module \
|
||||
--with-http_mp4_module \
|
||||
--with-http_gunzip_module \
|
||||
--with-http_gzip_static_module \
|
||||
--with-http_auth_request_module \
|
||||
--with-http_random_index_module \
|
||||
--with-http_secure_link_module \
|
||||
--with-http_slice_module \
|
||||
--with-http_stub_status_module \
|
||||
--with-mail \
|
||||
--with-mail_ssl_module \
|
||||
--with-stream \
|
||||
--with-stream_ssl_module \
|
||||
--with-stream_realip_module \
|
||||
--with-stream_geoip_module \
|
||||
--with-ld-opt="-Wl,-rpath,/usr/local/lib/" \
|
||||
--add-module=/opt/nginx/modules/ngx_devel_kit \
|
||||
--add-module=/opt/nginx/modules/ngx_pagespeed-1.13.35.2-stable \
|
||||
--add-module=/opt/nginx/modules/testcookie-nginx-module \
|
||||
--add-module=/opt/nginx/modules/set-misc-nginx-module \
|
||||
--add-module=/opt/nginx/modules/headers-more-nginx-module \
|
||||
--add-module=/opt/nginx/modules/echo-nginx-module \
|
||||
--add-module=/opt/nginx/modules/ngx_cache_purge \
|
||||
--add-module=/opt/nginx/modules/ngx_http_geoip2_module \
|
||||
--add-module=/opt/nginx/modules/lua-nginx-module \
|
||||
--add-module=/opt/nginx/modules/ModSecurity-nginx \
|
||||
--add-module=/opt/nginx/modules/encrypted-session-nginx-module \
|
||||
--add-module=/opt/nginx/modules/naxsi/naxsi_src/ \
|
||||
--add-module=/opt/nginx/modules/nginx-http-rdns
|
||||
@@ -1,121 +0,0 @@
|
||||
# Suggestions? => https://github.com/theraw/The-World-Is-Yours/issues
|
||||
# Problems? => https://github.com/theraw/The-World-Is-Yours/issues
|
||||
# Errors? => https://github.com/theraw/The-World-Is-Yours/issues
|
||||
user nginx;
|
||||
pid /var/run/nginx.pid;
|
||||
worker_processes auto;
|
||||
worker_rlimit_nofile 65535;
|
||||
events {
|
||||
multi_accept on;
|
||||
use epoll;
|
||||
worker_connections 65535;
|
||||
}
|
||||
|
||||
http {
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# =================== START L7 ========================= #
|
||||
# turn this 'on' if you want to use L7 For every domain hosted in your server
|
||||
testcookie off;
|
||||
testcookie_name DOPEHOSTING;
|
||||
testcookie_secret random;
|
||||
testcookie_session $remote_addr;
|
||||
#testcookie_arg GO;
|
||||
testcookie_httponly_flag on;
|
||||
testcookie_max_attempts 3;
|
||||
testcookie_secure_flag on;
|
||||
testcookie_get_only on;
|
||||
testcookie_p3p 'CP="CUR ADM OUR NOR STA NID", policyref="/w3c/p3p.xml"';
|
||||
testcookie_fallback /cookies.html?backurl=$scheme://$host$request_uri;
|
||||
|
||||
# Those are some ip's whitelisted by me. mostly are search engines. But not everything!
|
||||
testcookie_whitelist {
|
||||
8.8.8.8/32;
|
||||
127.0.0.1/32;
|
||||
# I don't suggest using alot of IPs here as this whitelist can fail!.
|
||||
}
|
||||
testcookie_redirect_via_refresh on;
|
||||
testcookie_refresh_encrypt_cookie on;
|
||||
testcookie_refresh_encrypt_cookie_key random;
|
||||
testcookie_refresh_encrypt_cookie_iv random;
|
||||
testcookie_refresh_template '<html><head><meta http-equiv="refresh" content="0; $testcookie_nexturl"><title>Just a moment please...</title></head><body> </script><script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script><script type=\"text/javascript\" src="//proxy2.dopehosting.net/aes.min.js" ></script><script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("$testcookie_enc_key"),b=toNumbers("$testcookie_enc_iv"),c=toNumbers("$testcookie_enc_set");document.cookie="DOPEHOSTING="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/";</script></body></html>';
|
||||
# ===================== END L7 ========================= #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# ===================== LOGS =========================== #
|
||||
log_format main '$remote_addr |==| $status |==| $request |==| $time_local';
|
||||
# -------------------------------------------------------#
|
||||
log_format agent '$remote_addr |==| $status |==| $request |==| $http_user_agent';
|
||||
# -------------------------------------------------------#
|
||||
log_format full '$remote_addr |==| $remote_user |==| $time_local |==| $request |==| $status |==| $body_bytes_sent |==| $http_referer |==| $http_user_agent |==| $http_x_forwarded_for';
|
||||
# =================== END LOGS ========================= #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# ===================== GEIP =========================== #
|
||||
geoip2 /nginx/db/GeoLite2-Country.mmdb {
|
||||
$geoip2_data_country_code default=US country iso_code;
|
||||
$geoip2_data_country_name country names en;
|
||||
}
|
||||
|
||||
# EX Ban China!
|
||||
#map $geoip2_data_country_code $allowed_country {
|
||||
# default yes;
|
||||
# CN no;
|
||||
#}
|
||||
# =================== END GEIP ========================= #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# ===================== EXTRA ========================== #
|
||||
# Don't Go with "Nginx Can Handle Everything" !
|
||||
limit_conn_zone $server_name zone=max:1m;
|
||||
limit_req_zone $binary_remote_addr zone=one:1m rate=1r/s;
|
||||
# =================== END EXTRA ======================== #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# ==================== BACKENDS ======================== #
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
# Example Of Backend
|
||||
#upstream varnish {
|
||||
# zone tcp_servers 64k;
|
||||
# server 10.10.10.39:80;
|
||||
#}
|
||||
# =================== END BACKENDS ===================== #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# ==================== GENERAL ========================= #
|
||||
client_body_buffer_size 1M;
|
||||
client_header_buffer_size 1M;
|
||||
client_body_timeout 90s;
|
||||
client_header_timeout 90s;
|
||||
client_max_body_size 2M;
|
||||
keepalive_timeout 10s;
|
||||
port_in_redirect off;
|
||||
sendfile on;
|
||||
server_names_hash_bucket_size 6969;
|
||||
server_name_in_redirect off;
|
||||
server_tokens off;
|
||||
tcp_nodelay on;
|
||||
tcp_nopush on;
|
||||
types_hash_max_size 2048;
|
||||
resolver 8.8.8.8 8.8.4.4;
|
||||
default_type application/octet-stream;
|
||||
include /nginx/mime.types;
|
||||
# =================== END GENERAL ====================== #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
|
||||
# ////////////////////////////////////////////////////// #
|
||||
# =================== LOAD CONFIGS ===================== #
|
||||
include /nginx/live/*;
|
||||
include /nginx/conf.d/*;
|
||||
include /nginx/naxsi_core.rules;
|
||||
# =================== END CONFIGS ====================== #
|
||||
# ////////////////////////////////////////////////////// #
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
testcookie on;
|
||||
root /hostdata/default/public_html/;
|
||||
|
||||
modsecurity on;
|
||||
modsecurity_rules_file /nginx/modsec/tester.conf;
|
||||
|
||||
location ^~ /cdn {
|
||||
testcookie off;
|
||||
}
|
||||
|
||||
location / {
|
||||
SecRulesEnabled;
|
||||
DeniedUrl "/denied/";
|
||||
CheckRule "$SQL >= 8" BLOCK;
|
||||
CheckRule "$RFI >= 8" BLOCK;
|
||||
CheckRule "$TRAVERSAL >= 4" BLOCK;
|
||||
CheckRule "$EVADE >= 4" BLOCK;
|
||||
CheckRule "$XSS >= 8" BLOCK;
|
||||
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
location /lua-test {
|
||||
default_type 'text/plain';
|
||||
content_by_lua_block {
|
||||
ngx.say('Hello, world!')
|
||||
}
|
||||
}
|
||||
|
||||
location /denied/ {
|
||||
return 403;
|
||||
}
|
||||
|
||||
#error_page 404 /404.html;
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
|
||||
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
||||
#
|
||||
#location ~ \.php$ {
|
||||
# proxy_pass http://127.0.0.1;
|
||||
#}
|
||||
|
||||
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
||||
#
|
||||
#location ~ \.php$ {
|
||||
# root html;
|
||||
# fastcgi_pass 127.0.0.1:9000;
|
||||
# fastcgi_index index.php;
|
||||
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
||||
# include fastcgi_params;
|
||||
#}
|
||||
|
||||
# deny access to .htaccess files, if Apache's document root
|
||||
# concurs with nginx's one
|
||||
#
|
||||
#location ~ /\.ht {
|
||||
# deny all;
|
||||
#}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
# Suggestions? => https://github.com/theraw/The-World-Is-Yours/issues
|
||||
# Problems? => https://github.com/theraw/The-World-Is-Yours/issues
|
||||
user nginx;
|
||||
pid /var/run/nginx.pid;
|
||||
worker_processes auto;
|
||||
worker_rlimit_nofile 65535;
|
||||
|
||||
events {
|
||||
multi_accept on;
|
||||
use epoll;
|
||||
worker_connections 65535;
|
||||
}
|
||||
|
||||
http {
|
||||
# =================== LOAD LUA ========================= #
|
||||
lua_package_path "/usr/nginx_lua/lib/lua/?.lua;;";
|
||||
lua_package_cpath "/usr/nginx_lua/lib/lua/5.1/?.so;;";
|
||||
# =================== END LUA ========================== #
|
||||
|
||||
# =================== LOAD L7 ========================== #
|
||||
include modsec/l7.conf;
|
||||
# =================== END L7 =========================== #
|
||||
|
||||
# ===================== LOGS =========================== #
|
||||
log_format main 'DATE: $time_local FROM: $remote_addr | STATUS: $status | TO: $request | CACHE: $upstream_cache_status | A: $http_user_agent';
|
||||
# =================== END LOGS ========================= #
|
||||
|
||||
# ==================== GENERAL ========================= #
|
||||
client_body_buffer_size 2M;
|
||||
client_header_buffer_size 2M;
|
||||
client_body_timeout 90s;
|
||||
client_header_timeout 90s;
|
||||
client_max_body_size 2M;
|
||||
keepalive_timeout 15s;
|
||||
port_in_redirect off;
|
||||
sendfile on;
|
||||
server_names_hash_bucket_size 6969;
|
||||
server_name_in_redirect off;
|
||||
server_tokens off;
|
||||
tcp_nodelay on;
|
||||
tcp_nopush on;
|
||||
types_hash_max_size 2048;
|
||||
resolver 1.1.1.1 1.0.0.1;
|
||||
default_type application/octet-stream;
|
||||
include /nginx/mime.types;
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
# =================== END GENERAL ====================== #
|
||||
|
||||
# ================ LOAD VHOST +CONFIGS ================= #
|
||||
include live/*;
|
||||
include conf.d/*;
|
||||
include modsec/naxi.core;
|
||||
# =================== END CONFIGS ====================== #
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
server {
|
||||
listen 80;
|
||||
root /hostdata/raws.com/public_html;
|
||||
index index.html index.php;
|
||||
server_name raws.com www.raws.com;
|
||||
|
||||
location / {
|
||||
SecRulesEnabled;
|
||||
LearningMode;
|
||||
DeniedUrl "/denied/";
|
||||
CheckRule "$SQL >= 8" BLOCK;
|
||||
CheckRule "$RFI >= 8" BLOCK;
|
||||
CheckRule "$TRAVERSAL >= 4" BLOCK;
|
||||
CheckRule "$EVADE >= 4" BLOCK;
|
||||
CheckRule "$XSS >= 8" BLOCK;
|
||||
access_log /hostdata/raws.com/logs/access.log main;
|
||||
error_log /hostdata/raws.com/logs/error.log;
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location /denied/ {
|
||||
return 444;
|
||||
}
|
||||
# =========================================
|
||||
# PHPMYADMIN.
|
||||
# =========================================
|
||||
location /phpmyadmin {
|
||||
root /hostdata/default/;
|
||||
location ~ ^/phpmyadmin/(.+\.php)$ {
|
||||
try_files $uri =404;
|
||||
root /hostdata/default/;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include /nginx/fastcgi_params;
|
||||
}
|
||||
}
|
||||
# =========================================
|
||||
# END PHPMYADMIN.
|
||||
# =========================================
|
||||
|
||||
# =========================================
|
||||
# PHP.
|
||||
# =========================================
|
||||
location ~ \.php {
|
||||
try_files $uri /index.php =404;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include /nginx/fastcgi_params;
|
||||
}
|
||||
# =========================================
|
||||
# END PHP.
|
||||
# =========================================
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
vm.nr_hugepages = 0
|
||||
vm.vfs_cache_pressure = 100
|
||||
fs.file-max = 1000000
|
||||
net.core.wmem_max = 16777216
|
||||
net.core.rmem_max = 16777216
|
||||
kernel.randomize_va_space = 2
|
||||
net.ipv4.ip_forward = 1
|
||||
net.ipv4.tcp_syncookies = 1
|
||||
net.ipv4.ip_local_port_range = 1024 64999
|
||||
net.ipv4.tcp_wmem = 4096 65536 16777216
|
||||
net.ipv4.tcp_rmem = 4096 87380 16777216
|
||||
net.ipv4.tcp_window_scaling = 1
|
||||
net.core.somaxconn = 32768
|
||||
net.core.netdev_max_backlog = 30000
|
||||
net.ipv4.tcp_max_syn_backlog = 2048
|
||||
net.ipv4.tcp_fin_timeout = 90
|
||||
net.ipv4.tcp_tw_recycle = 1
|
||||
net.ipv4.tcp_tw_reuse = 1
|
||||
net.core.default_qdisc = fq
|
||||
net.ipv4.tcp_congestion_control = bbr
|
||||
net.ipv4.tcp_synack_retries = 2
|
||||
net.ipv4.tcp_syn_retries = 2
|
||||
kernel.sched_autogroup_enabled = 0
|
||||
net.ipv4.tcp_max_orphans = 32768
|
||||
@@ -1,48 +0,0 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
root /hostdata/default/public_html;
|
||||
index index.html;
|
||||
server_name localhost;
|
||||
|
||||
# ================================================
|
||||
# LIMIT CONNECTION FOR IP / IPs WILL BE AUTO BANNED IF YOU HAVE INSTALL IPTABLES/FAIL2BAN
|
||||
limit_conn max 800;
|
||||
limit_req zone=one burst=300 nodelay;
|
||||
# ================================================
|
||||
|
||||
# ================================================
|
||||
# 1. Don't put log files into location / {..} it will not work as you think. Use like this.
|
||||
# 2. If you change their name or location make sure you also change those https://github.com/theraw/The-World-Is-Yours/blob/master/iptables/jail.local#L105-L118
|
||||
access_log /hostdata/default/logs/access.log main;
|
||||
error_log /hostdata/default/logs/error.log;
|
||||
# ================================================
|
||||
|
||||
# ================================================
|
||||
location / {
|
||||
SecRulesEnabled;
|
||||
LearningMode;
|
||||
DeniedUrl "/denied/";
|
||||
CheckRule "$SQL >= 8" BLOCK;
|
||||
CheckRule "$RFI >= 8" BLOCK;
|
||||
CheckRule "$TRAVERSAL >= 4" BLOCK;
|
||||
CheckRule "$EVADE >= 4" BLOCK;
|
||||
CheckRule "$XSS >= 8" BLOCK;
|
||||
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
# ================================================
|
||||
|
||||
location /denied/ {
|
||||
return 444;
|
||||
}
|
||||
|
||||
# ================================================
|
||||
location ~ \.php {
|
||||
try_files $uri /index.php =404;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
# ================================================
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
export NGINX="1.26.0"
|
||||
|
||||
export LUA_SCRIPTS="/usr/nginx_lua"
|
||||
|
||||
# https://github.com/openresty/lua-nginx-module/tags
|
||||
export NGX_MOD_LUA="0.10.27"
|
||||
|
||||
# https://github.com/vision5/ngx_devel_kit/tags
|
||||
export NGX_MOD_DEVELKIT="0.3.3"
|
||||
|
||||
# https://github.com/leev/ngx_http_geoip2_module/releases
|
||||
export NGX_MOD_GEOIP2="3.4"
|
||||
|
||||
# https://github.com/owasp-modsecurity/ModSecurity-nginx/releases
|
||||
export NGX_MOD_MODSECURITY="1.0.3"
|
||||
|
||||
# https://github.com/winshining/nginx-http-flv-module/releases
|
||||
export NGX_MOD_HTTPFLV="1.2.11"
|
||||
|
||||
# https://github.com/openresty/headers-more-nginx-module/tags
|
||||
export NGX_MOD_HEADERS_MORE="0.37"
|
||||
|
||||
# https://github.com/openresty/set-misc-nginx-module/releases
|
||||
export NGX_MOD_SETMISC="0.33"
|
||||
|
||||
# https://github.com/openresty/lua-resty-core/tags
|
||||
export LUA_SCRIPTS_RESTYCORE="0.1.28"
|
||||
|
||||
# https://github.com/openresty/lua-resty-lrucache/tags
|
||||
export LUA_SCRIPTS_LRUCACHE="0.13"
|
||||
|
||||
# https://github.com/openresty/luajit2/tags
|
||||
export SYSTEM_LUAJIT="2.1-20231117"
|
||||
|
||||
# https://github.com/PCRE2Project/pcre2/releases
|
||||
export SYSTEM_PCRE="10.43"
|
||||
|
||||
# https://github.com/openssl/openssl
|
||||
export SYSTEM_OPENSSL="3.1.5-quic1"
|
||||
|
||||
# https://github.com/SpiderLabs/ModSecurity/releases
|
||||
export SYSTEM_MODSECURITY="3.0.12"
|
||||
|
||||
# https://github.com/openresty/lua-resty-mysql/tags
|
||||
export NGX_MOD_LUA_MYSQL="0.27"
|
||||
|
||||
# https://github.com/openresty/lua-resty-lock/tags
|
||||
export NGX_MOD_LUA_LOCK="0.09"
|
||||
|
||||
# https://github.com/openresty/srcache-nginx-module/tags
|
||||
export NGX_MOD_LUA_SRCACHE="0.33"
|
||||
Reference in New Issue
Block a user