Toon posts:

TFTP server Fedora

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Probleem met de TFTP server,

als ik probeer te connecten: TFTP 172.16.20.200, krijg ik na een tijdje: Er is een time-out opgetreden.

[root@localhost lib]#nano /etc/xinetd.d/tftp

# default: off
# description: The tftp server serves files using the trivial file transf$
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware print$
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}

[root@localhost lib]#nano /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
iptables -A INPUT -p udp --dport 69 -j ACCEPT


[root@localhost lib]# chown nobody:nobody /var/lib/tftpboot/
[root@localhost lib]# chmod ug+rwx /var/lib/tftpboot/

Wat gaat er fout, of wat moet ik er nog bij configureren?

Acties:
  • 0 Henk 'm!

  • LinuX-TUX
  • Registratie: December 2003
  • Laatst online: 10:08
Zonder logs kunnen we hier op GoT alleen maar gissen naar wat het potentieel zou kunnen zijn.

Gelukkig hebben we een alternatief bedacht om gissen te voorkomen: klik

Daarbij kan ik niet eens opmaken welke TFTP server je hebt geinstalleerd. Zie alleen executables, versie en naam kunnen ook handig zijn om te vermelden.

Of heet het onder Fedora echt tftpboot ... :? dan nog, welke versie
Wat ik persoonlijk altijd doe:
• Open console -> tail -f <logfile van tftp server>
• Open TFTP sessie naar server
• Kijk wat er gebeurd, interpreteer en dan blijven er 2 keuzes over.
1 - Weet zelf al wat er mis is (rechten issue, port geblocked ... want nmappen kan ook uitkomst bieden. Let wel, tftp is UDP en geen TCP)
2 - Copy paste de melding naar www.google.com/linux :Y) en zie wat daar de ervaringen zijn. (werkt beter als je OS engels is)

[ Voor 33% gewijzigd door LinuX-TUX op 10-01-2011 08:49 ]


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
[root@localhost lib]# yum install tftp-server tftp xinetd

In /var/log staan geen TFTP logs, staan deze op een andere plek of worden die nog niet aangemaakt?

Acties:
  • 0 Henk 'm!

  • LinuX-TUX
  • Registratie: December 2003
  • Laatst online: 10:08
Verwijderd schreef op maandag 10 januari 2011 @ 08:47:
[root@localhost lib]# yum install tftp-server tftp xinetd

In /var/log staan geen TFTP logs, staan deze op een andere plek of worden die nog niet aangemaakt?
Logt ie ook niet naar /var/log/messages toevallig? (aangezien het een (x)inetd service kapstok gebruikt)

grep -Hri xinetd *
of
grep -Hri tftp *

Uitvoeren in /var/log

regexpes FtW :Y)

