|
|
@@ -514,6 +514,49 @@ This is not very necessary. Keep in mind these rules:
|
|
514
|
514
|
you can enable `drs` setting.
|
|
515
|
515
|
9. **If you are not sure, touch nothing!**
|
|
516
|
516
|
|
|
|
517
|
+## Troubleshooting
|
|
|
518
|
+
|
|
|
519
|
+### `ip was blacklisted` for clients on the same LAN
|
|
|
520
|
+
|
|
|
521
|
+If you run mtg at home and a client on the same LAN (for example, your
|
|
|
522
|
+phone on the home Wi-Fi) cannot connect, check the proxy logs for a
|
|
|
523
|
+message like:
|
|
|
524
|
+
|
|
|
525
|
+```json
|
|
|
526
|
+{"level":"info","ip":"10.0.1.1","logger":"proxy","message":"ip was blacklisted"}
|
|
|
527
|
+```
|
|
|
528
|
+
|
|
|
529
|
+The reason is that the default blocklist (`firehol_level1.netset`)
|
|
|
530
|
+includes bogon networks, which covers all RFC1918 ranges
|
|
|
531
|
+(`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`). Any client
|
|
|
532
|
+connecting from such an address is rejected by the blocklist and
|
|
|
533
|
+silently routed to the fronting domain.
|
|
|
534
|
+
|
|
|
535
|
+There are three ways to resolve it:
|
|
|
536
|
+
|
|
|
537
|
+1. Disable the blocklist entirely in `config.toml`:
|
|
|
538
|
+
|
|
|
539
|
+ ```toml
|
|
|
540
|
+ [defense.blocklist]
|
|
|
541
|
+ enabled = false
|
|
|
542
|
+ ```
|
|
|
543
|
+
|
|
|
544
|
+ Simplest option if the proxy is used only by you and people you trust.
|
|
|
545
|
+
|
|
|
546
|
+2. Keep the blocklist but swap `firehol_level1` for a narrower list that
|
|
|
547
|
+ does not include bogons, for example `firehol_abusers_1d`:
|
|
|
548
|
+
|
|
|
549
|
+ ```toml
|
|
|
550
|
+ [defense.blocklist]
|
|
|
551
|
+ enabled = true
|
|
|
552
|
+ urls = ["https://iplists.firehol.org/files/firehol_abusers_1d.netset"]
|
|
|
553
|
+ ```
|
|
|
554
|
+
|
|
|
555
|
+3. Connect to the proxy through a public IP or domain name with hairpin
|
|
|
556
|
+ NAT (`MASQUERADE`) on your router. mtg will then see the client with
|
|
|
557
|
+ its public address and the blocklist will not match. This is more
|
|
|
558
|
+ work to set up but preserves full blocklist protection.
|
|
|
559
|
+
|
|
517
|
560
|
## Metrics
|
|
518
|
561
|
|
|
519
|
562
|
Out of the box, mtg works with
|