Solved

Enable logging on TFTP

Posted on 2011-03-15
3
892 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What is a Denial of Service (DoS)?

A DoS is a malicious attempt to prevent the normal operation of a computer system. You may frequently see the terms 'DDoS' (Distributed Denial of Service) and 'DoS' used interchangeably, but there are some subtle differences.

Question has a verified solution.

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

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Suggested Courses

630 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