LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-28-2014, 09:37 AM   #1
Ra'Jiska
Member
 
Registered: Apr 2013
Posts: 47

Rep: Reputation: Disabled
Get UDP Active Connections


Hello',

I'd like to know how I could get every IPs connected to a UDP service.
I've been trying through Netstat wich throws: 0.0.0.0:* as the connected IP.
Thanks for your help.

P.S: The server is running on Ubuntu 12.04.
 
Old 05-28-2014, 09:59 PM   #2
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
UDP is stateless, and therefore you cannot get state information like "connected" or "unconnected". You could track the traffic going in and out using tcpdump or some other traffic analyzer.

ss -u -pa will list all sockets
netstat -u will show all listening processes, and connected processes, but not a foreign address
lsof -iUDP will show more info, but yet again-no foreign addresses

There's not much you can do for UDP, I don't think.
 
Old 05-30-2014, 05:19 PM   #3
Lantzvillian
Member
 
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Rep: Reputation: 41
You could use iptables and create accounting rules on the INPUT chain to track incoming UDP connections.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple UDP connections with NCAT server NOT running manoj90bhatt Linux - Networking 0 09-05-2013 12:45 PM
How to block too many UDP connections to certain ports farenheitcx Linux - Security 1 08-17-2012 07:47 AM
multiple internet connections iproute2 UDP problems razza Linux - Networking 1 04-27-2008 07:29 AM
How do I tear down an active tcp/udp session thru my firewall drokmed Linux - Security 9 04-11-2008 12:07 PM
GUI for active connections twistedpair Linux - Networking 3 03-30-2004 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration