LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2015, 05:52 AM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Rep: Reputation: 34
enable packet socket


Hi I am trying run wireshark and in one of the document it says that "packet socket" has to be enabled.

How do I go about listing if this is enabled in the kernel
How do I enable this if this is not

Thanks and Regards
 
Old 08-14-2015, 09:47 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
You don't say which distribution you're using, but most come with capture support built in by default these days. It's possible it's a privileges issue, in which case https://wiki.wireshark.org/CaptureSe...turePrivileges should help.

--jeremy
 
Old 08-15-2015, 04:30 AM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Hi Jeremy, thanks for the reply and sorry it is fedora 21 (64bit)

it seems all the setting and tools are installed as per the URL

I am trying to sniff out all the traffic that is running about in my network (what ny network card see), I am running Wireshark in promiscuous mode and with no filters, yet all I can see is broadcast and unicast and traffic that is going out and in from my machine. I have tried with no firewall with no luck

Any idea to what is causing whether I am doing this wrong some other!

Thanks and Best Regards

Last edited by procfs; 08-15-2015 at 04:31 AM.
 
Old 08-15-2015, 07:16 AM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,146

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
Most likely you are seeing all the traffic sent to your card. A switch or router won't send packets that are addressed to a different port.
 
Old 08-20-2015, 12:49 AM   #5
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
So I faild to see that point, yes I am on a switch . How do I go about capturing all the traffic with out been the router it self, seems you cant

Thanks Smallpond

Best Regards
 
  


Reply



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
Packet socket not receive data kamil_b90 Linux - Kernel 1 07-11-2014 02:35 PM
build ip packet with C,socket programming z99 Programming 5 01-31-2011 03:47 AM
raw socket/ip packet help shouup Programming 14 04-24-2006 04:54 PM
Capturing a Socket and Injecting a Packet Chryzmo Programming 5 12-07-2005 01:17 AM
Packet socket and socket filtring Baran Linux - Newbie 4 10-09-2003 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:17 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