View previous topic :: View next topic |
Author |
Message |
l_bratch Guru
Joined: 08 Feb 2005 Posts: 494 Location: Jersey
|
Posted: Sun Sep 16, 2007 9:19 pm Post subject: Using iptables to duplicate traffic |
|
|
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 |
|
|
ervin.peters Tux's lil' helper
Joined: 20 Aug 2003 Posts: 110 Location: Apolda, Germany
|
Posted: Mon Sep 17, 2007 9:01 am Post subject: Route target in Kernel config? |
|
|
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 |
|
|
l_bratch Guru
Joined: 08 Feb 2005 Posts: 494 Location: Jersey
|
Posted: Mon Sep 17, 2007 10:14 am Post subject: |
|
|
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 |
|
|
|