- Ubuntu 16.04 or higher (18.04 works the same)
- Apache 2.4.18 or higher
- OpenSSL 1.0.2g-1ubuntu4.10 or higher
- e.g. LetsEncrypt certificate
OS: Ubuntu 16.04 Apache/2.4.18 1.0.2g-1ubuntu4.10
etet |
#!/bin/bash | |
# Dynamically retrieves and add IPs from a list of domain names | |
# Creates a cache folder with IP as filenames to know if they have been added previously | |
# Manages both IPv4 and IPv6 rules. | |
MAIN_INTERFACE=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -1) | |
THIS_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)" | |
CACHE_DIR="$THIS_DIR/.ips" | |
function is_ipv4() |