Tftp client put

Bonjour,

j’ai une machine qui fait dhcp, dns, tftpd et pxe par dnsmasq.

je souhaite me connecter sur 10.8.0.1 en tftp “client” et poussé un fichier dans le repoire cible mais ça coince avec l’erreur.

tftp 10.8.0.1
tftp> put f1.txt      
Error code 4: requête de 10.8.0.1 non supportée
tftp> put f1.txt /var/lib/tftpboot
Error code 4: requête de 10.8.0.1 non supportée
tftp> get f1.txt
Received 7 bytes in 0.0 seconds
tftp> 


tftp> status
Connected to 10.8.0.1.
Mode: netascii Verbose: on Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds


tftp> status
Connected to 10.8.0.1.
Mode: netascii Verbose: on Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds

tftp> ascii
mode set to netascii
tftp> status  
Connected to 10.8.0.1.
Mode: netascii Verbose: on Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp> binary
mode set to octet
tftp> status  
Connected to 10.8.0.1.
Mode: octet Verbose: on Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp> put f1.txt
putting f1.txt to 10.8.0.1:f1.txt [octet]
Error code 4: requête de 10.8.0.1 non supportée
tftp> mode
Using octet mode to transfer files.
tftp> status  
Connected to 10.8.0.1.
Mode: octet Verbose: on Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds


/var/log/syslog:Jan 23 12:44:09 localhost dnsmasq-tftp[3591]: requête de 10.8.0.1 non supportée
/var/log/syslog:Jan 23 13:57:32 localhost dnsmasq-tftp[3591]: envoyé /var/lib/tftpboot/f1.txt à 10.8.0.1
/var/log/syslog:Jan 23 14:00:10 localhost dnsmasq-tftp[3591]: requête de 10.8.0.1 non supportée
/var/log/syslog:Jan 23 14:00:18 localhost dnsmasq-tftp[3591]: envoyé /var/lib/tftpboot/f1.txt à 10.8.0.1
/var/log/syslog:Jan 23 14:00:25 localhost dnsmasq-tftp[3591]: requête de 10.8.0.1 non supportée

tftp 127.0.0.1
tftp> get f1.txt
Received 7 bytes in 0.0 seconds
tftp> put f1.txt
Error code 4: requête de 10.8.0.1 non supportée

mon dnsmasq.conf

[code]cat /etc/dnsmasq.conf

Only listen to routers’ LAN NIC. Doing so opens up tcp/udp port 53 to

localhost and udp port 67 to world:

interface=eth4

dnsmasq will open tcp/udp port 53 and udp port 67 to world to help with

dynamic interfaces (assigning dynamic ips). Dnsmasq will discard world

requests to them, but the paranoid might like to close them and let the

kernel handle them:

bind-interfaces

Dynamic range of IPs to make available to LAN pc

dhcp-range=10.8.0.10,10.8.0.30,12h

If you’d like to have dnsmasq assign static IPs, bind the LAN computer’s

NIC MAC address:

#dhcp-host=aa:bb:cc:dd:ee:ff,192.168.111.50
listen-address=127.0.0.1

###################

lts client

###################

rootpath option

###dhcp-option=17,/opt/ltsp/amd64

define common netboot types

dhcp-vendorclass=etherboot,Etherboot
dhcp-vendorclass=pxe,PXEClient

Set the boot filename for BOOTP.

dhcp-boot=net:pxe,pxelinux.0

enable the TFTP server (needs dnsmasq 2.36+)

enable-tftp
tftp-root=/var/lib/tftpboot
[/code]

mon but finale est de pouvoir utiliser http://hdt-project.org/wiki/BootParameters#dump

mince alors, fallait lire le man

la seule chose a faire est d’essayer de se passer du service tftp de dnsmasq et de basculer a tftpd serveur

bon voila j’ai basculé en dnsmasq en en dhcpd3 nouveau nom (isc-dhcp-server).
configuré tftpd-hta

j’arrive a écraser un fichier déjà existant.

$ tftp 10.8.0.1
tftp> get f1.txt
Received 7 bytes in 0.0 seconds
tftp> put f1.txt
Sent 7 bytes in 0.0 seconds

comment pousser un fichier ou un dossier sans que celui existe au préalable dans le serveur tftpd ?

tftp> verbose     
Verbose mode on.
tftp> put f1.txt
putting f1.txt to 10.8.0.1:f1.txt [netascii]
Sent 7 bytes in 0.0 seconds [inf bits/sec]
tftp> get f1.txt
getting from 10.8.0.1:f1.txt to f1.txt [netascii]
Received 7 bytes in 0.0 seconds [inf bits/sec]
tftp> put toto.txt
putting toto.txt to 10.8.0.1:toto.txt [netascii]
Error code 1: File not found
tftp> put /var/lib/tftpboot/toto.txt
putting toto.txt to 10.8.0.1:/var/lib/tftpboot/toto.txt [netascii]
Error code 1: File not found

rien a faire… ça coince.
des idées ?