selfhosted

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

milan, in Joplin alternative?
@milan@discuss.tchncs.de avatar

I suppose Notesnook and StandardNotes come closest to these requirements. Also interesting: AnyType.

Zuberi, in XPipe status update: New scripting system, advanced SSH support, performance improvements, and many bug fixes
@Zuberi@lemmy.dbzer0.com avatar

Yo

maynarkh, in XPipe status update: New scripting system, advanced SSH support, performance improvements, and many bug fixes

Would this let me do something like SSH to a bastion host, elevate privs with sudo, and SSH forward from there, then elevate privs again on the final target I’m trying to get to? Maybe do that on 100 servers at the same time?

Back a half decade, I and my team of DBAs would have killed for something like that.

Sorry if I’m the “can it do this weird and unnecessary thing” guy, but it really looks like a dream come true if it’s what I think it is

crschnick, (edited )

From your description I would say yes.

You always have to fiddle around a bit with SSH jumps and fowards as there are two different ways in xpipe to handle that. You also have to take care of your authentication maybe with agent forwarding etc. if you use keys. But I’m confident that you can make this work with the new custom SSH connections in xpipe as that allows you to do basically anything with SSH.

atzanteol,

Honest question - why would you elevate privs on the bastion?

You can automatically use a bastion host with an SSH config entry as well in case you didn’t know:


<span style="color:#323232;">Host target.example.com
</span><span style="color:#323232;">  User  username
</span><span style="color:#323232;">  ProxyJump username@bastion.example.com
</span>

Then you just ssh target.example.com. Port forwarding is sent through as well.

maynarkh,

You’re right it should work like that, but I remember trying it, and it didn’t because of some weird security policy.

It is a very good tip though.

TCB13, (edited ) in Feedback on Design and Firewall Options
@TCB13@lemmy.world avatar

If you’ve an OpenWRT compatible router why are you thinking about pfsense? There isn’t much to gain there, your OpenWRT will do NAT and also has a firewall.

I like this device since 3ports would allow me to create a physically separate DMZ

OpenWRT can do this as well. What are your plans with the DMZ tho?

Be careful with the use of the acronym DMZ as in the context of typical routers and ISPs it has a different meaning of what you’re implying here. DMZ usually is used in the context for a single host that is “outside” the ISP router’s firewall and all requests coming into the ISP router will be forward to that device.

With my current diagram, it seems like it is not possible for the NAS to receive updates from the internet.

You NAS will never “receive updates” it will ask for updates. Maybe add a firewall rule that allows traffic from the NAS to the internet but not the other way around (this is usually the default state of any router, it will allow local devices to go to the internet but not incoming connections to those devices).

My TrueNas has 2x2.5Gb ports. Can i connect each NIC to a different network? Would this have any benefit?

You can, but is it really worth it? If someone hacks the device they’ll access the rest of the network. Same applies to your computers and cames consoles, they can be used to jump to the other side and vice versa.

Frankly I don’t see the usefulness of your setup as you’ll end up with weak points somewhere. Just get a single OpenWRT router and throw everything into the same network. Apply firewall restrictions as needed.

N0x0n,

Great read thank you !

One technical question if you don’t mind.

Maybe add a firewall rule that allows traffic from the NAS to the internet but not the other way around.

How does that work¿ I mean if the internet traffic isn’t allowed to the NAS, how can the NAS get updates than?

OpenTheSeaLegs,

Thanks for all the info!

At the time, I wasn’t sure why i bought OpenWRT compatible router, only that the community seemed to love it. Now I’m glad I got it!

Time to get OpenWRT working!

homegrowntechie, in Nextcloud/CardDav/iOS trouble

The issue could still be a fail-to-band issue if fail-to-band is looking at the user agent string (I’m not sure fail to ban looks at the user agent string, but it might be worth checking out.). The user agent string would likely be different on a mobile app versus a browser login.

electric_nan,

I did not see the iPad IP address in the fail2ban logs.

poVoq, in Nephele WebDAV server for Docker
@poVoq@slrpnk.net avatar

Link to source?

thatcasualgamingguy,
@thatcasualgamingguy@lemmy.nerdcore.social avatar

Username on github seems to be the same as on Docker Hub: github.com/sciactive/nephele

hperrin,

Yes, thank you. I’ll add that to the overview.

atzanteol, (edited ) in Feedback on Design and Firewall Options

This is way overcomplicated.

