Solved

Enable logging on TFTP

Posted on 2011-03-15
3
878 Views
Last Modified: 2012-05-11
We have problem on connecting for our Cisco phone to download the configuration from Asterisk TFTP. Any idea how to enable TFTP logging on Centos ?

Thanks
0
Comment
Question by:AXISHK
3 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 35137014
You have to install the following RPMS
Installation
xinetd
tftp-server
tftp

Configuration:
Now edit the following file
/etc/xinetd.d/tftp

And make sure option disabled = no

Then issue the following commands
service xinetd restart
chkconfig tftp on
chkconfig xinetd on


TESTING:
netstat -anu  | grep 69



0
 
LVL 1

Expert Comment

by:tiggrdave
ID: 35137152
Depending on the OS and versions of tftp you are using this should work.

You have to do the following in /etc/syslog.conf:

ftp.* /var/log/tftp

The TFTP service uses the ftp service log to log all messages.

Then touch /var/log/tftp, followed by:

# kill -HUP `ps ax | grep syslogd | grep -v grep | awk '{print $1}'

That should now start logging all tftp messages to /var/log/tftp


Or

 look in /etc/xinetd.d directory and compare the following with your tftp configuration

# default: off
# description: The tftp server serves files using the trivial file transfer protocol. The tftp protocol is often used to boot diskless workstations, download configuration files to network-aware
 printers, and to start the installation process for some operating systems.
service tftp
{
        disable = no
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = --logfile /var/log/atftpd.log
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

The logfile can be specified in the server_Args section as shown above.

You will need to restart the xinetd process for it to use the new config file

kill -HUP `ps ax | grep xinetd | grep -v grep | awk '{print $1}'
0
 

Author Closing Comment

by:AXISHK
ID: 35137872
Tks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IPA - can it be run on a web server? 3 223
IPA client Config problems 2 227
How to specify rdns for multi-homed mail server 5 78
Configuring windows 7 host in Nagios 4 5 96
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question