Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[S-6] Dead WAN→2121 ACCEPT firewall rule contradicts nft drop (latent exposure)

Aperta
#807 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
shell

Direzione di ricerca

Start by confirming the finding still exists upstream: read the ACCEPT rule in the 99-tollgate-setup uci-defaults script around lines 174-181, then check it against the nftables drop for port 2121 in 30-backend-firewall.nft. If the rule is still present and contradicts the drop, remove it from the uci-defaults script. Done means the WAN-to-2121 traffic remains blocked by the nft rules and no ACCEPT rule for that port is left in the uci config.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Migrated from Amperstrand/tollgate-module-basic-go#77 as part of the fork retirement — OpenTollGate/tollgate-module-basic-go is the single source of truth; the fork issue carries the original discussion and any lab evidence. Retirement plan: #758.]


MEDIUM: A stale ACCEPT rule in uci-defaults (99-tollgate-setup:174-181) allows WAN→:2121 traffic, contradicting the actual nftables drop in 30-backend-firewall.nft. This creates latent exposure if firewall rules are reloaded in a different order or if the nft drop is accidentally removed.

The dead rule serves no purpose and may create a false sense of security while actually creating an exposure vector.

Fix: Delete the dead rule from uci-defaults.

Evidence: /home/ubuntu/src/tollgate_audit_report_2026-08-26.md §7, line 149
File references: uci-defaults 99-tollgate-setup:174-181 vs 30-backend-firewall.nft


Migrated 2026-10-09. Applicability to current upstream main (4614ac2, post-rc1) was not re-verified during migration — confirming whether the finding still reproduces upstream is this issue's first task.

Lingua principale
Go
Stelle
12
Fork
14
Merge medio
1g 5h
PR unite (30g)
232

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenTollGate/tollgate-module-basic-go

Tutte le issue di OpenTollGate/tollgate-module-basic-go

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.