Internet -> router/firewall -> your network with all devices

No DMZ needed or wanted.

You will want a dhcp server which will likely be the router/firewall. It will tell all your internal systems to use it as a “gateway” for Internet traffic. The router then allows outbound for everybody and does NAT - basically it makes requests on that systems behalf and sends the results back. If your want external access to a system you configure port-forwarding on the router (again it acts as the middleman between external and internal systems).

Edited to add: I love that you provided a diagram though! Makes it much easier to discuss.

OpenTheSeaLegs,

I do tend to overcomplicate things 😆

It seems, based on your comments and others in the post, that my next step is to flash OpenWRT and do a deep dive on its firewall functions. Thanks for taking the time to educate me!

atzanteol,

Yeah - basic home-networking is typically pretty straight-forward. You’ll want to figure out your basic services (DHCP, DNS, and routing) but after that it’s pretty simple. OpenWRT should handle the DHCP and routing. I’m not sure about DNS though.

DHCP will tell systems "here is your IP, here is the CIDR of the network you are on, here is the router that handles traffic for things NOT on that network (e.g. the internet), and here are the DNS servers you should use for name resolution.

With DHCP you can also hand out “static leases” to give systems reliable IP addresses based on their MAC addresses. Then you can setup a DNS server that does internal name resolution if you want to be able to reference systems by name. This DNS server doesn’t need to be publicly available (and indeed should not be).

The Firewall is typically only for things coming into your network from the internet. You can restrict outbound traffic as well if you want but that’s less common. By default things on the internet will NOT be able to get to your internal systems because of NAT. So to allow things “out there” to access a service running on an internal system you’ll need to do port forwarding on your firewall. This will a) open a port on the internet side and b) send all traffic to that port to a port on an internal system. The router will handle all of the network-to-network and traffic handling stuff.

farcaller,

I’ll make a note here that a firewall is useful for internal traffic, too. Those IoT devices can get pretty annoying, so you’d want to e.g. drop your cheap webcams into a VLAN and disallow them from talking to enjoying but their cloud, and especially the other VLANs, or isolate Alexa capable device so it won’t try to figure what else you got there in your house over mDNS (it will).

A managed switch would do nicely. Having isolated ports on the switch (and the wifi AP) is also great if you want to make sure the specific device will only talk to the gateway and not its peers.

arudesalad, in Managed to set up an instance using Lemmy-Easy-Deploy but federation is being a bit weird
iso, in Managed to set up an instance using Lemmy-Easy-Deploy but federation is being a bit weird
@iso@lemy.lol avatar

You need to search them to make them available to your instance. You can also use lemmony or lemmy community seeder to automate it if you care enough.

arudesalad,

Thanks, does it usually miss votes and comments then?

iso,
@iso@lemy.lol avatar

It wasn’t but now it does I guess. I just searched a community didn’t existed locally on my instance and I got same result as you. No votes, no comments. I think this is enough to open an issue in the Lemmy repo.

Apollo2323, in Managed to set up an instance using Lemmy-Easy-Deploy but federation is being a bit weird

I remember there was a tool so you can download your lemmy subscriptions then upload it to your new Lemmy instance so in that way it will federate with those you are interested in. I don’t exactly remember the name but if I find it will comment back here.

Marsupial, in Managed to set up an instance using Lemmy-Easy-Deploy but federation is being a bit weird
@Marsupial@quokk.au avatar

I’ve been getting the same.

Some times it’s fine, other times it can take like 8 hours to “update”.

Someone told me a while ago to restart it every few days, it seems to help a bit.

exu, in What is your prefered way to get audiobooks/podcasts/ebooks for your audiobookshelf?

Sadly Audible and removing DRM with ffmpeg.

phanto, in So SBCs are shit now? Anything I can do with my collection of Pis and old routers?

I have an x86 proxmox setup. I stuck a kill-o-watt on it. Keep your pi setup if it does what you want, and realize that there’s someone out there who is jealous of your power bill.

chunkystyles,

My x86 Proxmox consumes about 0.3 kwh a day at around 15% average load. I’ve only had the Kill A Watt on it for a day, so I don’t know how accurate that is, but it shouldn’t be too far off.

BearOfaTime,

How bad is it?

My current file server, an old gaming rig, consumes 100w at idle.

I’m considering a TrueNAS box running either 2.5" ssd’s or NVME sticks (My storage target is under 8TB, and that’s including 3 years projected growth).

