TUTORIAL Installing t*f*t*p for Endpoint Management

a233856

New Member
Joined
Apr 22, 2010
Messages
29
Reaction score
0
Yes, the file and the directory for aastra/asterisk does not exist. I see now that the EPM template can be configured so the softkeys use the Aastra XML scripts in the aastra/asterisk directory. I didn't realize that the Aastra XML scripts should be installed after a fresh install of FreePBX. I think I got that wrong because the EPM template for Yealink phones uses /config/Network and /config/settings for the XML file directory paths and they don't exist and no XML files either. I like the Yealink phones because they register without hassle but I haven't setup softkeys so that is another issue. Thanks for putting up with me on this.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
/config/Network is NOT a directory on your server. It is the directory on the Yealink phones (they run a modified Linux operating system)

Something tells me you are running an extremely old version of endpoint manager
 

ariban

Member
Joined
Aug 1, 2013
Messages
310
Reaction score
16
Hi,
I installed endpoints on centos 6.5 with no issues. however when i follow the same instructions for centos 7 it does not work. here is what i did on centos 6.5, can anyone help with centos 7

yum -y install t*f*t*p-server
yum install nmap
chkconfig ntpd on
/etc/init.d/ntpd start
chkconfig t*f*t*p on
chmod 777 /tftpboot/
/sbin/chkconfig --level 345 xinetd on
/sbin/chkconfig --level 345 t*f*t*p on
/etc/init.d/xinetd restart

Thank you
Ben
 
Joined
Apr 17, 2009
Messages
829
Reaction score
9
I am looking to try and install this on a hosted PBX. I'm hoping to be able to install this and have remote phones provision to the server when sending them out to remote employees.

Has anyone else had any luck making this happen?

Thanks,
Nathan
 

Nubleet

New Member
Joined
Nov 16, 2015
Messages
17
Reaction score
0
I am looking to try and install this on a hosted PBX. I'm hoping to be able to install this and have remote phones provision to the server when sending them out to remote employees.

Has anyone else had any luck making this happen?

Thanks,
Nathan
I have attempted to setup t*f*t*p on Incredible PBX, with no luck. I can watch the communication via my hardware firewall, and via tcpdump in the console of the PBX, but nothing ever goes through to the client machine. I followed the tutorial here. I have also disabled Fail2Ban and iptables, to eliminate the possibility of them causing issues. If anyone has any insight on how they've made this work, it would be greatly appreciated.
 

ariban

Member
Joined
Aug 1, 2013
Messages
310
Reaction score
16
i got mine working doing this on centos 6.5

yum -y install t*f*t*p-server
yum -y install nmap
chkconfig ntpd on
/etc/init.d/ntpd start
chkconfig t*f*t*p on
chmod 777 /tftpboot/
/sbin/chkconfig --level 345 xinetd on
/sbin/chkconfig --level 345 t*f*t*p on
/etc/init.d/xinetd restart

then login to the admin portal, go to connectivity and endpoint advance settings, make sure the ip is there, select t*f*t*p and not http, put the timezone and push update globals! if you get any error, post them.
otherwise go to endpoint package manager, and install the phones you have, and then go to device list and add your phones with mac address and which extension they should be etc...
 

Nubleet

New Member
Joined
Nov 16, 2015
Messages
17
Reaction score
0
i got mine working doing this on centos 6.5

yum -y install t*f*t*p-server
yum -y install nmap
chkconfig ntpd on
/etc/init.d/ntpd start
chkconfig t*f*t*p on
chmod 777 /tftpboot/
/sbin/chkconfig --level 345 xinetd on
/sbin/chkconfig --level 345 t*f*t*p on
/etc/init.d/xinetd restart

then login to the admin portal, go to connectivity and endpoint advance settings, make sure the ip is there, select t*f*t*p and not http, put the timezone and push update globals! if you get any error, post them.
otherwise go to endpoint package manager, and install the phones you have, and then go to device list and add your phones with mac address and which extension they should be etc...
This also did not work. Although, I do not have the endpoint package manager? Maybe I am missing something, but I cant find where to install it?
 

ariban

Member
Joined
Aug 1, 2013
Messages
310
Reaction score
16
change the file /etc/xinetd.d/tftp to look like the below. basically your change the line: server_args = -s /tftpboot
that worked for me!


{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
 

Nubleet

New Member
Joined
Nov 16, 2015
Messages
17
Reaction score
0
<code>
service t*f*t*p
{
disable = no
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = tftpd
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot -vvv
per_source = 11
cps = 100 2
flags = IPv4
}
</code>

Here is my current config. I will change to mirror what you have setup
 

Nubleet

New Member
Joined
Nov 16, 2015
Messages
17
Reaction score
0
Here's an attempt to grab a file off the server:
root@voip:/tftpboot $ tcpdump port 69 -vvv
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
13:48:10.925607 IP (tos 0x0, ttl 127, id 25292, offset 0, flags [none], proto UDP (17), length 48)
10.99.1.18.52817 > 10.10.102.9.t*f*t*p: [udp sum ok] 20 RRQ "IPPhone.cfg" octet
13:48:11.926084 IP (tos 0x0, ttl 127, id 25297, offset 0, flags [DF], proto UDP (17), length 48)
10.99.1.18.52817 > 10.10.102.9.t*f*t*p: [udp sum ok] 20 RRQ "IPPhone.cfg" octet
13:48:13.927278 IP (tos 0x0, ttl 127, id 25317, offset 0, flags [DF], proto UDP (17), length 48)
10.99.1.18.52817 > 10.10.102.9.t*f*t*p: [udp sum ok] 20 RRQ "IPPhone.cfg" octet
13:48:17.929636 IP (tos 0x0, ttl 127, id 25345, offset 0, flags [DF], proto UDP (17), length 48)
10.99.1.18.52817 > 10.10.102.9.t*f*t*p: [udp sum ok] 20 RRQ "IPPhone.cfg" octet

using:

C:\Windows\system32>t*f*t*p -i 10.10.102.9 GET IPPhone.cfg
Timeout occurred
Connect request failed
 

ariban

Member
Joined
Aug 1, 2013
Messages
310
Reaction score
16
does your router allow t*f*t*p?
do you have optoins 150 and 66 on your router?
 

Nubleet

New Member
Joined
Nov 16, 2015
Messages
17
Reaction score
0
UDP port 69 is allowed to and from my pbx internal and external IP. I have tried internally and externally, and the results are the same. I do not have any dhcp options explicitly allowed, but I do have all traffic logged to and from the PBX, and it does show an allow message when traffic on UDP port 69 passes through. Also, the fact that I can see the traffic on the PBX console, is a good indication that its at least getting there. Just cant figure out why its not returning. Let me see if I can turn on either or both of those options.

*Edit*

Option 150 and option 66 showed no improvement.
 
Last edited:

ariban

Member
Joined
Aug 1, 2013
Messages
310
Reaction score
16
i am not that good at it myself, you would need someone else here on these forums who can help you more than i can.
sorry i dont know what else to do.
 

Nubleet

New Member
Joined
Nov 16, 2015
Messages
17
Reaction score
0
i am not that good at it myself, you would need someone else here on these forums who can help you more than i can.
sorry i dont know what else to do.
I appreciate the suggestions!
 

OTA

Guru
Joined
Feb 20, 2009
Messages
101
Reaction score
1
Just some words of caution to those looking to do t*f*t*p:

DO NOT let t*f*t*p be exposed to the internet. I had someone from Pakistan drilling away on my t*f*t*p server, looking for Polycom config files. Fortunately, there weren't any, but he was drilling away for a few days on it, to the point that it was affecting voice quality. Null routed him and that took care of that, but from that point forward we're using FTP when possible, will open t*f*t*p only long enough for an ancient remote phone to update then lock it back up.
 

Members online

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top