• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Tftp package doesn't work but found a workaround

Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
50 Posts 7 Posters 27.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    Cino
    last edited by Feb 3, 2011, 12:50 PM Feb 3, 2011, 4:01 AM

    It could just be my box but i've seen some topics that tftp isn't working on 2.0. The topics were old so I figured i would start a new one.

    I install the tftp package on build 2.0 BETA5 (i386) built on Wed Feb 2 04:04:51 EST 201.

    Add some files to the tftpboot dir to test PXE booting.. My client timeout trying to connect via tftp.

    I looked at the /etc/inetd.conf and noticed that the tftp service wasn't defined. So I added it under the tftp-proxy service.

    tftp-proxy	dgram	udp	wait	root	/usr/libexec/tftp-proxy	tftp-proxy
    tftp	dgram	udp	wait	root	/usr/libexec/tftpd	tftpd /tftpboot
    

    rebooted the box and tftp is working. I could had commented out the tftp-proxy since i don't use it but figured it wasn't hurting anything.

    Hope this can be fixed via package but i have it working for now…

    Edit: You lose the this setting after a firmware update

    1 Reply Last reply Reply Quote 0
    • B
      bioterror
      last edited by Mar 10, 2011, 5:12 AM

      Thanks for this, I found this hint useful.
      You don't need to reboot, you can also just say a command "/etc/rc.d/inetd onestart"

      1 Reply Last reply Reply Quote 0
      • C
        cruzades
        last edited by Apr 13, 2011, 1:57 PM

        Thank you very much.. my TFTP server is now working..

        1 Reply Last reply Reply Quote 0
        • B
          Brad303
          last edited by May 6, 2011, 6:53 AM

          Noticed the same issue and implemented the same solution.

          Frustrating 30 minutes, but I guess that's the way it goes when playing with RCs.

          I didn't this listed in the current issues, nor a way to report new ticket.  Can we get this added an save future users our headaches?

          Thanks for this great product!

          1 Reply Last reply Reply Quote 0
          • J
            jimp Rebel Alliance Developer Netgate
            last edited by May 6, 2011, 7:41 PM

            I just committed an updated TFTP package for 2.0, though it requires a change I just committed to 2.0 also. So if you update to a snapshot tomorrow and then reinstall the package, the tftpd daemon should be started as expected via inetd.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • ?
              Guest
              last edited by May 14, 2011, 4:02 PM

              Hi guys, I applied this workaround following these steps :

              1. added additional line in /etc/inetd.conf
              2. rebooted the box, despite I read you can make it work with /etc/rc.d/inetd onestart

              And…. it doesn't work... to make it work I have to exec /etc/rc.d/inetd stop and then /etc/rc.d/inetd onestart and then it works.
              If I reboot I have to do the same things. Quite strange isn't it ?

              Kind regards.

              1 Reply Last reply Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by May 14, 2011, 4:08 PM

                drjee,

                Did you not see my post? update to a current snapshot, reinstall the tftp package and you do not need any workarounds, it just works as-is.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • ?
                  Guest
                  last edited by May 14, 2011, 4:21 PM May 14, 2011, 4:19 PM

                  Hello,

                  Yes sorry I saw it. I forgot to mention that I run on 2.0RC May 12th build and re-installed the tftp package. But still not working as-is.
                  Did I make something wrong ?

                  1 Reply Last reply Reply Quote 0
                  • J
                    jimp Rebel Alliance Developer Netgate
                    last edited by May 14, 2011, 4:49 PM

                    Odd that it doesn't work for you, I can't seem to make it fail. As long as the TFTP package is installed, it's running tftp automatically and the proper entry is in /var/etc/inetd.conf
                    It survives reboots and firmware upgrades/package reinstalls without problems for me.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • ?
                      Guest
                      last edited by May 14, 2011, 7:11 PM

                      Quite strange… I uninstalled it and reinstalled it, still not working.
                      What is the difference between /var/etc/inetd.conf and /etc/inetd.conf ?
                      Cause workaround they find is adding a line to /etc/inetd.conf
                      After package install, I can see that a line for tftp is added to /var/etc/inetd.conf but it does not work... (I also checked that service was running and it is).
                      Only way to make it work for me is to add an entry to /etc/inetd.conf

                      1 Reply Last reply Reply Quote 0
                      • J
                        jimp Rebel Alliance Developer Netgate
                        last edited by May 14, 2011, 7:16 PM

                        /etc/inetd.conf is not used by pfSense 2.0. /var/etc/inetd.conf is used by the TFTP proxy (and TFTP package).

                        When inetd is setup and started from filter.inc, it uses /var/etc/inetd.conf

                        : ps uxawww | grep inetd
                        root   47253  0.0  0.3  9036  1508  ??  INs  Thu10AM   0:00.00 /usr/sbin/inetd -wW -R 0 -a 127.0.0.1 /var/etc/inetd.conf
                        : cat /var/etc/inetd.conf 
                        tftp-proxy      dgram   udp     wait            root    /usr/libexec/tftp-proxy tftp-proxy -v
                        tftp            dgram   udp     wait            root    /usr/libexec/tftpd      tftpd /tftpboot
                        

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        1 Reply Last reply Reply Quote 0
                        • ?
                          Guest
                          last edited by May 14, 2011, 7:31 PM

                          Thanks for your help.

                          Actually here is what I got on my side :

                          :ps uxawww | grep inetd
                          root   11514  0.0  0.6  3436  1400  ??  Ss    9:28PM   0:00.01 /usr/sbin/inetd -wW -C 60
                          
                          

                          Is there something that maybe wrong in my config for having not at all the same parameters behind /usr/sbin/inetd ?

                          1 Reply Last reply Reply Quote 0
                          • J
                            jimp Rebel Alliance Developer Netgate
                            last edited by May 14, 2011, 7:34 PM

                            If you started it manually with /etc/rc.d/inetd, it will launch the wrong one.

                            Kill that process, then go to Status > Filter Reload, and force a filter reload with the button there, then check if the right one is running.

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            1 Reply Last reply Reply Quote 0
                            • ?
                              Guest
                              last edited by May 14, 2011, 7:43 PM

                              Ok, sorry, the right one is now running, but tftp still not working.
                              Here is what I have in /var/etc/inetd.conf :

                              tftp-proxy      dgram   udp     wait            root    /usr/libexec/tftp-proxy tftp-proxy -v
                              19000   stream  tcp     nowait/0        nobody  /usr/bin/nc     nc -w 2000 192.168.1.236 25
                              19000   dgram   udp     nowait/0        nobody  /usr/bin/nc     nc -u -w 2000 192.168.1.236 25
                              19001   stream  tcp     nowait/0        nobody  /usr/bin/nc     nc -w 2000 192.168.1.235 80
                              19001   dgram   udp     nowait/0        nobody  /usr/bin/nc     nc -u -w 2000 192.168.1.235 80
                              19002   stream  tcp     nowait/0        nobody  /usr/bin/nc     nc -w 2000 192.168.1.235 443
                              19002   dgram   udp     nowait/0        nobody  /usr/bin/nc     nc -u -w 2000 192.168.1.235 443
                              19003   stream  tcp     nowait/0        nobody  /usr/bin/nc     nc -w 2000 192.168.1.13 3074
                              19003   dgram   udp     nowait/0        nobody  /usr/bin/nc     nc -u -w 2000 192.168.1.13 3074
                              19004   dgram   udp     nowait/0        nobody  /usr/bin/nc     nc -u -w 2000 192.168.1.13 88
                              19005   stream  tcp     nowait/0        nobody  /usr/bin/nc     nc -w 2000 192.168.1.234 3389
                              tftp            dgram   udp     wait            root    /usr/libexec/tftpd      tftpd /tftpboot
                              
                              
                              1 Reply Last reply Reply Quote 0
                              • J
                                jimp Rebel Alliance Developer Netgate
                                last edited by May 14, 2011, 7:47 PM

                                : sockstat | grep inetd
                                root     inetd      47253 4  stream /var/run/check_reload_status
                                root     inetd      47253 6  stream /var/run/check_reload_status
                                root     inetd      47253 12 dgram  (not connected)
                                root     inetd      47253 13 udp4   *:*                   *:*
                                root     inetd      47253 17 udp4   127.0.0.1:6969        *:*
                                root     inetd      47253 18 udp4   127.0.0.1:69          *:*
                                

                                That last line is tftpd. You probably need to add a port forward on LAN for port udp/69 to direct it at 127.0.0.1:69, since inetd is only listening on localhost.

                                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                Need help fast? Netgate Global Support!

                                Do not Chat/PM for help!

                                1 Reply Last reply Reply Quote 0
                                • ?
                                  Guest
                                  last edited by May 14, 2011, 8:10 PM

                                  Damn sorry…. still does not work, even after creation of nat+passing rule.
                                  May this be due to the fact that I have manual outbound nat ? (required for xbox live to work correctly)

                                  Here are sockstat results, it seems that tftp daemon is listening

                                  root     inetd      1883  4  stream /var/run/check_reload_status
                                  root     inetd      1883  6  stream /var/run/check_reload_status
                                  root     inetd      1883  12 dgram  (not connected)
                                  root     inetd      1883  13 udp4   *:*                   *:*
                                  root     inetd      1883  17 udp4   127.0.0.1:6969        *:*
                                  root     inetd      1883  18 tcp4   127.0.0.1:19000       *:*
                                  root     inetd      1883  19 udp4   127.0.0.1:19000       *:*
                                  root     inetd      1883  20 tcp4   127.0.0.1:19001       *:*
                                  root     inetd      1883  21 udp4   127.0.0.1:19001       *:*
                                  root     inetd      1883  22 tcp4   127.0.0.1:19002       *:*
                                  root     inetd      1883  23 udp4   127.0.0.1:19002       *:*
                                  root     inetd      1883  24 tcp4   127.0.0.1:19003       *:*
                                  root     inetd      1883  25 udp4   127.0.0.1:19003       *:*
                                  root     inetd      1883  26 udp4   127.0.0.1:19004       *:*
                                  root     inetd      1883  27 tcp4   127.0.0.1:19005       *:*
                                  root     inetd      1883  28 udp4   127.0.0.1:69          *:*
                                  
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    jimp Rebel Alliance Developer Netgate
                                    last edited by May 14, 2011, 8:11 PM

                                    manual outbound nat wouldn't affect it.

                                    Show me exactly what your port forward rule on LAN looks like.

                                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                    Need help fast? Netgate Global Support!

                                    Do not Chat/PM for help!

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      Guest
                                      last edited by May 14, 2011, 8:15 PM

                                      I just attached them.

                                      1.png
                                      1.png_thumb
                                      2.png
                                      2.png_thumb

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        jimp Rebel Alliance Developer Netgate
                                        last edited by May 14, 2011, 8:26 PM

                                        Just do UDP, not tcp/udp.

                                        Also make sure you do NOT have the TFTP proxy set to listen on LAN (System > Advanced, Firewall/NAT tab).

                                        Next week some time I can add an interface selection to add the rules automatically, and warn if the proxy is on. They'd both be adding a rule redirecting port 69, so if one is active the other wouldn't work.

                                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                        Need help fast? Netgate Global Support!

                                        Do not Chat/PM for help!

                                        1 Reply Last reply Reply Quote 0
                                        • ?
                                          Guest
                                          last edited by May 14, 2011, 8:38 PM

                                          Ok, I extended to TCP/UDP to see but now I set it back to UDP only.
                                          TFTP proxy is not listening on any interface.
                                          Still not working… I'm getting crazy :) anyway, thanks for your support

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received