netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nat bypass
@ 2010-06-28 10:13 ratheesh k
  2010-06-28 14:02 ` Grant Taylor
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: ratheesh k @ 2010-06-28 10:13 UTC (permalink / raw)
  To: Netfilter mailing list, netdev

Hi,

  A -------> R ------->S

I have a linux machine A is connected to Linux machine R . Machine R
is having two network interfaces and acting as a router .
It has a dhcp server running  . It will assign ip in 192.168.1.0/24
subnet to all machine connected on lan side ( A is connected also in
lan side ) . Wan side of R is connected to HTTP server S . There is
also a DHCP server running on S to assign ip in 10.232.18.0/24 subnet
.  Is there any way , in which NAT should be bypassed to get ip from
DHCP server running  on S . My question is : How can A will get  an ip
from 10.232.18.0/24 pool ip .?
ebtables is an option ? How can we make it ?
Is there any other optimal way ?


Thanks,
Ratheesh

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

* Re: nat bypass
  2010-06-28 10:13 nat bypass ratheesh k
@ 2010-06-28 14:02 ` Grant Taylor
  2010-06-28 17:49 ` Anatoly Muliarski
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Grant Taylor @ 2010-06-28 14:02 UTC (permalink / raw)
  To: Mail List - Netfilter

On 06/28/10 05:13, ratheesh k wrote:
> DHCP server running  on S . My question is : How can A will get  an 
> ip from 10.232.18.0/24 pool ip .?

Bridging the (selected) traffic from your LAN to the network that the 
server is on is probably your best bet.

What you are talking about is known as a bridging router, or "brouter" 
for short.

> ebtables is an option ? How can we make it ?

You set up a brouter and bridge the traffic for the system(s) on the LAN 
that is suppose to be part of the network that the server is on and 
route the rest of the traffic.

> Is there any other optimal way ?

Short of adding a second network card to A and connecting it directly to 
the network that S is on, bridging is probably your best bet.

You will have to set up a EBTables rules to control what traffic is 
bridged verses routed.



Grant. . . .

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

* Re: nat bypass
  2010-06-28 10:13 nat bypass ratheesh k
  2010-06-28 14:02 ` Grant Taylor
@ 2010-06-28 17:49 ` Anatoly Muliarski
  2010-06-30  2:37 ` Simon Horman
  2010-06-30  9:54 ` Mart Frauenlob
  3 siblings, 0 replies; 7+ messages in thread
From: Anatoly Muliarski @ 2010-06-28 17:49 UTC (permalink / raw)
  To: netfilter

2010/6/28 ratheesh k <ratheesh.ksz@gmail.com>:
> Hi,
>
>  A -------> R ------->S
>
> I have a linux machine A is connected to Linux machine R . Machine R
> is having two network interfaces and acting as a router .
> It has a dhcp server running  . It will assign ip in 192.168.1.0/24
> subnet to all machine connected on lan side ( A is connected also in
> lan side ) . Wan side of R is connected to HTTP server S . There is
> also a DHCP server running on S to assign ip in 10.232.18.0/24 subnet
> .  Is there any way , in which NAT should be bypassed to get ip from
> DHCP server running  on S . My question is : How can A will get  an ip
> from 10.232.18.0/24 pool ip .?
> ebtables is an option ? How can we make it ?
> Is there any other optimal way ?
>

Suppose you achieve your goal and A got an IP from S pool.
But there appear another problem - what about routing?
Presumably you should track leased IP and dynamically bridge packets
to/from it - and it looks rather complicated.

-- 
Best regards
Anatoly Muliarski

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

* Re: nat bypass
  2010-06-28 10:13 nat bypass ratheesh k
  2010-06-28 14:02 ` Grant Taylor
  2010-06-28 17:49 ` Anatoly Muliarski
@ 2010-06-30  2:37 ` Simon Horman
  2010-06-30  9:24   ` ratheesh k
  2010-06-30  9:54 ` Mart Frauenlob
  3 siblings, 1 reply; 7+ messages in thread
From: Simon Horman @ 2010-06-30  2:37 UTC (permalink / raw)
  To: ratheesh k; +Cc: Netfilter mailing list, netdev

On Mon, Jun 28, 2010 at 03:43:46PM +0530, ratheesh k wrote:
> Hi,
> 
>   A -------> R ------->S
> 
> I have a linux machine A is connected to Linux machine R . Machine R
> is having two network interfaces and acting as a router .
> It has a dhcp server running  . It will assign ip in 192.168.1.0/24
> subnet to all machine connected on lan side ( A is connected also in
> lan side ) . Wan side of R is connected to HTTP server S . There is
> also a DHCP server running on S to assign ip in 10.232.18.0/24 subnet
> .  Is there any way , in which NAT should be bypassed to get ip from
> DHCP server running  on S . My question is : How can A will get  an ip
> from 10.232.18.0/24 pool ip .?
> ebtables is an option ? How can we make it ?
> Is there any other optimal way ?

Let me try and understand this.

R is routing between 192.168.1.0/24 and 10.232.18.0/24.
As A is on the 192.168.1.0/24 side of R.
But to give A an 10.232.18.0/24 address (dynamically)?

Why?


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

