How to enable Debug logging for TCP stack in Ubuntu

Hi,

We are facing an issue with Ubuntu server, what is happening is that any new TCP connection with the first SYN packet is getting rejected by our Ubuntu server with an immediate RESET, Wire shark does not show any malformed packet and the SYN packet seems to be correct, but still the server always replies with RESET to the First SYN, can some one please let me know if there is a way we can configure detailed logging for the TCP stack in ubuntu, so that we can see the reason why the server is sending the RESET immediately.

I’ve moved this to the https://community.ubuntu.com/c/support-help-requests category because this site isn’t designed to take tech support questions. Sorry. I’d recommend using one of the official support channels listed on the https://community.ubuntu.com/t/finding-help/712 page