# Configuration for minifirewall : https://gitea.evolix.org/evolix/minifirewall # Version 21.05 — 2021-05-22 23:22:10 # shellcheck shell=sh disable=SC2034 # Main interface INT='eth0' # IPv6 IPV6='on' # Docker Mode # Changes the behaviour of minifirewall to not break the containers' network # For instance, turning it on will disable nat table purge # Also, we'll add the DOCKER-USER chain, in iptable DOCKER='off' # Trusted IPv4 local network # ...will be often IP/32 if you don't trust anything INTLAN='192.168.0.2/32' # Trusted IPv4 addresses for private and semi-public services TRUSTEDIPS='31.170.9.129 62.212.121.90 31.170.8.4 82.65.34.85 54.37.106.210 51.210.84.146' # Privilegied IPv4 addresses for semi-public services # (no need to add again TRUSTEDIPS) PRIVILEGIEDIPS='' # Local services IPv4/IPv6 restrictions ####################################### # Protected services # (add also in Public services if needed) SERVICESTCP1p='22222' SERVICESUDP1p='' # Public services (IPv4/IPv6) SERVICESTCP1='22222' SERVICESUDP1='' # Semi-public services (IPv4) SERVICESTCP2='22' SERVICESUDP2='' # Private services (IPv4) SERVICESTCP3='5666' SERVICESUDP3='' # Standard output IPv4 access restrictions ########################################## # DNS authorizations # (if you have local DNS server, set 0.0.0.0/0) DNSSERVEURS='0.0.0.0/0' # HTTP authorizations # (you can use DNS names but set cron to reload minifirewall regularly) # (if you have HTTP proxy, set 0.0.0.0/0) HTTPSITES='0.0.0.0/0' # HTTPS authorizations HTTPSSITES='0.0.0.0/0' # FTP authorizations FTPSITES='' # SSH authorizations SSHOK='0.0.0.0/0' # SMTP authorizations SMTPOK='0.0.0.0/0' # SMTP secure authorizations (ports TCP/465 and TCP/587) SMTPSECUREOK='' # NTP authorizations NTPOK='0.0.0.0/0' # Proxy (Squid) PROXY='off' # (proxy port) PROXYPORT='8888' # (destinations that bypass the proxy) PROXYBYPASS="${INTLAN} 127.0.0.0/8" # Backup servers # (add IP:PORT for each one, example: '192.168.10.1:1234 192.168.10.2:5678') BACKUPSERVERS='' # Includes ##################### # Files in /etc/minifirewall.d/* (without "." in name) # are automatically included in alphanumerical order.