Linux Netfilter discussions
 help / color / mirror / Atom feed
* Netmap on a single host?
@ 2011-01-10 15:35 Martin Fandel
  2011-01-10 16:22 ` Marek Kierdelewicz
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Fandel @ 2011-01-10 15:35 UTC (permalink / raw)
  To: netfilter

Hi,

does the module NETMAP work on a single host environment? I have the following environment. It works perfectly by using two NETMAP systems. Here is an little connection flow overview:

Endhost 1: 10.10.10.10/32 <-> Gateway 1: 10.10.10.1/32 <---> Line Gateway 1: 192.168.1.1/32 <---> Line Gateway 2: 192.168.1.2/32 <---> Gateway 2: 10.10.10.1/32 <-> Endhost 2: 10.10.10.10/32

If Enhost 1 want to connect to Endhost 2, the host connects to 10.30.10.0/24, which is the netmap'ped net for Gateway 2. If Endhost 2 wants to connect to Endhost 1, the host connects to 10.20.10.0/24, which is the netmap'ped net for Gateway 1. 

The NETMAP solution works, but I can't migrate the two gateway hosts to one single host. Does anybody know how to manage this? I'm a little bit confused. I've it tried this way, but I can't get it working:

SingleHostGateway:

eth0 > vlan trunk to cisco
eth0.1 > vlan 1 for endhost 1 with the ip 10.10.10.1
eth0.2 > vlan 2 for endhost 2 with the ip 10.10.10.1

If I'm applying the iptables-Rules to this construct, it seems that it is not possible to set the Rules for single interfaces?!? Or that the Linux Routing can't do it.

Maybe someone of you guys can help me? That would be very nice.

Thanks a lot!

Regards,

Martin
-- 
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit 
gratis Handy-Flat! http://portal.gmx.net/de/go/dsl

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

* Re: Netmap on a single host?
  2011-01-10 15:35 Netmap on a single host? Martin Fandel
@ 2011-01-10 16:22 ` Marek Kierdelewicz
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Kierdelewicz @ 2011-01-10 16:22 UTC (permalink / raw)
  To: Martin Fandel; +Cc: netfilter

Hi,

>If I'm applying the iptables-Rules to this construct, it seems that it
>is not possible to set the Rules for single interfaces?!? Or that the
>Linux Routing can't do it.

You can use Linux Containers to have two separate network stacks on one
box. It'd allow what you want to do.

http://lxc.sourceforge.net/
http://www.ibm.com/developerworks/linux/library/l-lxc-containers/
http://en.opensuse.org/LXC
http://wiki.archlinux.org/index.php/Linux_Containers
http://nigel.mcnie.name/blog/a-five-minute-guide-to-linux-containers-for-debian
http://sunoano.name/ws/public_xhtml/linux_containers.html
http://sysadmin-cookbook.rot13.org/#lxc
http://code.google.com/p/coreemu/wiki/Namespaces

best regards,
Marek Kierdelewicz

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

end of thread, other threads:[~2011-01-10 16:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-10 15:35 Netmap on a single host? Martin Fandel
2011-01-10 16:22 ` Marek Kierdelewicz

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