krash,

Holy crap! I have a n100 SFF that consumes 5-6 w idle (with WiFi on) and I have an old i5 (gen 6 I think) that consumes 30 at idle. Your rig is defiantly not meant to act as a server (unless you want to mine bitcoons or run boinc…)

BearOfaTime,

Lol, yea, it’s old, was built for performance, and hasn’t run right in a while.

I’m looking to setup a NAS and turn that thing off

helenslunch,
@helenslunch@feddit.nl avatar

How bad is it? My current file server, an old gaming rig, consumes 100w at idle.

That’s very bad haha. Most home servers for personal use are using 7-10w.

Although you’ll have to do the math with your local energy prices to determine how important that is. It’s probably not.

BearOfaTime,

It’s $1/day. I’ve done the math a few times

helenslunch,
@helenslunch@feddit.nl avatar

Yeah so you’d make your money back pretty quickly picking up a dedicated PC for that.

saiarcot895, (edited )

$1/day? At 100W average power usage, that’s 2.4kWh per day, suggesting that where you live, the price is 41.67 cents per kWh, roughly double that of California.

Is electricity that expensive where you live?

Edit: it’s been a while since I lived in the Bay area, I hadn’t realized that the electricity price now ranges from 38-62 cents per kWh, depending on rate plan and time.

stevehobbes, (edited )

Go tweak your power and fan settings. 100w at idle is way too much unless it’s 15 years old.

Fans, especially small ones are very sneaky energy hogs. Turn them waaay down.

BearOfaTime,

Nothing to be done. It’s old. Only fan to adjust is cpu, and I can tell when the cooler is getting dirty because the fan stays at higher speeds.

Otherwise there’s one large, slow rpm fan in the case, always on low speed.

nezbyte,

Depends on what your server is running. Multiple GPUs, HDDs, and other fun items start to add up to well over 100W. I justify it by using it to keep my 3d printer filament dry.

stevehobbes,

If you have multiple GPUs in your home server you’re probably doing it wrong. But even then, at idle, with no displays connected, the draw will be surprisingly low.

Most systems with some ssd/NVMe, 2-4 DIMMs and maybe a drive or two should idle closer to 50w-60w.

DarkDarkHouse,
@DarkDarkHouse@lemmy.sdf.org avatar

If you’re getting two gaming PCs out of one hypervisor, you might be doing it right.

nezbyte,

Agreed, don’t do what I do if you value your power bill. To be fair, my network switch pulls more power than my cobbled together server anyhow.

fuckwit_mcbumcrumble,

Newer CPU’s tend to use a good chunk more power under low loads than some older ones. Going from 1st Gen. Ryzen to 2nd Gen. got me about 20 watts higher total system power draw with my use case. And 3rd Gen. is even worse.

Intel is MUCH worse at it than AMD, but every Gen. AMD keeps cranking up those boost clocks and power draw and it really can make a difference at low to mid range loads.

My Ryzen 3000 based system uses about 90 watts at “idle” with all my stuff running and the hard drives on.

stevehobbes,

It’s probably more about aggressive default bios speeds. Tweak your c states / bios overclocking / pcie power management / windows power management features. Idle power has gone down on most chips.

The Ryzen 3000 should truly idle closer to 20-30w.

fuckwit_mcbumcrumble,

That is after tweaking bios settings. Originally I was at around 100 watts, now I’m closer to 80.

Keep in mind that’s with a bunch of hard drives, and it’s not a 100% idle, more of a 90% idle which is where modern “race to idle” CPUs struggle the most.

eager_eagle, (edited ) in So SBCs are shit now? Anything I can do with my collection of Pis and old routers?
@eager_eagle@lemmy.world avatar

huh? What happened? Who’s shitting on ARM?

loki, (edited )

man reads few comments on the internet.

man takes it literally.

Anxiety sets in

ㄟ(ツ)ㄏ

Marsupial,
@Marsupial@quokk.au avatar

Man who sits upside on toilet.

CaptainBasculin, in So SBCs are shit now? Anything I can do with my collection of Pis and old routers?

If you’re not doing stuff with them; not much point.

Since these devices have ARM processors, they can be embedded to places that doesn’t need high power and contain smaller volume; unlike PCs. You can host your a Jellyfin server on one, host a pi-hole so that you filter out every internet traffic from ads on another. Maybe a small FTP server that you can use as cloud storage?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • selfhosted@lemmy.world
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #