Commit 26a5904
committed
fix(router): publishing the panel on the uplink only opened half the path
Reported from the box: with both uplink toggles on, SSH answered from the
WAN and the panel did not.
Opening a port in INPUT is only half of it. SSH is a host service and is
delivered locally, so it hits INPUT and the allow rule worked. The panel is
an nginx container with published ports: a request to the box's address is
DNAT'd and then FORWARDED to the container, never reaching INPUT, and the
forward policy is drop. The LAN side already had a `ct status dnat` rule
for exactly this reason — the WAN side, added later, did not.
Worse than a missing feature: the operator turns the toggle on precisely so
they can reach the panel after the switch, then cannot, and so cannot press
confirm — the watchdog reverts a router that was working. That is what
happened.
Scoped to `ct status dnat` and the allowed ports rather than a blanket
accept, so it publishes what was asked for and not every other container
port that happens to be mapped.
Verified on hardware: panel and SSH both answer from the uplink while
router mode is up, with the LAN bridged across a wired port and the radio.1 parent bbb7571 commit 26a5904
2 files changed
Lines changed: 80 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
555 | 580 | | |
556 | 581 | | |
557 | 582 | | |
| |||
621 | 646 | | |
622 | 647 | | |
623 | 648 | | |
624 | | - | |
| 649 | + | |
625 | 650 | | |
626 | 651 | | |
627 | 652 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2357 | 2357 | | |
2358 | 2358 | | |
2359 | 2359 | | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
0 commit comments