Current time: 11-29-2024, 10:40 PM Hello There, Guest! (LoginRegister)


Post Reply 
No log in ProFTPd 1.3 ??
Author Message
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #1
No log in ProFTPd 1.3 ??
Hello,

i checked the ticket #330 Traffic usage & Disk usage --> 0 (http://www.isp-control.net/ispcp/ticket/330)

The FTP Traffic is still "0".
I saw that there is no TransferLog set in the config for Proftpd 1.3
Code:
<Global>
  RootLogin                             off
  # proFTPd >= 1.3: change log dirs to /var/log/proftpd
  TransferLog                   /var/log/proftpd/
  ExtendedLog                   /var/log/proftpd/ftp_traff.log read,write traff
  PathDenyFilter                "\.quota$"
</Global>

But in the Version for 1.2 is one (xferlog)

Code:
<Global>
  RootLogin                             off
  # proFTPd >= 1.3: change log dirs to /var/log/proftpd
  TransferLog                   /var/log/xferlog
  ExtendedLog                   /var/log/ftp_traff.log read,write traff
  PathDenyFilter                "\.quota$"
</Global>

Perhaps this could be the Problem, that there is no Traffic on FTP ?!

Greez BeNe
06-06-2007 09:12 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: No log in ProFTPd 1.3 ??
This is possible.

Well the traffic is recorded but maybe the script does not look in the right place...

BTW: in the original (debian) proftp.conf we have theese two lines:

TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log

But my files haven't changed since I installed ispcp (except of ftp_traff.log)...

/Joximu
(This post was last modified: 06-06-2007 11:37 PM by joximu.)
06-06-2007 11:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #3
RE: No log in ProFTPd 1.3 ??
Mhhh...
I added SSL in ProFTPD and set a own Log for SSL.
There are some entry´s in it.

After set "xferlog" in the proftpd.conf i have also a content in it

Code:
/var/log/proftpd# ls -l
insgesamt 16
-rw-r----- 1 root adm     0 2007-03-01 05:52 controls.log.0
-rw-r----- 1 root adm     0 2007-03-01 05:52 controls.log.new
-rw------- 1 root root 5375 2007-06-06 10:27 ftp_ssl.log
-rw-r--r-- 1 root root  206 2007-06-06 10:29 ftp_traff.log
-rw-r----- 1 root adm     0 2007-03-01 05:52 proftpd.log.0
-rw-r----- 1 root adm     0 2007-03-01 05:52 proftpd.log.new
-rw-r--r-- 1 root root  925 2007-06-06 10:29 xferlog
-rw-r----- 1 root adm     0 2007-03-01 05:52 xferlog.0
-rw-r----- 1 root adm     0 2007-03-01 05:52 xferlog.new
-rw-r--r-- 1 root root    0 2007-03-01 05:52 xferreport
-rw-r----- 1 root adm     0 2007-03-01 05:52 xferreport.0
-rw-r----- 1 root adm     0 2007-03-01 05:52 xferreport.new
06-06-2007 11:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: No log in ProFTPd 1.3 ??
You're right.

At least
TransferLog /var/log/proftpd/xferlog

should be there and I'd also suggest to put
SystemLog /var/log/proftpd/proftpd.log
in the config (outside of [global] - otherwise proftpd won't load...)

Ticket?
06-07-2007 06:26 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: No log in ProFTPd 1.3 ??
Yes! Ticket
http://www.isp-control.net/ispcp/ticket/373
06-07-2007 06:30 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: No log in ProFTPd 1.3 ??
Fine - thank you! Smile
06-08-2007 12:28 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #7
RE: No log in ProFTPd 1.3 ??
fixed
06-08-2007 08:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: No log in ProFTPd 1.3 ??
Thank you RatS
06-08-2007 09:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #9
RE: No log in ProFTPd 1.3 ??
I will test it today...
06-08-2007 03:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #10
RE: No log in ProFTPd 1.3 ??
So, the log is now there and i have a conent in it:
Code:
/var/log/proftpd# ls -l
insgesamt 8
-rw-r----- 1 root adm    0 2007-03-01 05:52 controls.log.0
-rw-r----- 1 root adm    0 2007-03-01 05:52 controls.log.new
-rw-r--r-- 1 root root  90 2007-06-08 05:58 ftp_traff.log
-rw-r----- 1 root adm    0 2007-03-01 05:52 proftpd.log.0
-rw-r----- 1 root adm    0 2007-03-01 05:52 proftpd.log.new
-rw-r--r-- 1 root root 456 2007-06-08 05:58 xferlog
-rw-r----- 1 root adm    0 2007-03-01 05:52 xferlog.0
-rw-r----- 1 root adm    0 2007-03-01 05:52 xferlog.new
-rw-r--r-- 1 root root   0 2007-03-01 05:52 xferreport
-rw-r----- 1 root adm    0 2007-03-01 05:52 xferreport.0
-rw-r----- 1 root adm    0 2007-03-01 05:52 xferreport.new

Here is the ftp_traf.log
Code:
cat ftp_traff.log
1323950 bene@mydomain.de
1718634 bene@mydomain.de
4366336 bene@mydomain.de

And the xferlog:
Code:
cat xferlog
Fri Jun  8 05:58:14 2007 5 217.243.XXX.XXX 1323950 /var/www/virtual/mydomain.de/htdocs/Abfrage3.xls b _ i r bene@mydomain.de ftp 0 * c
Fri Jun  8 05:58:23 2007 7 217.243.XXX.XXX 1718634 /var/www/virtual/mydomain.de/htdocs/EscaladeUG7000-122003.pdf b _ i r bene@mydomain.de ftp 0 * c
Fri Jun  8 05:58:50 2007 18 217.243.XXX.XXX 4366336 /var/www/virtual/mydomain.de/htdocs/Kundenstatistik.mdb b _ i r bene@mydomain.de ftp 0 * c

But FTP is in the Domainstistic still "0".Maybe the wrong logfiles or path is used.
Since Proftpd 1.3 the log is under "/var/log/proftpd/" and not under "/var/log/".
06-08-2007 04:36 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)