How to install a TFTP server for Linux 3CX

Background:

Some of our customers have changed to our 3CX system, but want to keep the original CISCO phone. We know that Cisco phones usually use TFTP server to complete the phone configuration. This document will introduce how to set up TFTP server on LINUX version 3CX server to configure the Cisco phone.

STEPS:

  1. Installation   Enter the following command to install

sudo apt-get install tftpd-hpa xinetd

Tftpd-hpa is a tftp server. xinted is a network daemon, which accepts client connections.

  1. Enter the following command to create a new tftp file.

sudo vi /etc/xinetd.d/tftp

The contents of the file are as follows. Save the file after modification.

service tftp

{

disable = no

socket_type = dgram

protocol = udp

wait = yes

user = root

server = /usr/sbin/in.tftpd

server_args = -s /var/lib/3cxpbx/Instance1/Data/Http/Interface/provisioning/xjc2spuywwc/ -c#The root directory of TFTP, here we are the configuration file directory of 3CX phone

per_source = 11

cps = 100 2

flags = IPv4

}

  1. Enter the following command to edit the tftpd-hpa file.

sudo vi /etc/default/tftpd-hpa

Modify TFTP_DIRECTORY to the 3CX phone configuration file directory and save it.

TFTP_USERNAME=”tftp”

TFTP_DIRECTORY=”/var/lib/3cxpbx/Instance1/Data/Http/Interface/provisioning/xjc2spuywwc”

TFTP_ADDRESS=”0.0.0.0:69″

TFTP_OPTIONS=”-l -c -s”

  1. Enter the following commands to give the required permissions to the 3CX folder.

sudo chmod -R 777 /var/lib/3cxpbx/Instance1/Data/Http/Interface/provisioning/xjc2spuywwc/

  1. Enter the following command to restart the tftp server, and complete the tftp server configuration.

sudo /etc/init.d/xinetd restart

sudo service tftpd-hpa restart

Leave a Reply

Your email address will not be published. Required fields are marked *