Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using iptables to duplicate traffic
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
l_bratch
Guru
Guru


Joined: 08 Feb 2005
Posts: 494
Location: Jersey

PostPosted: Sun Sep 16, 2007 9:19 pm    Post subject: Using iptables to duplicate traffic Reply with quote

Hello

I current use a Gentoo router running kernel 2.6.22-gentoo-r5, which uses iptables to do NATting and traffic filtering.

I would like to configure it to duplicate traffic destined for a certain internal host to another host.

Eg:
Router: 192.168.0.1
PC1: 192.168.0.2
PC2: 192.168.0.3

I would like incoming traffic coming through Route, that is destined to go to PC2, to go to PC2 but also to PC1.

I have read about combining -j ROUTE with --tee, which would seem to do the job, but I can't get this working with Gentoo.

Code:
iptables v1.3.8: Couldn't load target `ROUTE':/lib/iptables/libipt_ROUTE.so: cannot open shared object file: No such file or directory


That's the error I get, and I have looked in the kernel config to enable the ROUTE target, but cannot see any mention of ROUTE in there.

Does anyone have any ideas?

Thanks.
Back to top
View user's profile Send private message
ervin.peters
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2003
Posts: 110
Location: Apolda, Germany

PostPosted: Mon Sep 17, 2007 9:01 am    Post subject: Route target in Kernel config? Reply with quote

Maybe you'd like to look at the kernel config for target route and enable it.

But whats your reason to try that?

Usually you'll have point to point connection, if you duplicate them you'll get one point to two point connections which will confuse all involved endpoints.

If you'd like to stream multimedia to several clients look for the according multicast technics and streaming servers.

ervin
Back to top
View user's profile Send private message
l_bratch
Guru
Guru


Joined: 08 Feb 2005
Posts: 494
Location: Jersey

PostPosted: Mon Sep 17, 2007 10:14 am    Post subject: Reply with quote

Thanks for your reply.

I've looked in the kernel config already but cannot see the route target, do you know where it is?

My reason is just for fun actually - I am trying to see all JPEG traffic that passes through my internet connection, which is why I want to forward all HTTP traffic from my router to my PC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum