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

TFTP server

Scheduled Pinned Locked Moved pfSense Packages
10 Posts 5 Posters 2.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.
  • S
    slim2016
    last edited by Apr 3, 2018, 6:00 PM

    i'm trying to setup the tftp server in pfsense, i tried to upload a file but nothing uploads

    1 Reply Last reply Reply Quote 0
    • M
      Mirfster
      last edited by Apr 21, 2018, 10:50 AM

      I am just starting to try this out as well.  With my limited experience; this is what I did to upload files to the "/tftpboot" directory:

      1. Ensure SSH was enabled [System] - [Advanced] - [Secure Shell Server] - "Enable Secure Shell" = Checked
      2. Used WinSCP (portable version): https://winscp.net/eng/downloads.php
      3. Connected via WinSCP (using "SCP" protocol)
      4. *** Note: I had to authenticate with "root"… Using any other account would deny me access to upload...

      I am still looking for any instructions (seems very hard to find) on how this is exactly done entirely on pfSense; but not having much luck.

      For now, I am afraid that I do not have enough knowledge to guide you further than this.

      Best of luck and please let me know if you get this working.

      1 Reply Last reply Reply Quote 0
      • S
        slim2016
        last edited by Apr 21, 2018, 5:55 PM Apr 21, 2018, 5:12 PM

        I managed to upload a text file through the web gui and managed to retrieve it with the tftp get command. I didn't manage to upload a extreme switch firmware through the web gui maybe there is a size restriction.

        You don't have to use winscp, anything that supports sftp should be fine, cyberduck and transmit (osx only) works fine for me.

        Uploading files to tftpboot directory did the trick…so there must be a file size limit in the web gui.

        1 Reply Last reply Reply Quote 0
        • M
          Mirfster
          last edited by Apr 22, 2018, 3:58 PM

          Agreed any suitable client should work.  Also, I think that there may be a 32MB size limit in the Web GUI (but don't quote me on it).

          1 Reply Last reply Reply Quote 0
          • E
            Ethereal
            last edited by Nov 20, 2018, 12:33 PM

            I do have the same problem here. While I managed to tweak PFsense so I can upload via gui a IOS-XE bin, now I discovered I'm not able to "put" files on the TFTP Server. This is very inconvenient. While you're on your router and trying to backup the startup conf on your tftp you'll not be able to do it. I'll dig more and come back.
            Cheers,
            N

            N 1 Reply Last reply Nov 20, 2018, 1:39 PM Reply Quote 0
            • N
              NogBadTheBad @Ethereal
              last edited by Nov 20, 2018, 1:39 PM

              @ethereal

              Try the following:-

              ssh onto your router

              cd into the tftp directory

              touch filename << where filename is the name of the file you want to write to

              chmod 777 filename

              Andy

              1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

              1 Reply Last reply Reply Quote 0
              • E
                Ethereal
                last edited by Nov 20, 2018, 1:49 PM

                Hey @NogBadTheBad
                Does that mean I have to create a file and 777 for each file I want to upload ?
                That's not that convenient, right ?
                Cheers,
                N

                N 1 Reply Last reply Nov 20, 2018, 2:18 PM Reply Quote 0
                • N
                  NogBadTheBad @Ethereal
                  last edited by NogBadTheBad Nov 20, 2018, 2:23 PM Nov 20, 2018, 2:18 PM

                  @ethereal

                  It works from the gui fine, just not from a command prompt using the tftp from the cli:-

                  mac-pro:~ andy$ tftp 172.16.2.1
                  tftp> put test.file
                  Error code 256: File not found. << pre touching the file & chmod
                  tftp> put test.file
                  Sent 5242880 bytes in 19.2 seconds. << post touching the file & chmod
                  tftp>

                  It's been the same for years most Unix based tftp servers I've come across when transfering IOS images.

                  I don't actually use tftp on my pfSense box and just installed it to see if permissions were the issue.

                  Maybe @jimp has a better solution than me.

                  Andy

                  1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                  1 Reply Last reply Reply Quote 0
                  • E
                    Ethereal
                    last edited by Nov 20, 2018, 2:19 PM

                    Thanks for your input @NogBadTheBad !!

                    1 Reply Last reply Reply Quote 0
                    • N
                      nomadmd1
                      last edited by Sep 9, 2020, 4:37 PM

                      In case someone comes here looking for solution via search engine continue here:
                      https://forum.netgate.com/topic/156706/modification-of-usr-local-etc-rc-d-tftpd-sh-what-can-go-wrong

                      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