Oh no, you!

  • 0 Posts
  • 34 Comments
Joined 5 months ago
cake
Cake day: November 3rd, 2024

help-circle

  • neidu3@sh.itjust.workstoSelfhosted@lemmy.worldOff-grid hosting
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    9 hours ago

    Note: I have not done any research on the topic, but I’m just theorizing based on what I already know, as it’s an interesting mental excersice.

    Obviously the biggest problems will be uplink and power. Solar and a battery bank is the obvious choice, but other methods of powers can also work, such as a small generator in a river, etc.

    Lead acid batteries are relatively cheap, and building a 12V bank out of car batteries makes sense as there is plenty of off the shelf hardware available to invert or transform 12V into whatever you need. Charging it from solar will be inefficient, but it will work, and there is also plenty of hardware for this (tip: boat-related shops can help you out here)

    As for hosting hardware we’re of course dealing with the constraints of load vs power consumption. If you can go for something like a raspberry pi zero, you can run for days off of a single car battery with those cheap 5v cigarette-pkug chargers. If you need something more powerful, you need to scale up power accordingly.

    As for uplink, the question is “How much” off grid we’re talking. I will assume that there’s at least GPRS coverage that you can connect to with a 4G modem, even if you don’t get 4G speeds. Plenty of off-the-shelf hardware available here. If not applicable, just substitute with whatever is available, be it CDMA, packet radio, starlink (eww), or anything else.






  • Yes, but that’s done on the switch. Basically VLAN tags are applied in one of two ways:

    Untagged (sometimes called Access) is something you apply on a switch port. For example, if you assign a port to Untagged VLAN 32, anything connected to that port will only be able to see traffic assigned to VLAN 32.

    Tagged (sometimesreferred to as Trunk), on the other hand, is for traffic that is already assigned a VLAN tag. For example Tagged 32 means that it will allow traffic that already has a VLAN tag of 32. It is possible to assign multiple VLANs to a Tagged port. Whatever is connected to that port will need to be able to talk to the associated VLAN(s).

    In your particular case, the best practice would be to assign two ports (One for each host, obviously) to Untagged 32 (arbitrarily chosen number, any VLAN ID will do, as long as you’re consistent), and all the other ports as Untagged to a different VLAN ID. That way the switch will effectively contain two segments that cannot talk to each other.


  • As others have said: It will work as you’ve planned it. The subnetting will keep these two PCs separated (If they still need internet, just add a second IP in your router-PC to allow for communication with this subnet).

    VLANs aren’t required, but are more relevant when you want to force network segregation based on individual ports. If you really want to, you can add tagged virtual interfaces on these two separated hosts so that the others hosts aren’t able to simply change the address to reach these. The switch should ignore the VLAN tag and pass it through anyway. But again, it’s not really needed, just something you can do if you really want to play with tagged VLAN interfaces







  • I used to do the same, and for stationary PCs, that’s still my recommendation. Sure, some might actually need bleeding edge stuff for for some specific niche high performance thing, but for most people that’s a waste of money.

    The only exception is for laptops. I rely on laptops as I’m often on the go, and I’ve generally had better results when going high end (within reason) than going mid-tier.