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

UDP and TCP packet drops #2

Closed
sheharyaar opened this issue Jan 14, 2022 · 3 comments
Closed

UDP and TCP packet drops #2

sheharyaar opened this issue Jan 14, 2022 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@sheharyaar
Copy link
Member

sheharyaar commented Jan 14, 2022

There is a strange behavior with the firewall dropping TCP and UDP packets. After hosting a server using netcat on cloud (both EC2 and DigitalOcean),

I tested TCP using netcat and telnet. Both connected successfully. For UDP testing, I used netcat only. The servers were created on even reserved category ports which are not in use.

The strange behaviour I noticed was that, both TCP and UDP connections were dropped on both netcat and telnet exactly after 6 data transfers ( the 7th couldn't
be processed by the server and the conenction was reset ).

More information from important tools like wireshark or tcpdump would be helpful.
Information can be gathered about this behaviour by changing the size of the messages and forcing fragmentation. Tinkering with MTU size can also provide some insight.

@sheharyaar sheharyaar pinned this issue Jan 14, 2022
@sheharyaar sheharyaar added good first issue Good for newcomers help wanted Extra attention is needed and removed good first issue Good for newcomers labels Jan 14, 2022
@sheharyaar
Copy link
Member Author

Another weird things happens. When connected with -v option : nc -v <IP> <port> , netcat displays XXXXX ( 5 Xs) and then accepts only a single data transfer and then exits. So still a total of 6 data transfers.

@sheharyaar
Copy link
Member Author

If network allows 6 data packets, maybe we can use IKEv2 as it requires 4-6 packet transfers to create SA.

@Yureien
Copy link

Yureien commented Feb 15, 2022

We can try checking port wise. Maybe some ports have been allowed, like 3389 is for Windows UDP?

@sheharyaar sheharyaar unpinned this issue Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants