[zorp-hu] netmask problema

Gabor HALASZ zorp-hu@lists.balabit.hu
Mon, 29 Nov 2004 14:25:03 +0100


Nov 29 14:08:23 k8dm firewall[1070]: zorp version 2.0.9 starting up
Nov 29 14:08:23 k8dm firewall[1070]: (noname/nosession): Zone(Wan):=20
outbound service=3DHttp_S
Nov 29 14:08:23 k8dm firewall[1070]: (noname/nosession): Zone(Wan):=20
outbound service=3DHttpS_S
Nov 29 14:08:23 k8dm firewall[1070]: (noname/nosession): Zone(Server):=20
inbound service=3DHttp_S
Nov 29 14:08:23 k8dm firewall[1070]: (noname/nosession): Zone(Server):=20
inbound service=3DHttpS_S
Nov 29 14:08:23 k8dm firewall[1070]: (Log thread): Traceback (most=20
recent call last):
Nov 29 14:08:23 k8dm firewall[1070]: (Log thread):   File=20
"/etc/zorp/firewall.py", line 13, in ?
Nov 29 14:08:23 k8dm firewall[1070]: (Log thread):     outbound_services=3D=
[])
Nov 29 14:08:23 k8dm firewall[1070]: (Log thread):   File=20
"/usr/share/zorp/pylib/Zorp/Zone.py", line 529, in __init__
Nov 29 14:08:23 k8dm firewall[1070]: (Log thread):=20
Zone.__init__(self, name, addr, inbound_services, outbound_services,=20
admin_parent, umbrella, InetDomain)
Nov 29 14:08:23 k8dm firewall[1070]: (Log thread):   File=20
"/usr/share/zorp/pylib/Zorp/Zone.py", line 473, in __init__
Nov 29 14:08:23 k8dm firewall[1070]: (Log thread):     self.address =3D=20
domain(addr)
Nov 29 14:08:23 k8dm firewall[1070]: (Log thread):   File=20
"/usr/share/zorp/pylib/Zorp/Domain.py", line 123, in __init__
Nov 29 14:08:23 k8dm firewall[1070]: (Log thread):     self.mask =3D=20
htonl(((1 << self.mask_bits) - 1) << (32 - self.mask_bits))
Nov 29 14:08:23 k8dm firewall[1070]: (Log thread): OverflowError: signed =

integer is greater than maximum

A konfig vonatkozo resze:

from Zorp.Core import *
from Zorp.Http import *
from Zorp.Pssl import *

Zorp.firewall_name =3D 'zorp@firewall.hu'

InetZone("Wan", "0.0.0.0/0",
     inbound_services=3D[],
     outbound_services=3D["Http_S", "HttpS_S"])

InetZone("Server", "1.2.3.0/24",
     inbound_services=3D["Http_S", "HttpS_S"],
     outbound_services=3D[])

Ez a 13. sor.

k8dm:/etc/zorp# dpkg -l | grep zorp
ii  libzorp2       2.0.9-8        The runtime library of Zorp
ii  libzorpll      2.0.26.24-5    Low level library functions for Zorp
ii  zorp           2.0.9-8        An advanced protocol analyzing firewall=

ii  zorp-modules   2.0.9-8        Default proxy modules for Zorp

k8dm:/etc/zorp# uname -a
Linux k8dm 2.6.9-evms-amd64-smp #1 SMP Thu Nov 25 10:57:27 UTC 2004=20
x86_64 GNU/Linux

(abban az esetben is ugyanez a hiba, ha egy m=E1sik hoston m=FBk=F6d=F5=20
konfiggal pr=F3b=E1lom)

--=20
Gabor HALASZ <halasz.g@freemail.hu>