Commit 4684aad
Paul C
v0.5.18: drop dangerous INPUT DROP rule that broke WolfRouter subnet routing
klasSponsor (2026-04-27) confirmed an `iptables -A INPUT -i <ext> -d
<wolfnet-subnet> -j DROP` rule installed by enable_gateway() was
breaking WolfRouter subnet routing on multiple nodes. The rule's
intent ("block all other inbound traffic to wolfnet — truly private")
turned out to be cargo-cult: a packet on ext_iface destined for a
CGNAT address can only reach INPUT if that IP is local (i.e. the
host's own wolfnet0), and the public internet can't legitimately route
RFC1918/CGNAT addresses anyway. WolfNet privacy comes from the
encrypted overlay, not from this filter.
- Stop adding the rule in enable_gateway().
- Proactively delete up to 4 stale copies on every gateway start so
existing nodes get cleaned up at the next WolfNet restart after
upgrade.
- disable_gateway()'s -D was already there; left untouched.1 parent 991a2e1 commit 4684aad
3 files changed
Lines changed: 31 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
75 | 98 | | |
76 | 99 | | |
77 | | - | |
78 | 100 | | |
79 | 101 | | |
80 | 102 | | |
| |||
0 commit comments