After a hardware upgrade I ended up with a spare mini pc. Noticed these two icons and thought I might be able to use it as a WiFi access point with VLANs using OPNsense.

Is that possible? If so, what do I even need to buy to plug into there?

I don’t need it to do any fancy dhcp, dns or firewall stuff, I just need a WiFi access point with support for VLANs.

  • umbrella@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    14 hours ago

    yes do it.

    depending on what you get for a wifi card, you might want to virtualize some flavor of linux like openwrt to run the wifi.

    bsd (opnsense, pfsense) is notoriously bad for wifi support.

    the biggest challenge here is selecting the right wifi hardware imo.

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    5
    ·
    18 hours ago

    It is possible but not recommended. The hardware is designed to world as a client so it is likely missing a lot of modern features. You can but the quality of the signal will suck. It might be fine as a temporary solution for a single device but that’s it.

  • irotsoma@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    16 hours ago

    Mine has those, but it was a different model that had the hardware required to do WiFi. Likely it’s not included and unless the device was designed to modify, it’s likely that the motherboard doesn’t have a way to add it easily and there won’t be much space to do your own WiFi card and soldering if the board does have the connections and support in the firmware/BIOS. Best bet would be a USB WiFi card.

  • stoy@lemmy.zip
    link
    fedilink
    English
    arrow-up
    39
    ·
    2 days ago

    Before you start with this project, consider the power use of a full X86 system even at idle and compare that to a standard router.

    If you are looking to run this as an access point permanently, the cost of power may add up.

    I am not saying that you shouldn’t do it, but take it into account before deciding.

    • kitnaht@lemmy.world
      link
      fedilink
      English
      arrow-up
      18
      arrow-down
      1
      ·
      2 days ago

      The architecture doesn’t determine the power draw so much as the system design. I’ve got a Chromebox running an i3 and sipping 4.5w at idle.

      • stoy@lemmy.zip
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 day ago

        I get that, it was just something I noticed when looking to build a NAS a few months ago, I was considering the power usage over time when compared with a Synology, and I seem to recall the Synology being much more power efficient, and when I saw OP talking about using a full X86 machine for an AP, I just thought it sounded very inefficient.

    • elyviere@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      That’s a good point, I’ll see if I can figure out the power draw of this system somehow. Any tips?

      • stoy@lemmy.zip
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 day ago

        Since you have the equipment at home you can just get a power meter and measure the computer and a router to see which uses most power over two hours.

        Make sure to install the baseline for the computer before the test so it is fairly representative

  • floofloof@lemmy.ca
    link
    fedilink
    English
    arrow-up
    23
    ·
    edit-2
    2 days ago

    Not all of these mini PCs have a wifi card in them even if they have the antennas for it. You might start by opening it to check whether the wifi antennas are connected, or whether you need to add a WiFi card.

    I think OPNsense would do what you’re looking for. I use it on a mini PC as my router, and it’s great, but I have not used it for WiFi (I run a separate access point). The limitation is WiFi hardware support. You will need to make sure your mini PC’s WiFi card has a driver in FreeBSD. Intel hardware is often a better bet than Realtek etc.

    https://docs.opnsense.org/manual/how-tos/interface_wireless_internal.html

    • elyviere@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      1 day ago

      I also use opnsense on a mini pc as a firewall, works great :)

      Seems that using it for WiFi is a little iffy based on most of these comments though. The guide you linked also didn’t cover much info about hardware, and I can’t see VLAN-support either, so maybe I should just give in and buy a ubiquity one instead.

    • dukatos@lemm.ee
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 day ago

      Intel AX200/210 cards do work on FreeBSD but people are having problems with it in AP mode, even on Linux. I didn’t try, but I planned to do the similar thing on NanoPi R5S with OpenWRT and gave up after the research.

      • Cort@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        iirc anything after 802.11ac doesn’t allow AP mode on client devices. Something about not being able to scan for restricted channels in 5/6ghz

  • Shimitar@downonthestreet.eu
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 day ago

    opnSense and WiFi don’t play too well due to limited BSD WiFi support.

    OpenWRT is a much better choice for an AP.

    At least make sure the WiFi on the minipc is supported by opnSense before attempting that…

    • elyviere@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      I don’t mind which software, I could absolutely use openwrt instead. Assuming I do, which hardware might I need?

      • Shimitar@downonthestreet.eu
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 day ago

        I only used OpenWRT on netgear (arm) hardware… So for x86 I have no idea, but they have great forums you can lurk or inquire…

        It should support all WiFi chipsets supported by Linux.

      • lemonuri@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 day ago

        Openwrt generally works great on x64 PCs. Thiss machine will most likely be more beefy than your home router and could become your main firewall. It can handle adblocking and vpn client for all PCs on the network as well or whatever your need, as openwrt can do many nice things no commercial router can do out of the box. Install openwrt on your home router as well and use that as access point (connected via cable). You will improve your wifi signal as well. If your machine does not come with rj45 lan ports, install usb3 to rj45 adapters to the usb3.0 ports. They will give you the full 1000 mbit speeds.

        • Possibly linux@lemmy.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          18 hours ago

          OpenWRT isn’t quite as reliable as opnsense because it doesn’t have dual partitions. In the future that might change but for now OpenWRT focuses on max compatibly.

          In practice what this means is that you must be careful not force off OpenWRT when flashing firmware.

        • elyviere@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 day ago

          My current setup runs OPNsense on an x86 machine with 2.5Gbps ports (as an LXC inside proxmox), whereas the one in my post only has 1Gbps ports. But the location of it isn’t great for wifi, which is why I want to use this separate machine for wifi only. So there’s really no need for me to do firewall etc. on this one, I really just want something that can do VLAN’d wifi networks.

  • mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 day ago

    You might want to check what the actual hardware is first. You’ll probably be fine, but client 802.11 hardware can sometimes be underwhelming for hosting because they don’t have good stuff like beefed up MuMIMO.

    Although that’s assuming you will have a lot of traffic going through it, so you could always just test throughput and latency with iperf to see how well it functions.

    • elyviere@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      I’d probably have to buy something before it supports WiFi. It’s built to run pfsense (has 4 ethernet ports) so I imagine that it would run just fine if I got it a good antenna, but who knows.

      • qbus@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        19 hours ago

        You should probably open it up and see if there’s even a Wi-Fi radio in there it’s probably not there because when they’re installed those plugs are removed and the screw terminals for the antenna are in their place

  • poVoq@slrpnk.net
    link
    fedilink
    English
    arrow-up
    16
    ·
    edit-2
    2 days ago

    These are probably just rubber nubs where you could install wifi antennas. You would still need to buy the antennas and a pcie m2 wifi addon card.

    • elyviere@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      Yea I did specifically ask what I would need to buy in the post, so I wouldn’t mind that.

  • pHr34kY@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 day ago

    I’ve done this before on Ubuntu. You can install nftables for routing, then install hostapd for a wifi AP.

    • elyviere@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      Sounds like a pain to configure compared to some of the more designated systems. Is the advantage that you use Ubuntu for other things as well, so it’s a more multifunctional system?

      • pHr34kY@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        5 hours ago

        That’s basically it. My Ubuntu server is a router, NAS, plex server, public statum-1 NTP server, wordpress server, nextcloud server, security camera NVR, SMTP/IMAP mail server, CUPS print server, tor relay, and probably a few other things I forgot about.

        You can do a lot with a single CPU from 2015.

        I don’t have hostapd on it anymore. I now have dedicated APs on OpenWRT. The main problem with using a WNIC for an AP is that they don’t typically have a very strong broadcast output. I had to add an amplifier, and even then it wasn’t great.

  • AbidanYre@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    20 hours ago

    You’d probably be a lot better off buying a decent access point (unifi, mikrotik, Aruba instanton).

  • cmnybo@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 days ago

    Use it for a firewall / router, but don’t bother with WiFi. There are no antenna connectors, so it probably doesn’t have a card installed and normal WiFi cards make terrible access points anyways.

    If you want to use OPNsense, make sure the NICs are supported. If it has Realtek NICs, you will probably have to use a Linux based firewall.

    • elyviere@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 day ago

      I already have opnsense on another one like this, so I don’t need a second firewall. Also, for the WiFi one, it doesn’t have to be opnsense. Someone mentioned openwrt which I wouldn’t mind using.