minifirewall/minifirewall.conf

95 lines
2.1 KiB
Plaintext
Raw Normal View History

# Configuration for minifirewall : https://gitea.evolix.org/evolix/minifirewall
2021-05-22 23:22:31 +02:00
# Version 21.05 — 2021-05-22 23:22:10
# shellcheck shell=sh disable=SC2034
2015-09-13 20:13:05 +02:00
# Main interface
INT='eth0'
2015-09-13 20:13:05 +02:00
# 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'
2015-09-13 20:13:05 +02:00
# Trusted IPv4 local network
# ...will be often IP/32 if you don't trust anything
INTLAN='192.168.0.2/32'
2015-09-13 20:13:05 +02:00
# 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'
2015-09-13 20:13:05 +02:00
# Privilegied IPv4 addresses for semi-public services
# (no need to add again TRUSTEDIPS)
PRIVILEGIEDIPS=''
2015-09-13 20:13:05 +02:00
# Local services IPv4/IPv6 restrictions
#######################################
# Protected services
# (add also in Public services if needed)
SERVICESTCP1p='22222'
SERVICESUDP1p=''
2015-09-13 20:13:05 +02:00
# Public services (IPv4/IPv6)
SERVICESTCP1='22222'
SERVICESUDP1=''
2015-09-13 20:13:05 +02:00
# Semi-public services (IPv4)
SERVICESTCP2='22'
SERVICESUDP2=''
2015-09-13 20:13:05 +02:00
# Private services (IPv4)
SERVICESTCP3='5666'
SERVICESUDP3=''
2015-09-13 20:13:05 +02:00
# Standard output IPv4 access restrictions
##########################################
2015-09-13 20:13:05 +02:00
# DNS authorizations
# (if you have local DNS server, set 0.0.0.0/0)
2011-04-19 15:51:15 +02:00
DNSSERVEURS='0.0.0.0/0'
2015-09-13 20:13:05 +02:00
# 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'
2015-09-13 20:13:05 +02:00
# HTTPS authorizations
2011-04-02 11:48:19 +02:00
HTTPSSITES='0.0.0.0/0'
2015-09-13 20:13:05 +02:00
# FTP authorizations
FTPSITES=''
2015-09-13 20:13:05 +02:00
# SSH authorizations
SSHOK='0.0.0.0/0'
2015-09-13 20:13:05 +02:00
# SMTP authorizations
SMTPOK='0.0.0.0/0'
2015-09-13 20:13:05 +02:00
# SMTP secure authorizations (ports TCP/465 and TCP/587)
SMTPSECUREOK=''
2015-09-13 20:13:05 +02:00
# NTP authorizations
NTPOK='0.0.0.0/0'
2021-05-26 13:20:12 +02:00
# Proxy (Squid)
PROXY='off'
2021-06-04 14:06:37 +02:00
# (proxy port)
PROXYPORT='8888'
# (destinations that bypass the proxy)
PROXYBYPASS="${INTLAN} 127.0.0.0/8"
2021-05-26 13:12:15 +02:00
# Backup servers
# (add IP:PORT for each one, example: '192.168.10.1:1234 192.168.10.2:5678')
BACKUPSERVERS=''
# Includes
2015-09-13 20:13:05 +02:00
#####################
# Files in /etc/minifirewall.d/* (without "." in name)
# are automatically included in alphanumerical order.