[zorp-hu] 0.5.25 /ftp gond

Szucs Tibor robit@bolyrt.hu
Tue, 7 Nov 2000 10:38:33 +0100 (CET)


> 
> Meg tudod mutatni a BIFtp event handler class-at?
> 

az egesz konfig a zorp-admin.sdw (jul 31) bol lett kivagva
es adaptalva

class BIFtp(Ftp.FtpProxy):
        def startUp(self):
                self.command_accept = 0x00000000
                self.NAT = 1
                self.fw_s_data_address="212.40.64.7"
                self.fw_c_data_address="192.168.0.8"

        def config(self):
                self.command_accept = 0x00000000

        def shutDown(self):
                pass
        def user(self, dir, uname):
                return Z_ACCEPT

        def password(self, dir, uname):
                return Z_ACCEPT

        def nontransparent(self, dir, dst, user, passw):
                return Z_ACCEPT

        def userAUTH(self, dir, uname):
                return Z_ACCEPT

        def quit(self, dir):
                return Z_ACCEPT

        def bounceCheck(self, dir, hashv, comm, param):
                return Z_ACCEPT

        def portCommand(self, dir, hashv, comm, param, ip, port):
                self.FtpCommandENABLE("LIST")
                return Z_ACCEPT

        def pasvAnswer(self, dir, line, ip, port):
                return Z_ACCEPT

        def answer(self, dir, line):
                return Z_ACCEPT

        def transferCommand(self, dir, hashv, comm, param):
                return Z_ACCEPT

        def dataTransfer(self, dir, hashv, comm, param):
                return Z_ACCEPT

        def directoryChange(self, dir, hashv, comm, param):
                return Z_ACCEPT

        def directoryManipulation(self, dir, hashv, comm, param):
                return Z_ACCEPT

        def siteCommand(self, dir, hashv, comm, param):
                return Z_ACCEPT

        def mailCommand(self, dir, hashv, comm, param):
                return Z_REJECT

        def miscCommand(self, dir, hashv, comm, param):
                return Z_ACCEPT

        def generalCommand(self, dir, hashv, comm, param):
                return Z_ACCEPT

        def unknownCommand(self, dir, comm, param):
                return Z_ACCEPT

        def sendABOR(self, dir):
                return Z_ACCEPT

        def sendlog(self, source, msg):
                Zorp.debug(0, "FTPElog: %i %s" % (source, msg))
                return Z_ACCEPT

        def prepareDATA(self, ip):
                return Z_ACCEPT;

        def startDATA(self, dir, fst_mode, fst_loc_addr, fst_loc_port,
                fst_rem_addr, fst_rem_port, snd_mode, snd_loc_addr,
                snd_loc_port, snd_rem_addr, snd_rem_port):

                def convertSockAddr(addr, port):
                        if addr == '':
                                return None
                        else:
                                return SockAddr.SockAddrInet(addr, port)

                FtpDataConnect(fst_mode,
                        convertSockAddr(fst_loc_addr, fst_loc_port),
                        convertSockAddr(fst_rem_addr, fst_rem_port),
                        snd_mode,
                        convertSockAddr(snd_loc_addr, snd_loc_port),
                        convertSockAddr(snd_rem_addr, snd_rem_port))
                return Z_ACCEPT


irtad hogy elerheto lesz a zorp-admin.sdw frissitet valtozata merre lehet
megtalalni?

ill szvesen megneznek komplett mukodo konfigot ha lehet 

Udv	Robit