Welcome! Log In Create A New Profile

Advanced

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

All files from this thread

File Name File Size   Posted by Date  
accesslog1.jpg 30.1 KB open | download rebornks 02/19/2024 Read message
wiresharkpcap1.png 39.5 KB open | download rebornks 02/19/2024 Read message
February 19, 2024 10:58PM
Hi J Carter,

Thank you for your reply.
I am capturing the packet from firewall, and the filtering is as per below
for the previously attached pcap.

Source : client app -- Dest : nginx proxy , any port to any port

Source : public server -- Dest : nginx proxy , any port to any port

Source : nginx proxy -- Dest : client app , any port to any port

Source : nginx proxy -- Dest : public server , any port to any port.

Perhaps I will try to do tcpdump from the client app as well.

One more info that I notice from client app host, from the netstat command,
it shows CLOSE_WAIT for the terminated session, it seems like close_wait is
the symbol that the closing is from external ( in this case client app is
connect to nginx proxy), is this right?




On Tue, Feb 20, 2024, 10:06 AM J Carter <jordanc.carter@outlook.com> wrote:

> Hello,
>
> On Tue, 20 Feb 2024 09:40:13 +0800
> Kin Seng <ckinseng@gmail.com> wrote:
>
> > Hi J Carter,
> >
> > This is the only results from the whole 5 minutes session (intentionally
> > without any transaction to create inactivity). Is there any symptoms
> which
> > can prove that other parties are the one who Initiate the closing?
> >
>
> Packet capture is the easiest, however it looks like you have
> missing data in PCAP for some reason (like tcpdump filters).
>
> I suppose you could also perform packet capture on the client app host
> instead of on the nginx host to corroborate the data - that would show
> who sent FIN first.
>
> Also, as Roman says in adjacent thread, debug level logs will also show
> what happened.
>
> > On Tue, Feb 20, 2024, 9:33 AM J Carter <jordanc.carter@outlook.com>
> wrote:
> >
> > > Hello,
> > >
> > > On Mon, 19 Feb 2024 16:24:48 +0800
> > > Kin Seng <ckinseng@gmail.com> wrote:
> > >
> > > [...]
> > > > Please refer to the attachments for reference.
> > > >
> > > > On Mon, Feb 19, 2024 at 4:24 PM Kin Seng <ckinseng@gmail.com>
> wrote:
> > > > > After capturing the tcp packet and check via wireshark, I found
> out
> > > that
> > > > > the nginx is sending out the RST to the public server and then
> send
> > > FIN/ACK
> > > > > (refer attached pcap picture) to client application.
> > > > >
> > > > > I have tried to enable keepalive related parameters as per the
> nginx
> > > > > config above and also check on the OS's TCP tunable and i could
> not
> > > find
> > > > > any related settings which make NGINX to kill the TCP connection.
> > > > >
> > > > > Anyone encountering the same issues?
> > > > >
> > >
> > > The screenshot shows only 1 segment with FIN flag set too which is
> > > odd - there should be one from each party in close sequence. Also the
> > > client only returns an ACK, rather than FIN+ACK, which it should if
> > > nginx was the initiator of closing the connection...
> > > _______________________________________________
> > > nginx mailing list
> > > nginx@nginx.org
> > > https://mailman.nginx.org/mailman/listinfo/nginx
> > >
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

rebornks February 19, 2024 03:26AM

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity Attachments

rebornks February 19, 2024 03:26AM

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

J Carter February 19, 2024 08:34PM

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

rebornks February 19, 2024 08:42PM

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

J Carter February 19, 2024 09:08PM

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

rebornks February 19, 2024 10:58PM

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

J Carter February 21, 2024 12:48PM

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

rebornks February 26, 2024 06:58AM

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

Roman Arutyunyan February 19, 2024 12:04PM

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

rebornks February 19, 2024 08:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 160
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready