DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-10-15 07:49:58

Ethereal_Dragon
Member
From: USA
Registered: 2007-02-05
Posts: 55

Syslog file...?

Is there a syslog file somewhere on the DNS by default? The only mods I have on mine are Fonz's ful_plug, and the lightppd thing....

In an effort to get FTP logging working, I killed the FTP process, and restarted it with "ftpd -L -i -o -S".

Per http://www.wu-ftpd.org/man/ftpd.html, the info should get logged in /var/log/xferlog, or to the syslog if -X is used. Well, after the process was restarted, I wasn't getting anything new in the xferlog, except for the inbound/outbound files and associated info.... Am I perhaps doing this wrong, or is there something else that needs to be done in order to have this work?  I tried to look around for the syslog, but was unsuccessful.... also, since I am a linux N00b, I am not familiar (yet) with how to use the grep command to locate files or words in files...

Thanks all!!

Last edited by Ethereal_Dragon (2007-10-15 07:50:11)


Gaming Rig: ASUS Z87-PRO (V EDITION), Intel Core i5-4590 Haswell, HyperX FURY 8GB DDR3 1866,
XFX Radeon HD 4870, SILVERSTONE DA700, Samsung 840 500Gig SSD MZ-7TD500BW, 3x WD20EARS 2 TB Green,
ASUS DRW-2014L1T (DVD), LG WH14NS40 (Blu Ray), Dell 2709W, Sony SDM-HS95P, Windows 10 Pro
The NAS Box: D-Link DNS-323, 0.1RC3 Alt-F firmware, 2x 7200.14 ST3000DM001 3TB EXT4 - NO RAID - 6 TB

Offline

 

#2 2007-10-15 19:32:28

craft
Member
From: Budapest, Hungary
Registered: 2007-06-14
Posts: 122
Website

Re: Syslog file...?

Right now I'm playing with this ftp logging features.


Here is my solution for the ftp log :

first command :

syslogd -O /web/hi_mom.log


and after this, start the pure-ftpd service :

pure-ftpd -H



The best thing -> you can access this log on the webpage of the DNS-323 : http://dns323_ipaddress/hi_mom.log

smile


-------------------------------------------------------------------------------------------------------------------------------------------
2 x DNS-320
1 x DNS-325

Offline

 

#3 2007-10-15 19:34:01

craft
Member
From: Budapest, Hungary
Registered: 2007-06-14
Posts: 122
Website

Re: Syslog file...?

And here is the result :

Code:

Oct 15 18:30:14 TEST323 syslog.info syslogd started: BusyBox v1.6.1
Oct 15 18:30:21 TEST323 ftp.info pure-ftpd: (?@192.168.2.178) [INFO] New connection from 192.168.2.178
Oct 15 18:30:21 TEST323 ftp.info pure-ftpd: (?@192.168.2.178) [INFO] pelikant is now logged in
Oct 15 18:30:54 TEST323 ftp.notice pure-ftpd: (pelikant@192.168.2.178) [NOTICE] //mnt/HD_a2/ftplog/DLINKEu_DNS323.1.04b50.zip uploaded  (7767359 bytes, 8163.68KB/sec)
Oct 15 18:31:27 TEST323 ftp.notice pure-ftpd: (pelikant@192.168.2.178) [NOTICE] File successfully renamed or moved: [photo]->[dns313]
Oct 15 18:31:30 TEST323 ftp.notice pure-ftpd: (pelikant@192.168.2.178) [NOTICE] //mnt/HD_a2/ftplog/dns313/DNS-313_A1_Manual_100_(E).pdf uploaded  (1453336 bytes, 7467.54KB/sec)
Oct 15 18:31:34 TEST323 ftp.notice pure-ftpd: (pelikant@192.168.2.178) [NOTICE] //mnt/HD_a2/ftplog/dns313/DNS-313_A1_QIG_100_(E).pdf uploaded  (1000476 bytes, 7584.97KB/sec)
Oct 15 18:31:39 TEST323 ftp.info pure-ftpd: (pelikant@192.168.2.178) [INFO] Logout.

-------------------------------------------------------------------------------------------------------------------------------------------
2 x DNS-320
1 x DNS-325

Offline

 

#4 2007-10-15 21:55:28

Ethereal_Dragon
Member
From: USA
Registered: 2007-02-05
Posts: 55

Re: Syslog file...?

Thanks for the quick reply craft!!

I got the hi_mom.log file started....

/web #
Oct 15 12:54:48 NAS syslog.info syslogd started: BusyBox v1.5.0

but I get this...

/ # pure-ftpd -H
/mnt/HD_a2/fun_plug.d/bin/sh: pure-ftpd: not found

is there something additional I have to set up for pure-ftpd?


