LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-27-2010, 12:52 PM   #1
Niteflite
LQ Newbie
 
Registered: Jun 2009
Posts: 4

Rep: Reputation: 0
Linux kernel packet forwarding question


All,

I have a hardware device with two ethernet ports, eth0 and eth1 running Centos 5.

Basically my goal is to forward packets from eth0->eth1 and eth1->eth0
as well as get a copy of these packets for analysis.

If I set IP routing to do the forwarding then I won't get a copy of the
packets for analysis. Can netfilter help?

Linux kernel / networking experts out there, please let me know your thoughts...

Thanks!!

Last edited by Niteflite; 09-27-2010 at 12:54 PM.
 
Old 09-27-2010, 01:07 PM   #2
Nemesiz
Member
 
Registered: Oct 2007
Posts: 44

Rep: Reputation: 2
bridge will help you (brctl) for analyze try tcpdump or your favorite soft
 
1 members found this post helpful.
Old 09-27-2010, 02:40 PM   #3
Niteflite
LQ Newbie
 
Registered: Jun 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nemesiz View Post
bridge will help you (brctl) for analyze try tcpdump or your favorite soft

Thanks. I think brctl might solve my problem for forwarding.

I have pcap for capture analysis.
Can I use pcap on the bridge (since it is now a collection of ports now)?
 
Old 09-28-2010, 03:09 AM   #4
Nemesiz
Member
 
Registered: Oct 2007
Posts: 44

Rep: Reputation: 2
I think you can, just try.
 
  


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 fragmentation in packet forwarding code cranium2004 Linux - Networking 0 05-16-2005 04:05 AM
Linux Packet Forwarding Performance nbrailas Linux - Networking 0 12-01-2004 07:43 PM
could i ask a question about forwarding a packet mostafa_ezz Linux - Networking 0 02-07-2004 02:05 PM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM
kernel packet forwarding doodah Linux - Networking 4 08-17-2001 08:14 PM

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

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