[ Voor 10% gewijzigd door LinuX-TUX op 10-01-2011 08:51 ]


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
messages:Jan 10 08:14:41 localhost xinetd[3434]: Exiting...
messages:Jan 10 08:14:41 localhost xinetd[14524]: IPv6 socket creation failed for service telnet, trying IPv4
messages:Jan 10 08:14:41 localhost xinetd[14524]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
messages:Jan 10 08:14:41 localhost xinetd[14524]: Started working: 2 available services
messages:Jan 10 08:22:17 localhost xinetd[14524]: Exiting...
messages:Jan 10 08:22:17 localhost xinetd[14556]: IPv6 socket creation failed for service telnet, trying IPv4
messages:Jan 10 08:22:17 localhost xinetd[14556]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
messages:Jan 10 08:22:17 localhost xinetd[14556]: Started working: 2 available services
messages:Jan 10 08:28:04 localhost xinetd[14556]: Exiting...
messages:Jan 10 08:28:04 localhost xinetd[14580]: IPv6 socket creation failed for service telnet, trying IPv4
messages:Jan 10 08:28:04 localhost xinetd[14580]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
messages:Jan 10 08:28:04 localhost xinetd[14580]: Started working: 2 available services
messages-20101219:Dec 14 08:58:17 localhost xinetd[1950]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20101219:Dec 14 08:58:17 localhost xinetd[1950]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
messages-20101219:Dec 14 08:58:17 localhost xinetd[1950]: Started working: 1 available service
messages-20110109:Jan 7 11:10:40 localhost xinetd[1950]: Exiting...
messages-20110109:Jan 7 11:11:44 localhost xinetd[1897]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20110109:Jan 7 11:11:44 localhost xinetd[1897]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
messages-20110109:Jan 7 11:11:44 localhost xinetd[1897]: Started working: 1 available service
messages-20110109:Jan 7 13:45:43 localhost xinetd[1897]: Exiting...
messages-20110109:Jan 7 13:46:32 localhost xinetd[1896]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20110109:Jan 7 13:46:32 localhost xinetd[1896]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
messages-20110109:Jan 7 13:46:32 localhost xinetd[1896]: Started working: 1 available service
messages-20110109:Jan 7 13:57:37 localhost xinetd[1896]: Exiting...
messages-20110109:Jan 7 13:58:37 localhost xinetd[1899]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20110109:Jan 7 13:58:37 localhost xinetd[1899]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
messages-20110109:Jan 7 13:58:37 localhost xinetd[1899]: Started working: 1 available service
messages-20110109:Jan 7 14:06:24 localhost xinetd[1899]: Exiting...
messages-20110109:Jan 7 14:07:13 localhost xinetd[1903]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20110109:Jan 7 14:07:13 localhost xinetd[1903]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
messages-20110109:Jan 7 14:07:13 localhost xinetd[1903]: Started working: 1 available service
messages-20110109:Jan 7 14:43:48 localhost xinetd[1903]: Exiting...
messages-20110109:Jan 7 14:44:48 localhost xinetd[1896]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20110109:Jan 7 14:44:48 localhost xinetd[1896]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
messages-20110109:Jan 7 14:44:48 localhost xinetd[1896]: Started working: 1 available service
messages-20110109:Jan 7 14:48:36 localhost xinetd[1896]: Starting reconfiguration
messages-20110109:Jan 7 14:48:36 localhost xinetd[1896]: Swapping defaults
messages-20110109:Jan 7 14:48:36 localhost xinetd[1896]: readjusting service telnet
messages-20110109:Jan 7 14:48:36 localhost xinetd[1896]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20110109:Jan 7 14:48:36 localhost xinetd[1896]: Reconfigured: new=0 old=1 dropped=0 (services)
messages-20110109:Jan 7 14:58:56 localhost xinetd[1896]: Starting reconfiguration
messages-20110109:Jan 7 14:58:56 localhost xinetd[1896]: Swapping defaults
messages-20110109:Jan 7 14:58:56 localhost xinetd[1896]: readjusting service telnet
messages-20110109:Jan 7 14:58:56 localhost xinetd[1896]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20110109:Jan 7 14:58:56 localhost xinetd[1896]: Reconfigured: new=1 old=1 dropped=0 (services)
messages-20110109:Jan 7 15:35:54 localhost xinetd[1896]: Starting reconfiguration
messages-20110109:Jan 7 15:35:54 localhost xinetd[1896]: Swapping defaults
messages-20110109:Jan 7 15:35:54 localhost xinetd[1896]: readjusting service telnet
messages-20110109:Jan 7 15:35:54 localhost xinetd[1896]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20110109:Jan 7 15:35:54 localhost xinetd[1896]: service tftp deactivated
messages-20110109:Jan 7 15:35:54 localhost xinetd[1896]: tftp: svc_release with 0 count
messages-20110109:Jan 7 15:35:54 localhost xinetd[1896]: Reconfigured: new=0 old=1 dropped=1 (services)
messages-20110109:Jan 7 15:36:44 localhost xinetd[1896]: Exiting...
messages-20110109:Jan 7 15:37:44 localhost xinetd[1899]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20110109:Jan 7 15:37:44 localhost xinetd[1899]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
messages-20110109:Jan 7 15:37:44 localhost xinetd[1899]: Started working: 1 available service
messages-20110109:Jan 7 15:41:04 localhost xinetd[1899]: Starting reconfiguration
messages-20110109:Jan 7 15:41:04 localhost xinetd[1899]: Swapping defaults
messages-20110109:Jan 7 15:41:04 localhost xinetd[1899]: readjusting service telnet
messages-20110109:Jan 7 15:41:04 localhost xinetd[1899]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20110109:Jan 7 15:41:04 localhost xinetd[1899]: Reconfigured: new=0 old=1 dropped=0 (services)
messages-20110109:Jan 7 15:50:00 localhost xinetd[1899]: Starting reconfiguration
messages-20110109:Jan 7 15:50:00 localhost xinetd[1899]: Swapping defaults
messages-20110109:Jan 7 15:50:00 localhost xinetd[1899]: readjusting service telnet
messages-20110109:Jan 7 15:50:00 localhost xinetd[1899]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20110109:Jan 7 15:50:00 localhost xinetd[1899]: Reconfigured: new=1 old=1 dropped=0 (services)
messages-20110109:Jan 7 15:58:17 localhost xinetd[1899]: Starting reconfiguration
messages-20110109:Jan 7 15:58:17 localhost xinetd[1899]: Swapping defaults
messages-20110109:Jan 7 15:58:17 localhost xinetd[1899]: readjusting service telnet
messages-20110109:Jan 7 15:58:17 localhost xinetd[1899]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20110109:Jan 7 15:58:17 localhost xinetd[1899]: readjusting service tftp
messages-20110109:Jan 7 15:58:17 localhost xinetd[1899]: Reconfigured: new=0 old=2 dropped=0 (services)
messages-20110109:Jan 7 16:04:39 localhost xinetd[1899]: Exiting...
messages-20110109:Jan 7 16:04:39 localhost xinetd[3434]: IPv6 socket creation failed for service telnet, trying IPv4
messages-20110109:Jan 7 16:04:39 localhost xinetd[3434]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
messages-20110109:Jan 7 16:04:39 localhost xinetd[3434]: Started working: 2 available services
rpmpkgs:xinetd-2.3.14-18.fc9.x86_64.rpm
rpmpkgs-20101219:xinetd-2.3.14-18.fc9.x86_64.rpm
rpmpkgs-20101226:xinetd-2.3.14-18.fc9.x86_64.rpm
rpmpkgs-20110102:xinetd-2.3.14-18.fc9.x86_64.rpm
rpmpkgs-20110109:xinetd-2.3.14-18.fc9.x86_64.rpm


