lkml.org 
[lkml]   [2000]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPlease help with iproute2 + nat
Hello!

Please help me to solve my task with linux-2.2.x + iproute2 + nat.

I have a server which connect to world via PPP interface.

Server have several _real_ IP addresses aliased on this PPP interface.

Next, I have host X.X.X.X (somewhere in the world). When I access to this
host, _SOURCE_IP_ is MAIN IP address of PPP interface.

I need to access to this host X.X.X.X from all my IP address (by circle, for
example).

For example, I want to remap some unexisten addresses to host X.X.X.X with
replacing the SOURCE IP address like a this:

When I connect to Z.Z.Z.1, the destination ip changes to X.X.X.X, and source
IP changes to MAIN IP address of my interface.

When I connect to Z.Z.Z.2, the destination ip changes to X.X.X.X, and source
IP changes to SECOND IP address of my interface.

When I connect to Z.Z.Z.3, the destination ip changes to X.X.X.X, and source
IP changes to 3th IP address of my interface.

...

Please mail me if you can help.

p.s. Sorry for bad English...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.024 / U:1.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site