* Re: nat bypass
  2010-06-30  2:37 ` Simon Horman
@ 2010-06-30  9:24   ` ratheesh k
  2010-06-30 12:05     ` Stephen Clark
  0 siblings, 1 reply; 7+ messages in thread
From: ratheesh k @ 2010-06-30  9:24 UTC (permalink / raw)
  To: Simon Horman; +Cc: Netfilter mailing list, netdev

> Let me try and understand this.
>
> R is routing between 192.168.1.0/24 and 10.232.18.0/24.
> As A is on the 192.168.1.0/24 side of R.
> But to give A an 10.232.18.0/24 address (dynamically)?
>
> Why?
>

For some clients , R should act as a mere bridge , Not a router .


On Wed, Jun 30, 2010 at 8:07 AM, Simon Horman <horms@verge.net.au> wrote:
> On Mon, Jun 28, 2010 at 03:43:46PM +0530, ratheesh k wrote:
>> Hi,
>>
>>   A -------> R ------->S
>>
>> I have a linux machine A is connected to Linux machine R . Machine R
>> is having two network interfaces and acting as a router .
>> It has a dhcp server running  . It will assign ip in 192.168.1.0/24
>> subnet to all machine connected on lan side ( A is connected also in
>> lan side ) . Wan side of R is connected to HTTP server S . There is
>> also a DHCP server running on S to assign ip in 10.232.18.0/24 subnet
>> .  Is there any way , in which NAT should be bypassed to get ip from
>> DHCP server running  on S . My question is : How can A will get  an ip
>> from 10.232.18.0/24 pool ip .?
>> ebtables is an option ? How can we make it ?
>> Is there any other optimal way ?
>
> Let me try and understand this.
>
> R is routing between 192.168.1.0/24 and 10.232.18.0/24.
> As A is on the 192.168.1.0/24 side of R.
> But to give A an 10.232.18.0/24 address (dynamically)?
>
> Why?
>
>

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

* Re: nat bypass
  2010-06-28 10:13 nat bypass ratheesh k
                   ` (2 preceding siblings ...)
  2010-06-30  2:37 ` Simon Horman
@ 2010-06-30  9:54 ` Mart Frauenlob
  3 siblings, 0 replies; 7+ messages in thread
From: Mart Frauenlob @ 2010-06-30  9:54 UTC (permalink / raw)
  To: netfilter

On 28.06.2010 12:13, ratheesh k wrote:
> Hi,
>
>    A ------->  R ------->S
>
> I have a linux machine A is connected to Linux machine R . Machine R
> is having two network interfaces and acting as a router .
> It has a dhcp server running  . It will assign ip in 192.168.1.0/24
> subnet to all machine connected on lan side ( A is connected also in
> lan side ) . Wan side of R is connected to HTTP server S . There is
> also a DHCP server running on S to assign ip in 10.232.18.0/24 subnet
> .  Is there any way , in which NAT should be bypassed to get ip from
> DHCP server running  on S . My question is : How can A will get  an ip
> from 10.232.18.0/24 pool ip .?
> ebtables is an option ? How can we make it ?
> Is there any other optimal way ?

How about a VPN?
i.e. OpenVPN on S.
Clients from A become members for both networks using DHCP locally (R) 
and via VPN (S).

regards


Mart

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

* Re: nat bypass
  2010-06-30  9:24   ` ratheesh k
@ 2010-06-30 12:05     ` Stephen Clark
  0 siblings, 0 replies; 7+ messages in thread
From: Stephen Clark @ 2010-06-30 12:05 UTC (permalink / raw)
  To: ratheesh k; +Cc: Simon Horman, Netfilter mailing list, netdev

On 06/30/2010 05:24 AM, ratheesh k wrote:
>> Let me try and understand this.
>>
>> R is routing between 192.168.1.0/24 and 10.232.18.0/24.
>> As A is on the 192.168.1.0/24 side of R.
>> But to give A an 10.232.18.0/24 address (dynamically)?
>>
>> Why?
>>
>
> For some clients , R should act as a mere bridge , Not a router .
>
>
> On Wed, Jun 30, 2010 at 8:07 AM, Simon Horman<horms@verge.net.au>  wrote:
>> On Mon, Jun 28, 2010 at 03:43:46PM +0530, ratheesh k wrote:
>>> Hi,
>>>
>>>    A ------->  R ------->S
>>>
>>> I have a linux machine A is connected to Linux machine R . Machine R
>>> is having two network interfaces and acting as a router .
>>> It has a dhcp server running  . It will assign ip in 192.168.1.0/24
>>> subnet to all machine connected on lan side ( A is connected also in
>>> lan side ) . Wan side of R is connected to HTTP server S . There is
>>> also a DHCP server running on S to assign ip in 10.232.18.0/24 subnet
>>> .  Is there any way , in which NAT should be bypassed to get ip from
>>> DHCP server running  on S . My question is : How can A will get  an ip
>>> from 10.232.18.0/24 pool ip .?
>>> ebtables is an option ? How can we make it ?
>>> Is there any other optimal way ?
>>
>> Let me try and understand this.
>>
>> R is routing between 192.168.1.0/24 and 10.232.18.0/24.
>> As A is on the 192.168.1.0/24 side of R.
>> But to give A an 10.232.18.0/24 address (dynamically)?
>>
>> Why?
>>
>>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
Will dhcprelay work for you?

-- 

"They that give up essential liberty to obtain temporary safety,
deserve neither liberty nor safety."  (Ben Franklin)

"The course of history shows that as a government grows, liberty
decreases."  (Thomas Jefferson)



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

end of thread, other threads:[~2010-06-30 12:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-28 10:13 nat bypass ratheesh k
2010-06-28 14:02 ` Grant Taylor
2010-06-28 17:49 ` Anatoly Muliarski
2010-06-30  2:37 ` Simon Horman
2010-06-30  9:24   ` ratheesh k
2010-06-30 12:05     ` Stephen Clark
2010-06-30  9:54 ` Mart Frauenlob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).