LinuxQuestions.org
Review your favorite Linux distribution.
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, 06:52 AM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 632

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, 10:47 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,028

Rep: Reputation: 3756Reputation: 3756Reputation: 3756Reputation: 3756Reputation: 3756Reputation: 3756Reputation: 3756Reputation: 3756Reputation: 3756Reputation: 3756Reputation: 3756
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, 05:30 AM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 632

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 05:31 AM.
 
Old 08-15-2015, 08:16 AM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 & 7
Posts: 3,221

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
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, 01:49 AM   #5
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 632

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


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

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

All times are GMT -5. The time now is 10:19 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration