LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-19-2009, 03:03 AM   #1
memtv
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
Linux packet filtering


hi .... (^_^)/

I want to filter packets in linux. I know packet handling is by
kernel. and I know using iptables, netfilter and libipq.
my question is, how I get ethernet header by libipq? I can only get ip
packet by it.
please help me to solve this problem.
very thanks ... (n_n)
 
Old 07-20-2009, 08:53 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
According to wikipedia: "Libipq has been deprecated in favour of the newer libnetfilter_queue in Linux kernel-2.6.14 onwards."

http://www.netfilter.org/projects/li...eue/index.html
 
Old 07-20-2009, 03:33 PM   #3
memtv
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Wink reply to you (n_n)

Quote:
Originally Posted by jschiwal View Post
According to wikipedia: "Libipq has been deprecated in favour of the newer libnetfilter_queue in Linux kernel-2.6.14 onwards."

http://www.netfilter.org/projects/li...eue/index.html
very thanks for your answer ... (^_^)/
but I test libnetfilter_queue, too. this api don't take ethernet header to me.
how can I modify it for taking ethernet header from packets?

thanks ... (n_n)
 
  


Reply

Tags
ethernet, filtering, iptables, libipq, netfilter, packet


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 filtering !!! need help aashish.verma Linux - Networking 2 05-24-2006 10:29 AM
Packet filtering firewall Maintech Slackware 3 10-30-2005 11:34 AM
packet filtering majeztik Linux - Security 2 04-09-2005 01:34 AM
Packet Filtering empre55 Linux - Newbie 1 03-20-2005 09:10 AM
Packet Filtering simmid Linux - Networking 0 09-18-2001 02:05 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration