Page 1 of 1

TFTP Issues on CCR1009

Posted: Thu Jun 02, 2016 1:55 pm
by Peque
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

Re: TFTP Issues on CCR1009

Posted: Thu Jun 02, 2016 3:54 pm
by pe1chl
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).

Re: TFTP Issues on CCR1009

Posted: Fri Jun 03, 2016 8:28 am
by Peque
Should it be set for all files ?
Since there are many files - so is there any way to defina all at one

Re: TFTP Issues on CCR1009

Posted: Fri Jun 03, 2016 8:48 am
by pe1chl
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 /)

Re: TFTP Issues on CCR1009

Posted: Sun Jun 05, 2016 2:22 pm
by Peque
Well - Given up now - Cannot make it boot from this tftp Server.