LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-09-2016, 04:34 AM   #1
Pwat
LQ Newbie
 
Registered: Dec 2016
Posts: 1

Rep: Reputation: Disabled
Forward promiscuous traffic to another host


Hello,

To replay all incoming traffic on my infrastructure, i have a Centos 6 server attached to a mirroring port.
I see on this server all traffic in promiscuous mode and i'd like to forward this traffic to another host.

How can y do ?

Thanks
 
Old 12-12-2016, 12:31 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,143

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
Use nc
 
Old 12-12-2016, 06:38 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,665
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
"Dunno, just think about it ..."

It's quite possible to arrange for one host to "promiscuously gather all of the traffic that it sees," and then to "send it [all] to another host," but, if you simply forward it (as though you were merely a "gateway"): "now, what-in-the-heck is this 'another host' now supposed to do with all this stuff?" If this is, indeed, your intention, then you'll need to be sure that the recipient is prepared with all of the necessary routing-rules.

On the other hand, perhaps you intend for the promiscuous host to gather all of the incoming messages, and then to send new messages (containing the content of the messages it has received...) to its peer.

The "proper" answer to your question rests upon this clarification . . . .

Last edited by sundialsvcs; 12-16-2016 at 10:26 AM.
 
Old 12-12-2016, 09:00 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
I might be tempted to run a GRE tunnel.
 
Old 12-16-2016, 10:27 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,665
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
Another possibility is to set up an OpenVPN tunnel betwixt them, running in "bridge mode."

In this mode, the connected peers will promiscuously listen on their respective networks and inform one another of what they hear, to be re-broadcast upon the other network. But the connection between them is secure. No one can eavesdrop on the traffic or inject forged traffic into the conversation. The two peers recognize one another using one-of-a-kind digital certificates issued only to them.
 
  


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
[SOLVED] How to route (forward) packets in promiscuous mode commers Linux - Networking 6 02-28-2012 11:17 AM
Forward port 80 for all traffic except to certain host/network fantasygoat Linux - Networking 3 12-04-2009 12:08 PM
forward traffic from one computer to another randomx Linux - Networking 2 09-05-2009 04:19 PM
How do I forward specific network traffic securely to another host? silverblimp Linux - Server 3 04-20-2009 05:48 AM
promiscuous mode not working (hub) - can only see broadcast traffic lardus Linux - Networking 11 05-16-2005 04:22 AM

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

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