Is dit wat je wilt weten?

Acties:
  • 0 Henk 'm!

  • LinuX-TUX
  • Registratie: December 2003
  • Laatst online: 10:08
Is dat ten tijde van je tftp sessie naar de server?

Ziet er oud uit namelijk en vandaag zie ik niet veel gebeuren :?. Even gewoon een 'tail -f /var/log/messages' open zetten in console en een tftp sessie openen naar de server. Actuele output van wat er op zo'n moment gebeurd is waar we op uit zijn immers :Y)

offtopic:
Die logs zijn zooooooo 07/01/2010 :+

[ Voor 5% gewijzigd door LinuX-TUX op 10-01-2011 10:00 ]


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Wanneer doe wat jij zegt gebeurt er totaal niets in mijn log, is het misschien een firewall rule die ik moet toevoegen?

Acties:
  • 0 Henk 'm!

  • CyBeR
  • Registratie: September 2001
  • Niet online

CyBeR

💩

Mijn ervaring met tftp is dat 't zuigt, maar een noodzakelijk kwaad is. En dat de combinatie van welke tftp server je gebruikt met je hardware verschil maakt in hoe hard het zuigt. De minste problemen heb ik gehad met atftpd. Probeer die dus eens.

All my posts are provided as-is. They come with NO WARRANTY at all.


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
@CyBeR, werkt dit exact hetzelfde qua functionaliteit?

Acties:
  • 0 Henk 'm!

  • CyBeR
  • Registratie: September 2001
  • Niet online

CyBeR

💩

Ja.

All my posts are provided as-is. They come with NO WARRANTY at all.


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Toch probleem met firewall en poort nummers, dankzij de logconfiguratie is het opgelost! Thanks allemaal.
Pagina: 1