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

    Installing pfsense on a soekris net-5501?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    24 Posts 4 Posters 12.6k 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.
    • D
      danswartz
      last edited by

      Hmmm, thanks, I will!  I was going on the state of the art at the time :)

      1 Reply Last reply Reply Quote 0
      • D
        danswartz
        last edited by

        Reading the blog entries about nanobsd, it refers to "packages suitable for an embedded environment" (quoting from memory).  How would one tell if a package is compatible with the embedded nanobsd install?

        1 Reply Last reply Reply Quote 0
        • Cry HavokC
          Cry Havok
          last edited by

          No idea :)  However, you may simply find that it's a case of if you install anything write heavy (such as Squid) then you run the risk of destroying your solid state storage, so the risk is yours.

          1 Reply Last reply Reply Quote 0
          • D
            danswartz
            last edited by

            Looking around, I've seen conflicting stories about how nanobsd works wrt packages.  Having thought about it, I'm not sure it really matters at this point, since I have an HD install that works.  My concern now is: how do I get a disk image backup so that if my HD dies, I can quickly re-image a new one and be back up and running.  An embedded install won't really solve that for me.  I think the way I want to go here is to set up my main server (linux based) to be a pxeboot server which can serve up a clonezilla-live setup, so I can plug in the new hard drive, boot from the network, restore the HD image from the ssh server and be good to go.

            1 Reply Last reply Reply Quote 0
            • Cry HavokC
              Cry Havok
              last edited by

              You've got a host of options.  The best is to take a direct image of the disk (with "dd").

              1 Reply Last reply Reply Quote 0
              • D
                danswartz
                last edited by

                Yeah, I get that.  What I want to avoid is having to disassemble the soekris, removing the HD from the PATA mounting kit, put it in an external USB drive, image it to (or from) and then put it back.  Major PITA…

                1 Reply Last reply Reply Quote 0
                • Cry HavokC
                  Cry Havok
                  last edited by

                  Given the nature of the case, you've got few other choices at this point.  If it had a VGA console there are a lot of other choices.

                  I'd normally suggest you boot from something like a live CD/USB drive and then image it across the network either to a file share or through use of netcat (nc).  What you'd need to do is build yourself a custom install that will boot the system without VGA or PS/2 being present, configure the LAN interface with DHCP and then start an SSH server on the LAN interface.  Then you'd SSH in and image it.

                  1 Reply Last reply Reply Quote 0
                  • D
                    danswartz
                    last edited by

                    Unfortunately, a soekris can't boot from a USB device :(  Supposedly clonezilla will work with serial console, so if I can get the pxe stuff to work I should be all set.  I'm kind of annoyed at myself for not doing my homework more thoroughly before going the soekris route, but what's done is done.  Thanks for the suggestions!

                    1 Reply Last reply Reply Quote 0
                    • D
                      danswartz
                      last edited by

                      Okay, here's the latest.  Got clonezilla-live to netboot okay.  For some reason, it took about 7 minutes for the netboot code running on the 5501 to actually ask for vmlinuz :(  That said, it came up fine (I have clonezilla tftp fetch filesystem.squashfs for the root filesystem).  It did come up fine, but that brought up the second problem: the BSD filesystem is not supported by clonezilla, so it would do the lowest common denominator approach, which is a dd sector by sector imaging of the filesystem, which is on a 29GB hard drive, which sucks.  I guess I need to take a step back and rethink this.

                      1 Reply Last reply Reply Quote 0
                      • D
                        danswartz
                        last edited by

                        One thing that may help: apparently the partition image tool used by clonezilla recently had UFS support added, so when that make it into the next clonezilla ISO, I will be in much better shape :)

                        1 Reply Last reply Reply Quote 0
                        • Cry HavokC
                          Cry Havok
                          last edited by

                          If you can netboot you should be able to netboot a FreeBSD system.  The FreeBSD handbook and mailing lists should be able to help with that bit (never tried it myself).

                          1 Reply Last reply Reply Quote 0
                          • D
                            danswartz
                            last edited by

                            I did actually get freebsd to boot on the 5501, but pardon me for being dense here - how will that help me do my backup?  I need something that can do a bare-metal restore (clonezilla works just fine for that), so solutions that involve doing a tar or somesuch to a remote filesystem are not helpful.  Checking the partclone (what clonezilla uses) site, there is UFS support, but it seems not built by default, so maybe I can get them to do that.  I also noticed extremely slow netboot (upwards of 7 minutes to start loading vmlinuz) - googling shows I am not remotely the only person having this issue, and it doesn't seem unique to soekris - I've heard different things like setting enet speed and duplex manually, etc…  I haven't had a chance to try this yet.

                            1 Reply Last reply Reply Quote 0
                            • D
                              danswartz
                              last edited by

                              Well, that is a bummer.  I ran a packet sniffer while doing a netboot.  There is a delay of almost exactly 7 minutes, during which I see an occasional '.' printed on the soekris console, but (key point here) NO network traffic.  None.  It's like it's trying to do something that isn't working and timing out.  Again, I have seen references to this 7 minute or so delay elsewhere, but with no resolution.  soekris website has a link to a mailing list, but the server there is down :(  I may just have to give this up as a bad idea and e-bay the net-5501.  Havoc, I do appreciate the suggestions, though (didn't want you to think I was not appreciative…)

                              1 Reply Last reply Reply Quote 0
                              • D
                                danswartz
                                last edited by

                                Well, good news.  The syslinux on my rhel5 system was ancient.  Got a much newer pxelinux and she comes right up.  Now, I just need to get UFS support from partimage/partclone :)

                                1 Reply Last reply Reply Quote 0
                                • Cry HavokC
                                  Cry Havok
                                  last edited by

                                  Watch that you may need UFS2 support, not just UFS support.

                                  The advantage of booting FreeBSD is that you will be able to read the file system.  Then you can do something like "find /root/file/system -depth -print | cpio -pdm /my/backup/location" to take a full image of the files (and permissions).  To restore you'd just reverse the process "find /my/backup/location -depth -print | cpio -pdm /root/file/system".

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    danswartz
                                    last edited by

                                    Yeah, you're right.  I note the most recent partimage tool (used by clonezilla) has "UFS support" in the changelog, but looking at what the autoconfigure tool requires, it wants libufs2.  I think I'll wait until they have this working, and in the meantime, back it up your way.  Thanks!

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      marcosk916
                                      last edited by

                                      Hi

                                      Could you describe your procedure to install pfsense with all packages to hard disk (on soekris net5501)

                                      Thanks

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        mathias
                                        last edited by

                                        Well I can describe how I did it  :)

                                        I set up af TFTP server on a Debian machine and then booted the Soekris (5501) from that machines NIC. There are many guides on the net describing how to setup a TFTP server. Iam not sure this is the easiest way but it worked perfectly for me.
                                        I guess the easiest thing is to mount the harddrive in another machine, install PfSense on it and then put it back in the Soekris.

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.