[zorp-hu] 0.5.25 /ftp gond
Balazs Scheidler
bazsi@balabit.hu
Tue, 7 Nov 2000 10:43:48 +0100
> >
> > 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
>
igen, az a zorp-admin.sdw jo regi. hm... kirakom a .26-ost, abban mar az uj
doksi van. Legyen inkabb csak ennyi:
class BIFtp(Ftp.FtpProxyAllow):
def startUp(self):
self.NAT = 1
self.fw_s_data_address="212.40.64.7"
self.fw_c_data_address="192.168.0.8"
self.internal_server = 0
self.max_password_length = 128
--
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
url: http://www.balabit.hu/pgpkey.txt