- Fixed: with a transparent proxy on the router (Clash, sing-box and others that mark the router's own traffic for tproxy), the portal and AmneziaWG answered nobody outside the LAN: their replies were diverted into the proxy, so visitors saw timeouts (Cloudflare 522) and devices could not connect from outside - Dawnline's own answers now leave by the main table through a small nft table (inet dawnline_reply) that clears only the proxy's mark on them; it follows the proxy within a minute when one starts later, and the old priority-90 policy rules, which never matched, are removed - Health's "answers reach" checks read that table, and the uninstaller removes it
This commit is contained in:
1 parent
34293fb8e5
commit
6444722d14
8 files changed
+157
-83
No files matched your search
+10
-8
@@ -564,15 +564,16 @@ clean_network_leftovers() {
|
||||
ok "Removed leftover firewall sections: $(echo "$_fw" | tr '\n' ' ')"
|
||||
fi
|
||||
fi
|
||||
if command_exists nft && nft list table inet dawnline >/dev/null 2>&1; then
|
||||
for _t in dawnline dawnline_reply; do
|
||||
command_exists nft && nft list table inet "$_t" >/dev/null 2>&1 || continue
|
||||
_found=1
|
||||
if [ "$DRY_RUN" -eq 1 ]; then
|
||||
dry "delete the nft table inet dawnline"
|
||||
dry "delete the nft table inet $_t"
|
||||
else
|
||||
nft delete table inet dawnline 2>/dev/null
|
||||
ok "Removed the nft table inet dawnline"
|
||||
nft delete table inet "$_t" 2>/dev/null
|
||||
ok "Removed the nft table inet $_t"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if [ -e /var/run/netns/dawnline ] || ip link show dlx0 >/dev/null 2>&1 || ip link show dll0 >/dev/null 2>&1; then
|
||||
_found=1
|
||||
if [ "$DRY_RUN" -eq 1 ]; then
|
||||
@@ -588,9 +589,10 @@ clean_network_leftovers() {
|
||||
[ "$_found" -eq 1 ] || ok "No tunnel, firewall, nft or routing leftovers"
|
||||
}
|
||||
|
||||
# Dawnline's policy rules: priority 90 sends the portal's and the tunnels'
|
||||
# answers by the main table; 5200-5299 are the "like a home device" loop for a
|
||||
# tunnel interface (Dawnline's, or one already gone), with tables 2077-2176.
|
||||
# Dawnline's policy rules: priority 90 sent the portal's and the tunnels'
|
||||
# answers by the main table (up to 0.4.0); 5200-5299 are the "like a home
|
||||
# device" loop for a tunnel interface (Dawnline's, or one already gone), with
|
||||
# tables 2077-2176.
|
||||
clean_routing_leftovers() {
|
||||
_ours=" $(echo "$1" | tr '\n' ' ') "
|
||||
_rules=""
|
||||
|
||||
Reference in new issue
Block a user