public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Network routing issue
@ 2004-08-10 19:48 Luesley, William
  2004-08-10 21:54 ` David Greaves
  2004-08-10 23:14 ` Paul Jakma
  0 siblings, 2 replies; 7+ messages in thread
From: Luesley, William @ 2004-08-10 19:48 UTC (permalink / raw)
  To: 'Paul Jakma'; +Cc: 'linux-kernel@vger.kernel.org'



>> In order to help testing, I have been asked to place a third machine
between
>> these two which will be capable of intercepting and modifying any
messages.

>> My initial plan was to have a device which could mimic both ends of the
>> connection (as I already have code to do this); with each connection
being
>> on a separate NIC, leading to a setup as shown below:
>>
>>          A ------------ C  C  ---------- B
>> 192.168.1.1    192.168.1.2  192.168.1.1   192.168.1.2
>>                    (eth0)  (eth1)

>> Can I use IP Tables, how?
>>
>> Or, am I on totally the wrong track?

>You're on the wrong track. C doesnt even need IP addresses, two 
>choices:

>- C as bridge and use ebtables (C doesnt even need addresses 
>theoretically)

>- C as router, use iptables. C needs one or more addresses which must 
>be different.

My problem is I need to modify the messages before passing them on.  As far
as I'm aware, bridges don't do that - but then I'm a newbie when it comes to
bridging!

********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: Network routing issue
@ 2004-08-10 19:15 Luesley, William
  0 siblings, 0 replies; 7+ messages in thread
From: Luesley, William @ 2004-08-10 19:15 UTC (permalink / raw)
  To: 'root@chaos.analogic.com'; +Cc: 'linux-kernel@vger.kernel.org'



> `ifconfig lo down` should force your stuff to go through the
> ethernet for testing.

Thanks for the reply but I'm looking for a more 'permanent' solution.
Knocking out the loopback device has a number of consequences that kill my
program (and KDE!).


Will

********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Network routing issue
@ 2004-08-10 17:45 Luesley, William
  2004-08-10 18:46 ` Paul Jakma
  2004-08-10 18:54 ` Richard B. Johnson
  0 siblings, 2 replies; 7+ messages in thread
From: Luesley, William @ 2004-08-10 17:45 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'


I have two devices setup as follows:


          A --------------- B
192.168.1.1                 192.168.1.2


The machines open a number of TCP and UDP ports with which to communicate.
In order to help testing, I have been asked to place a third machine between
these two which will be capable of intercepting and modifying any messages.
My initial plan was to have a device which could mimic both ends of the
connection (as I already have code to do this); with each connection being
on a separate NIC, leading to a setup as shown below:

          A ------------ C  C  ---------- B
192.168.1.1    192.168.1.2  192.168.1.1   192.168.1.2
                    (eth0)  (eth1)

The obvious problem with this is that as C implements both ends of the
interface, any messages it sends are routed internally, rather than being
sent to the correct host.

I thought it would be possible to correct this by specifying the host routes
using the route command, i.e. setting a route to 192.168.1.1 via device eth0
and to 192.168.1.2 via eth1, therefore stopping the internal routing from
occurring. Even with these routes setup, the messages are still routed
internally.



Can the route somehow be forced?

If not, is there a way to stop the internal routing, preferably without a
code change to the kernel (if it is a code change - can someone point me
towards the file)?

Can I use IP Tables, how?

Or, am I on totally the wrong track?


Thanks for peoples time spent reading and looking into this.







********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-08-10 23:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-10 19:48 Network routing issue Luesley, William
2004-08-10 21:54 ` David Greaves
2004-08-10 23:14 ` Paul Jakma
  -- strict thread matches above, loose matches on Subject: below --
2004-08-10 19:15 Luesley, William
2004-08-10 17:45 Luesley, William
2004-08-10 18:46 ` Paul Jakma
2004-08-10 18:54 ` Richard B. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox