mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 11:44:02 +03:00
Document firehol_level1 RFC1918 gotcha in blocklist defaults
The default [defense.blocklist] uses firehol_level1.netset, which includes bogon networks and therefore all RFC1918 ranges. Clients connecting from a LAN address (e.g. a phone on the home Wi-Fi when mtg runs at home) are silently rejected with "ip was blacklisted" and routed to the fronting domain. This is a recurring source of confusion (see issue #466 for the latest example). Add a warning next to the urls list in example.config.toml and a Troubleshooting section in README.md covering the symptom, the cause, and three resolution paths (disable blocklist, swap for a narrower list, or use hairpin NAT). Docs only, no code changes.
This commit is contained in:
@@ -316,6 +316,17 @@ download-concurrency = 2
|
||||
# A list of URLs in FireHOL format (https://iplists.firehol.org/)
|
||||
# You can provider links here (starts with https:// or http://) or
|
||||
# path to a local file, but in this case it should be absolute.
|
||||
#
|
||||
# NOTE: the default list below (firehol_level1.netset) includes bogon
|
||||
# networks, and therefore RFC1918 ranges as well (10.0.0.0/8,
|
||||
# 172.16.0.0/12, 192.168.0.0/16). If you run mtg on a home/LAN network
|
||||
# and connect from a client on the same LAN, that client will be
|
||||
# rejected with "ip was blacklisted" and silently routed to the fronting
|
||||
# domain. If you see this, you can either disable this section
|
||||
# (enabled = false), replace firehol_level1 with a narrower list that
|
||||
# does not include bogons (e.g. firehol_abusers_1d), or connect via
|
||||
# a public IP/domain with hairpin NAT on your router. See README for
|
||||
# details.
|
||||
urls = [
|
||||
"https://iplists.firehol.org/files/firehol_level1.netset",
|
||||
# "/local.file"
|
||||
|
||||
Reference in New Issue
Block a user