Skip to contentSkip to conversation

How can i send the same traffic to 2 different interface

LARTC [email protected] 3 participants 4 messages Feb 16, 2005 – Feb 17, 2005

lore
Share & tools
lore
#0 lore raw

Hi! I am making some tests here, and i wanna miror all the traffic going to a ip from one interface to another ip. example:
all packets going to 64.223.167.100 should be transmitted by ppp0 to internet and by eth2 to the adress 192.168.1.100. Someone know how can i do it using iptables or ip route/ip rule?
Tks in advance!
Fernando Favero
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 7 lines · On Wed, 16 Feb 2005 15:05:19 -0300 (EST), [email protected]…

Hi! I am making some tests here, and i wanna miror all the traffic going to a ip from one interface to another ip. example:
all packets going to 64.223.167.100 should be transmitted by ppp0 to internet and by eth2 to the adress 192.168.1.100. Someone know how can i do it using iptables or ip route/ip rule?

Correct if I'm wrong, I'm still learning. Wouldn't this break IP at protocol level? The host 192.168.1.100 will disregard the traffic because it's not the intended destination... I'm not sure but it seems impossible.

HTH

Quoted 6 lines

Tks in advance!
Fernando Favero
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Signature · 6 lines
Kenneth Kalmer
[email protected]
http://opensourcery.blogspot.com
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to [email protected]

Hi!

Quoted 10 lines · Kenneth Kalmer
Quoted 7 lines · On Wed, 16 Feb 2005 15:05:19 -0300 (EST), [email protected]…

Hi! I am making some tests here, and i wanna miror all the traffic going to a ip from one interface to another ip. example:
all packets going to 64.223.167.100 should be transmitted by ppp0 to internet and by eth2 to the adress 192.168.1.100. Someone know how can i do it using iptables or ip route/ip rule?

-j MIRROR

Quoted 4 lines

Correct if I'm wrong, I'm still learning. Wouldn't this break IP at protocol level? The host 192.168.1.100 will disregard the traffic because it's not the intended destination... I'm not sure but it seems impossible.

Yes, you are right too. See this thread:
http://lists.debian.org/debian-security/2001/11/msg00152.html

Maybe he would like to sniff in the traffic.

Signature · 5 lines
Udv,
   Nandor
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw
In reply to [email protected]
Quoted 14 lines · Tóth Nándor

Hi!

Quoted 10 lines · Kenneth Kalmer
Quoted 7 lines · On Wed, 16 Feb 2005 15:05:19 -0300 (EST), [email protected]…

Hi! I am making some tests here, and i wanna miror all the traffic going to a ip from one interface to another ip. example:
all packets going to 64.223.167.100 should be transmitted by ppp0 to internet and by eth2 to the adress 192.168.1.100. Someone know how can i do it using iptables or ip route/ip rule?

Quoted 1 line

-j MIRROR

Will send the packets back to the destination, not down another route...

Quoted 8 lines
Quoted 5 lines

Correct if I'm wrong, I'm still learning. Wouldn't this break IP at protocol level? The host 192.168.1.100 will disregard the traffic because it's not the intended destination... I'm not sure but it seems impossible.

Yes, you are right too. See this thread:
http://lists.debian.org/debian-security/2001/11/msg00152.html

This is good reading, thanks!

Quoted 10 lines

Maybe he would like to sniff in the traffic.

--
Udv,
Nandor
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Signature · 6 lines
Kenneth Kalmer
[email protected]
http://opensourcery.blogspot.com
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/