Commit 315898f
Fix Ubuntu 22.04 compatibility issues (#14824)
This commit addresses two critical issues preventing Algo from working
on Ubuntu 22.04:
1. Load af_key kernel module for StrongSwan
- Ubuntu 22.04 minimal installs don't load af_key by default
- Without this module, StrongSwan fails with namespace errors
- Added modprobe task to ensure module is loaded persistently
2. Force iptables-legacy mode on Ubuntu 22.04+
- Ubuntu 22.04 uses iptables-nft backend by default
- This causes firewall rules to be reordered incorrectly
- VPN traffic gets blocked by misplaced DROP rules
- Switching to iptables-legacy ensures correct rule ordering
These changes restore full VPN functionality (both WireGuard and IPsec)
on Ubuntu 22.04 installations.
Closes #14820
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <[email protected]>1 parent b821080 commit 315898f
2 files changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
164 | 190 | | |
165 | 191 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
| |||
0 commit comments