[zorp-hu] udp receiver Cannot assign requested address

Kosa Attila zsiga at kosaek.hu
2009. Május. 27., Sze, 13:40:43 CEST


On Thu, Feb 12, 2009 at 07:38:13PM +0100, Kosa Attila wrote:
> 
> Felraktam a 3.1.15-os verziot, es mukodik minden, amit szerettem
> volna (beleertve az ftp-t, es a cimforditast is).

Most viszont beleszaladtam egy problemaba, amely kisertetiesen
hasonlit arra, amit az uj verzio megoldott (a hibauzenet
ugyanaz). Tehat zorp 3.1.15, tproxy 4.0.6, sajat kernel, Etch. A
konfig a kovetkezo:

from Zorp.Core import *
from Zorp.Plug import *

Zorp.firewall_name = 'zorp-udp at x.hu'

InetZone("intranet", "192.168.0.0/24",
    inbound_services=[],
    outbound_services=["udp_plug"])

InetZone("internet", "0.0.0.0/0",
    inbound_services=["udp_plug"],
    outbound_services=[])

class UDPPlug(PlugProxy):
        def config(self):
                self.copy_to_client = true
                self.copy_to_server = true
                self.packet_stats_interval_time = 0
                self.timeout = 60000
                self.shutdown_soft = false
                self.buffer_size = 1500
                self.secondary_sessions = 10

def zorp_udp():
        Service("udp_plug", UDPPlug, TransparentRouter(forge_addr=FALSE))

        Receiver(SockAddrInet("192.168.0.254", 62443), "udp_plug")

A hibauzenet pedig az alabbi (debug level 10):

May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Starting up; verbose_level='10', version='3.1.15', startup_id='1243423820'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): System dependant init; sysdep_tproxy='tproxy40'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (szig/listen): Start to listen; fd='10', address='AF_UNIX(/var/run/zorp/zorpctl.zorp_udp)'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (szig/thread): thread starting;
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Outbound service; zone='intranet', service='udp_plug'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Inbound service; zone='internet', service='udp_plug'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (dsp/dispatch:0): Dispatcher on address; local='SA(proto=2,addr=AF_INET(192.168.0.254:62443))', prio='100'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (dsp/dispatch:0): Start to listen; fd='12', address='AF_INET(192.168.0.254:62443)'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (stderr): thread starting;
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Interface added; if_index='1', if_name='lo', if_flags='73'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Interface added; if_index='2', if_name='eth0', if_flags='4163'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Interface added; if_index='3', if_name='eth1', if_flags='4163'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Interface added; if_index='4', if_name='eth2', if_flags='4163'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Interface added; if_index='5', if_name='dummy0', if_flags='195'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Interface added; if_index='11', if_name='ppp0', if_flags='4305'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Address added to interface; if_name='lo', if_addr='127.0.0.1'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Address added to interface; if_name='eth1', if_addr='192.168.0.254'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Address added to interface; if_name='eth2', if_addr='192.168.2.254'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Address added to interface; if_name='dummy0', if_addr='192.168.200.254'
May 27 13:30:20 fw zorp/zorp_udp[25266]: (nosession): Address added to interface; if_name='ppp0', if_addr='212.108.240.4'
May 27 13:30:22 fw zorp/zorp_udp[25266]: (nosession): accept() failed; fd='12', error='Cannot assign requested address'
May 27 13:30:22 fw zorp/zorp_udp[25266]: (dsp/dispatch:0): Error accepting on listening dgram socket; fd='12', error='Cannot assign requested address'
May 27 13:30:22 fw zorp/zorp_udp[25266]: (dsp/dispatch:0): Incoming connection; conn=NULL
May 27 13:30:22 fw zorp/zorp_udp[25266]: (nosession): Connection denied by policy; conn='NULL'
May 27 13:30:22 fw zorp/zorp_udp[25266]: (dsp/dispatch:0): Accept count; accepts='1'
May 27 13:30:24 fw zorp/zorp_udp[25266]: (nosession): accept() failed; fd='12', error='Cannot assign requested address'
May 27 13:30:24 fw zorp/zorp_udp[25266]: (dsp/dispatch:0): Error accepting on listening dgram socket; fd='12', error='Cannot assign requested address'
May 27 13:30:24 fw zorp/zorp_udp[25266]: (dsp/dispatch:0): Incoming connection; conn=NULL
May 27 13:30:24 fw zorp/zorp_udp[25266]: (nosession): Connection denied by policy; conn='NULL'
May 27 13:30:24 fw zorp/zorp_udp[25266]: (dsp/dispatch:0): Accept count; accepts='1'
May 27 13:30:26 fw zorp/zorp_udp[25266]: (nosession): accept() failed; fd='12', error='Cannot assign requested address'
May 27 13:30:26 fw zorp/zorp_udp[25266]: (dsp/dispatch:0): Error accepting on listening dgram socket; fd='12', error='Cannot assign requested address'
May 27 13:30:26 fw zorp/zorp_udp[25266]: (dsp/dispatch:0): Incoming connection; conn=NULL
May 27 13:30:26 fw zorp/zorp_udp[25266]: (nosession): Connection denied by policy; conn='NULL'
May 27 13:30:26 fw zorp/zorp_udp[25266]: (dsp/dispatch:0): Accept count; accepts='1'
May 27 13:30:27 fw zorp/zorp_udp[25266]: Shutting down; version='3.1.15'
May 27 13:30:28 fw supervise/zorp_udp[25265]: Daemon exited gracefully, not restarting; exitcode='0'

-- 
		Udvozlettel
				    Zsiga


További információk a(z) zorp-hu levelezőlistáról