|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Can't make tftpd work with inetd
Hello,
I'm unable to make tftpd work with inetd, I've tried very hard and decided to ask here. My OpenBSD system is not the newest one: 5.3 When I run tftpd by hand it works fine PHP Code:
PHP Code:
- The service name has to exist in /etc/services, so that an udp packet received on port 69 should trigger inetd to start tftpd PHP Code:
PHP Code:
PHP Code:
=> I tcpdump on port 69 and see 5 attempts The inetd never start tftpd and the tftp client times out after a certain time. When I did the tests I disabled pf: pfctl -d The logs tell me something is wrong PHP Code:
|
|
|||
Hello I did not understand what you meant by boo-boo.
I tried to delete the second occurence of tftpd in my inetd.conf PHP Code:
PHP Code:
And a wrong command line seems to be started by inetd PHP Code:
With my original configuration PHP Code:
Thank you |
|
||||
I'm able to recreate the problem on 5.8-stable.[1] So I thought I'd do a little research. At one time, tftpd did not support standalone operation, it required inetd for socket management.
http://marc.info/?t=121788368600008&r=1&w=2 Then, in 2012, the tftpd program was rewritten. It became a standalone program, with support for IPv6, and included a newly rewritten tftp-proxy as an adjunct. It is no longer intended to be used with inetd. http://cvsweb.openbsd.org/cgi-bin/cv...tftpd/Makefile http://www.openbsd.org/plus52.html ---- [1] Saving stderr from inetd -d shows a consistent loop: Code:
someone wants tftp 18766 execv /usr/sbin/tftpd reaping asked for 18766 reaped, status 100 restored tftp, fd 9 someone wants tftp 12715 execv /usr/sbin/tftpd reaping asked for 12715 reaped, status 100 restored tftp, fd 9 someone wants tftp 5625 execv /usr/sbin/tftpd Last edited by jggimi; 31st October 2015 at 08:07 PM. Reason: clarity, typo |
|
|||
Thank you very much all for your help.
Now I understand why, I was able to use tftpd with inetd and one day it didn't work anymore. On my system I still use 5.3 and plan to upgrade to 5.8 but I have to check everything I run is compatible before doing that (httpd). Have a nice week end |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Comment out '/etc/inetd.conf' and disable 'inetd' daemon | J65nko | Guides | 0 | 24th January 2010 10:53 PM |
NetBSD on a laptop: trying to make it work | Mr-Biscuit | NetBSD Installation and Upgrading | 1 | 1st June 2009 01:43 AM |
Any chance to make work in FreeBSD ? | giga | FreeBSD General | 2 | 30th January 2009 10:07 PM |
firefox3 with mplayer-plugin? Any possibility to make them work together.? | daemonFromHeaven | FreeBSD Ports and Packages | 4 | 16th September 2008 09:47 AM |
How to make it work with VLAN-trunking? | Seb74 | OpenBSD Security | 4 | 28th June 2008 02:08 PM |