Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stagnant connections shown in netstat
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
voncloft
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2014
Posts: 99

PostPosted: Mon Dec 03, 2018 5:03 pm    Post subject: Stagnant connections shown in netstat Reply with quote

I attached a screenshot of connections that are still showing , even though my device 192.168.42.2 (my phone) is not at home - (I am at work right now)

Why is it still showing a connection when I am not home with it?

https://imgur.com/a/0MCy2iw

Also the :4040 is a subsonic service, and it is currently streaming outside my network to my phone - but it seems to never close a connection.

Thanks.

(Red blocks are external IP's that are blocked out for security reasons)
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7049
Location: almost Mile High in the USA

PostPosted: Mon Dec 03, 2018 7:37 pm    Post subject: Reply with quote

TCP is known as a stateful connection. However it requires packets to pass to control the connection.

If there are no packets flowing, and there doesn't need to be, the connection state table won't change, it assumes the device is still there even if it's not. The software needs to detect and reap those connections, and if it doesn't know how to do that you'll have to restart the program.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
zeek
Guru
Guru


Joined: 16 Nov 2002
Posts: 480
Location: Bantayan Island

PostPosted: Sun Dec 09, 2018 1:08 am    Post subject: Reply with quote

Keepalives would get rid of these connections, but turning on keepalive can cause other problems so it isn't a default.

Instructions: http://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7049
Location: almost Mile High in the USA

PostPosted: Sun Dec 09, 2018 4:00 am    Post subject: Reply with quote

This unfortunately depends on the software, if it does not have the capability to send keep alive packets, either you have to write them into the software or else you're still in the same boat...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum