Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] natping_tcp makes fragmented packets wrong #3454

Open
firestation opened this issue Aug 30, 2024 · 2 comments
Open

[BUG] natping_tcp makes fragmented packets wrong #3454

firestation opened this issue Aug 30, 2024 · 2 comments
Labels

Comments

@firestation
Copy link

firestation commented Aug 30, 2024

Hi, seems i found some bug in TCP/TLS cases.

In short: when natping_tcp and "natping_interval" enabled, opensips makes TCP packets fragmented even it's less 1500. But, also, as i understood it makes wrong fragmentation.

To reproduce this bug you just need Alice(udp) and Bob(tcp) on vanilla opensips server configuration.
then add nathelper with "natping_tcp" and "natping_interval" options enabled.
then most of call to from Alice to Bob will cause error on Bob side.
if bob is pjsip : "Error processing 914 bytes packet from TCP x.x.x.x:5061 : PJSIP syntax error exception when parsing 'Request Line' header on line 1 col 1:" and does not respond any on sip level.
if bob is baresip: it will return "400 Bad"

in both cases sngrep will show correctly TCP SIP messages sended to Bob.
Wireshark show 2 packets: first with 58 data and then SIP packet with info "Continuation Data".

I have tested it on 3.3 and 3.4 Opensips from official repo.
OS is oracle 9 and oracle 8, also tested on Debian 12 - the same issue

@firestation
Copy link
Author

It's not related on network level, because i have tested on local interface(127.x.x.x) also.

Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant