Re: Wrong route reserved

Theo Schlossnagle <[email protected]> Thu, 15 Nov 2007 09:06:26 -0500
Newsgroups gmane.comp.apache.mod-wackamole.general
Message-ID <[email protected]>
On Nov 15, 2007, at 8:56 AM, Bj=F6rn Keil wrote:

> Hello,
>
> I am having a problem with a route being reserved at the startup of a
> two servers that should *not* be reserved. It's a debian Linux system
> and didn't make any trouble before wackamole was installed. Now, every
> time it starts up it adds a route for 192.168.0.0/24 to be routed
> directly to the remote hosts, which is not possible. Correct would =20
> be to
> only route 192.168.0.160/27 directly. This behavior causes the servers
> to not be accessible in the office I work at, even though it does work
> from pretty much everywhere else.
>
> Could anyone tell my why wackamole does this and how I may keep it =20
> from
> doing so? This wrong routing table entry is really causing a lot =20
> trouble
> here in the office.
>
> Bj=F6rn Keil
>
> Here is my wackamole config file (note that the first two bytes of the
> IP addresses have been changed):
>
> Spread =3D 4803
> SpreadRetryInterval =3D 5s
> Group =3D wack1
> Control =3D /var/run/wackamole/wackamole.it
> Prefer { eth0:10.0.78.230/27 eth0:10.0.78.240/27 eth0:10.0.78.243/27
> eth0:10.0.78.245/27 }
> VirtualInterfaces {
>        { eth0:10.0.78.230/27 eth0:10.0.78.240/27 eth0:10.0.78.243/27
> eth0:10.0.78.245/27 }
>        { eth0:10.0.78.227/27 eth0:10.0.78.241/27 eth0:10.0.78.244/27
> eth0:10.0.78.246/27 }
> }
>
> Arp-Cache =3D 90s
>
> Notify {
>        eth0:10.0.78.225/32
>        arp-cache
> }
>
> balance {
>        AcquisitionsPerRound =3D all
>        interval =3D 4s
> }
>
> mature =3D 5s


You have 192.168..x.y in your verbiage, but 10.0.78.y in your config.  =20=

The inconsistency is a bit confusing -- if you want to change the IPs, =20=

make sure to change them consistently everywhere.

If you have, then:

Note that you must have a non-wackamole managed IP address on on each =20=

subnet you intend to have wackamole managed IPs on.  This "management" =20=

IP will maintain the network interface in the kernel including the =20
routing table.

Also, in the VirtualInterfaces section, try putting /32 as your =20
netmask.  Many systems require that the first IP on an interface be =20
correctly netmasked, but all additional logical interfaces must be =20
brought up with a 255.255.255.255 (or /32) netmask.  This is true on =20
FreeBSD and some Linuxes as well.

Wackamole has no routing code in it whatsoever, so the only reason the =20=

routing on the box would change is if you don't have a management IP =20
on the wackamole-managed subnets.  This would cause wackamole to drop =20=

all IPs at startup and them bring them back up -- loosing the route =20
information (which is why a management IP is required).

Hope this helps -- it's a guess.

--
Theo Schlossnagle
Esoteric Curio -- http://lethargy.org/
OmniTI Computer Consulting, Inc. -- http://omniti.com/