Gaming Rig: ASUS Z87-PRO (V EDITION), Intel Core i5-4590 Haswell, HyperX FURY 8GB DDR3 1866,
XFX Radeon HD 4870, SILVERSTONE DA700, Samsung 840 500Gig SSD MZ-7TD500BW, 3x WD20EARS 2 TB Green,
ASUS DRW-2014L1T (DVD), LG WH14NS40 (Blu Ray), Dell 2709W, Sony SDM-HS95P, Windows 10 Pro
The NAS Box: D-Link DNS-323, 0.1RC3 Alt-F firmware, 2x 7200.14 ST3000DM001 3TB EXT4 - NO RAID - 6 TB

Offline

 

#5 2007-10-15 22:06:30

craft
Member
From: Budapest, Hungary
Registered: 2007-06-14
Posts: 122
Website

Re: Syslog file...?

I'm using the 1.04b50 firmware - and in this firmware the pure-ftpd is the ftp server.
I think you are using some older firmware version with ftpd.

Forget the my pure-ftpd command, use your command ftpd command - or start the ftp server over the webpage - I hope it's working with the syslogd.


-------------------------------------------------------------------------------------------------------------------------------------------
2 x DNS-320
1 x DNS-325

Offline

 

#6 2007-10-15 22:15:37

craft
Member
From: Budapest, Hungary
Registered: 2007-06-14
Posts: 122
Website

Re: Syslog file...?

And it's working with the 1.04b43 firmware too.

smile


-------------------------------------------------------------------------------------------------------------------------------------------
2 x DNS-320
1 x DNS-325

Offline

 

#7 2007-10-15 22:25:14

Ethereal_Dragon
Member
From: USA
Registered: 2007-02-05
Posts: 55

Re: Syslog file...?

Yeah, sorry, forgot to mention in my initial post that I am running with 1.03 firmware.... can't upgrade till tomorrow, cause I am at work right now, remote'd into the box.

I ran the kill process for the FTPD, kill -9 [ftpd pid]

and then ran "ftpd -L -i -o -S -X"

I then FTP'd to the box, uploaded some files, downloaded some, renamed some, deleted some.... and not output of it in the var/log/xferlog or web/hi_mom.log (other than the upload/download being logged in xferlog)...

Will I have to get the chroot Debian sarge (or etch) running on the box to accomplish this?? (no idea where to get started on that.... lol)


Gaming Rig: ASUS Z87-PRO (V EDITION), Intel Core i5-4590 Haswell, HyperX FURY 8GB DDR3 1866,
XFX Radeon HD 4870, SILVERSTONE DA700, Samsung 840 500Gig SSD MZ-7TD500BW, 3x WD20EARS 2 TB Green,
ASUS DRW-2014L1T (DVD), LG WH14NS40 (Blu Ray), Dell 2709W, Sony SDM-HS95P, Windows 10 Pro
The NAS Box: D-Link DNS-323, 0.1RC3 Alt-F firmware, 2x 7200.14 ST3000DM001 3TB EXT4 - NO RAID - 6 TB

Offline

 

#8 2007-10-15 22:29:35

Ethereal_Dragon
Member
From: USA
Registered: 2007-02-05
Posts: 55

Re: Syslog file...?

Also, can you give me a link to the 1.04 beta firmware?? I can't seem to find it on the D-Link page....

http://www.dlink.com/products/support.a … 0#firmware
http://support.dlink.com/products/view. … =DNS%2D323


Gaming Rig: ASUS Z87-PRO (V EDITION), Intel Core i5-4590 Haswell, HyperX FURY 8GB DDR3 1866,
XFX Radeon HD 4870, SILVERSTONE DA700, Samsung 840 500Gig SSD MZ-7TD500BW, 3x WD20EARS 2 TB Green,
ASUS DRW-2014L1T (DVD), LG WH14NS40 (Blu Ray), Dell 2709W, Sony SDM-HS95P, Windows 10 Pro
The NAS Box: D-Link DNS-323, 0.1RC3 Alt-F firmware, 2x 7200.14 ST3000DM001 3TB EXT4 - NO RAID - 6 TB

Offline

 

#9 2008-05-25 01:50:20

halfsoul
Member
Registered: 2008-01-28
Posts: 57

Re: Syslog file...?

craft wrote:

Right now I'm playing with this ftp logging features.


Here is my solution for the ftp log :

first command :

syslogd -O /web/hi_mom.log


and after this, start the pure-ftpd service :

pure-ftpd -H



The best thing -> you can access this log on the webpage of the DNS-323 : http://dns323_ipaddress/hi_mom.log

smile

hmmmmm... a couple of observations/questions:
1) if I open the log file via web-browser, a notepad window opens up and shows it without any line breaks (due to Unix-style line breaks)
2) What other logs will be captured by this?  I run my fun_plug off USB, and I am wondering if I should try and put these logs on the USB stick too.  But then, if I did that it would be more difficult to access since I'd have to use telnet to get to the files.  Is there a way to setup a link on the /web/ directory that points to the USB directory, such that I can still load it up via the web-browser?  But then I'd still get the run-on sentence version....
hmmmmmm

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB