Community discussions

MikroTik App
 
Peque
newbie
Topic Author
Posts: 45
Joined: Mon Oct 26, 2015 9:35 am

TFTP Issues on CCR1009

Thu Jun 02, 2016 1:55 pm

Hi Forum.
I have a little problem that I cannot google my self out of.

I've created a dir on my Mikrotik called /tftp
Inside I've download a Debian Install pxe
But when trying to boot - I'm getting this

Then Its writing something about a missing file I cannot read!
Its a failed to load a file - But cannot see which ?

Normally I've done this frm a seperate server - but since I got the mikrotik - I can use this.
My Settings from Mikrotik
> export
# jun/02/2016 12:53:32 by RouterOS 6.35.2
# software id = MU8X-YJR2
#
/ip tftp
add ip-addresses=172.16.0.0/24 req-filename=tftp/pxelinux.0
How come the permission denied to that Directory
The structure
/tftp/pxelinux.0
/tftp/ldlinux.c32
/tftp/version.info
/tftp/debian-installer/i386/boot-screens/
/tftp/debian-installer/i386/grub/
/tftp/debian-installer/i386/pxelinux.cfg
/tftp/debian-installer/i386/bootnetia32.efi
/tftp/debian-installer/i386/initrd.gz
/tftp/debian-installer/i386/linux
/tftp/debian-installer/i386/pxelinux.0

The image is downloaded from here http://ftp.nl.debian.org/debian/dists/j ... oot.tar.gz
unzippet and placed in /tftp/ on the mikrotik

The error code on the Mikrotik Logfile
ERROR: Code 0
 
pe1chl
Forum Guru
Forum Guru
Posts: 10542
Joined: Mon Jun 08, 2015 12:09 pm

Re: TFTP Issues on CCR1009

Thu Jun 02, 2016 3:54 pm

When you use a subfolder you will need to set both the req-filename (without the first folder name) and the real-filename
(with the full filename).
 
Peque
newbie
Topic Author
Posts: 45
Joined: Mon Oct 26, 2015 9:35 am

Re: TFTP Issues on CCR1009

Fri Jun 03, 2016 8:28 am

Should it be set for all files ?
Since there are many files - so is there any way to defina all at one
 
pe1chl
Forum Guru
Forum Guru
Posts: 10542
Joined: Mon Jun 08, 2015 12:09 pm

Re: TFTP Issues on CCR1009

Fri Jun 03, 2016 8:48 am

I don't think so. I have not used the MikroTik TFTP server but when I study the parameters I notice that it lacks
a definition for a "root directory" like the usual Linux TFTP server has. By setting the "root directory" to something
like /tftpd one can map a whole series of files in one go.
It looks like the MikroTik TFTP server does this on a file-by-file basis, probably also to avoid security risks by
exposing critical files to an unauthenticated file transfer service without the operator noticing it.
(e.g. when you would just start the TFTP service with root directory /)
 
Peque
newbie
Topic Author
Posts: 45
Joined: Mon Oct 26, 2015 9:35 am

Re: TFTP Issues on CCR1009

Sun Jun 05, 2016 2:22 pm

Well - Given up now - Cannot make it boot from this tftp Server.