xtables-addons: nf_nat_rtsp does not rewrite destination= in server replies (XXX: unmangle stub)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- c, linux
- Ambito
- networking
Direzione di ricerca
Start in net/xtables-addons/patches/100-add-rtsp-conntrack.patch at nf_nat_rtsp() in extensions/rtsp/nf_nat_rtsp.c: compare the outbound destaction=auto rewrite with the IP_CT_DIR_REPLY branch marked XXX: unmangle. Work out how the client's original address is recoverable from the conntrack tuple in the reply direction, then rewrite each destination= back to it while keeping the message length. Done means the server reply's Transport: header reaches the STB with the LAN IP, confirmed by the WAN/LAN capture described.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Package Name
kmod-ipt-nathelper-rtsp (xtables-addons), file net/xtables-addons/patches/100-add-rtsp-conntrack.patch
Maintainer
@jow-
OpenWrt Version
24.10.6
OpenWrt Target/Subtarget
x64
Steps to Reproduce
Description
For an RTSP SETUP request, nf_nat_rtsp rewrites every destination= in the Transport: header to the router’s external IP (destaction=auto). In the reply direction the function does nothing:
c
case IP_CT_DIR_REPLY:
pr_debug("unmangle ! %u\n", ctinfo);
/* XXX: unmangle */
rc = NF_ACCEPT;
break;
(nf_nat_rtsp() in extensions/rtsp/nf_nat_rtsp.c, created by the patch above. The stub is present on openwrt-24.10, openwrt-25.12 and master.)
The server echoes the router’s IP in the reply’s Transport: header, and that echo reaches the client unchanged. If the external IP is longer than the client’s LAN IP, the reply also differs in length from what the client sent.
My IPTV STB accepts any IP in the echoed destination= as long as the length matches the original, but fails when it doesn’t. With the current helper, the reply has the router’s IP and the wrong length, so stream does not start.
Reproduce
STB on a private LAN IP behind OpenWrt NAT, RTSP helper assigned to the RTSP port.
The STB sends SETUP with N destination= fields. The helper rewrites all N to the router’s external IP.
Capture the server’s reply on the WAN side and on the LAN side.
Expected
The reply direction should restore each destination= to the client’s original IP, mirroring the outbound rewrite.
Actual Behaviour
The reply direction does not restore each destination= to the client’s original IP.
Confirmation Checklist
- The package is maintained in this repository.
- I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
- I am reporting an issue for OpenWrt, not an unsupported fork.
- Lingua principale
- Makefile
- Stelle
- 4.7k
- Fork
- 4k
- Merge medio
- 2g 2h
- PR unite (30g)
- 251
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openwrt/packages
-
vnstat2: missing keep.d-fileApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
rsyslog: missing keep.d-fileApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
openwrt/packages#31307 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
openwrt/packages#31306 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di openwrt/packages
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
webtorrent/webtorrent#3131 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100