Networking Forums

Networking Forums > Computer Networking > Linux Networking > linux bypass loopback - got to dead end

Reply
Thread Tools Display Modes

linux bypass loopback - got to dead end

 
 
ronybaryo@gmail.com
Guest
Posts: n/a

 
      10-31-2005, 03:38 PM
Hi,

I want to force tcp traffic to go out even that the dest ip
is on the same machine.

I have eth0 with ip 10.56.211.89 and eth1 with 10.56.211.90 (for
example).
I want to open socket from 10.56.211.89 to 10.56.211.90 and bypass the
loopback, I mean that the packet will leave the linux on one interface
and reach the second.

so far couldn't do it.
any idea will be appreciated.

Thanks

Rony

 
Reply With Quote
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      10-31-2005, 06:37 PM
(E-Mail Removed) wrote:
> Hi,
>
> I want to force tcp traffic to go out even that the dest ip
> is on the same machine.
>
> I have eth0 with ip 10.56.211.89 and eth1 with 10.56.211.90 (for
> example).
> I want to open socket from 10.56.211.89 to 10.56.211.90 and bypass the
> loopback, I mean that the packet will leave the linux on one interface
> and reach the second.
>
> so far couldn't do it.
> any idea will be appreciated.


You won't be able to do it without seriously
crippling the IP and ARP code in the kernel.

Even if you succeed in routing to the interface,
you won't get ARP working properly for external
loopback.

Would you please tell why?

In Rubini's book Linux Device Drivers there is
a pseudo-network driver capable of semi-external
loopback, but even that won't use real physical
Ethernet interfaces.

--

Tauno Voipio
tauno voipio (at) iki fi
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      10-31-2005, 07:27 PM
In comp.os.linux.networking (E-Mail Removed):
> Hi,


> I want to force tcp traffic to go out even that the dest ip
> is on the same machine.


> I have eth0 with ip 10.56.211.89 and eth1 with 10.56.211.90 (for
> example).
> I want to open socket from 10.56.211.89 to 10.56.211.90 and bypass the
> loopback, I mean that the packet will leave the linux on one interface
> and reach the second.


> so far couldn't do it.
> any idea will be appreciated.


No way without modifying the source, the kernel is clever enough
to mention the device/IP is local and won't route a single packet
through the wire as you found out.

Should be easier to put a second (old) box in service.

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 144: Too few computrons available.
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      10-31-2005, 09:18 PM
Tauno Voipio <(E-Mail Removed)> writes:

>(E-Mail Removed) wrote:
>> Hi,
>>
>> I want to force tcp traffic to go out even that the dest ip
>> is on the same machine.


I have no idea what this means. Go out where? The purpose of IP addresses
is to deliver packets to the destination. Not to take some tour of the
world.

>>
>> I have eth0 with ip 10.56.211.89 and eth1 with 10.56.211.90 (for
>> example).
>> I want to open socket from 10.56.211.89 to 10.56.211.90 and bypass the
>> loopback, I mean that the packet will leave the linux on one interface
>> and reach the second.


No idea what this means. Are you not receiving the packets?

>>
>> so far couldn't do it.
>> any idea will be appreciated.


>You won't be able to do it without seriously
>crippling the IP and ARP code in the kernel.


>Even if you succeed in routing to the interface,
>you won't get ARP working properly for external
>loopback.


>Would you please tell why?


>In Rubini's book Linux Device Drivers there is
>a pseudo-network driver capable of semi-external
>loopback, but even that won't use real physical
>Ethernet interfaces.


>--


>Tauno Voipio
>tauno voipio (at) iki fi

 
Reply With Quote
 
ronybaryo@gmail.com
Guest
Posts: n/a

 
      11-01-2005, 01:58 PM
Hi,

I have kind of layer 7 traffic generator based on linux. I can (for
example) generate 1000 (concurrency) ftp downloads in wanted rate.
Currenly I need 2 machines to run it. one holds the traffic generator
application and the second run the ftp server. I can't insatll both
application on the same machine bacause then the traffic run on the
loopback and there is no use
for my application.

my goal is to be able to run both servers and application on the same
machine.

Rony

 
Reply With Quote
 
ronybaryo@gmail.com
Guest
Posts: n/a

 
      11-01-2005, 02:06 PM
>
>No way without modifying the source, the kernel is clever enough
>to mention the device/IP is local and won't route a single packet
>through the wire as you found out.
>
>Should be easier to put a second (old) box in service.


can someone direct me to information about how can I change the kernel
to do this?

In addtion to "Rubini's book Linux Device Drivers"

Thanks a lot.
--

 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      11-01-2005, 05:28 PM
(E-Mail Removed) wrote:
>>No way without modifying the source, the kernel is clever enough
>>to mention the device/IP is local and won't route a single packet
>>through the wire as you found out.
>>
>>Should be easier to put a second (old) box in service.

>
>
> can someone direct me to information about how can I change the kernel
> to do this?


If you don't know, you - for sure - should not attempt it.
The change will break pretty many places in the kernel.

> In addtion to "Rubini's book Linux Device Drivers"


Read the sources, and understand what is going on
before changing anything.

The change hits both the IP layer and ARP - nothing to
do with the drivers directly.

For traffic tests, get the other host as test target.

--

Tauno Voipio
tauno voipio (at) iki fi
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: problem with ethernet loopback test using loopback plug/stub: receiving socket not seeing packet. Rick Jones Linux Networking 10 08-22-2010 07:17 PM
Sendmail is not snding mail but giving dead.letter. What is dead.letter? gsatnoida@gmail.com Linux Networking 1 02-10-2007 04:04 PM
Want to bypass AOL ann Wireless Internet 7 01-18-2006 08:01 AM
Bypass relay? Robin Faichney Broadband 4 10-07-2004 09:45 AM
linux vpn tunnel to bypass port blocking chris Linux Networking 0 01-20-2004 06:40 AM



1 2 3 4 5 6 7 8 9 10 11