There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

kbin.life

PeachMan , to selfhosted in ELI5: Why are SBCs nowhere to be found?
@PeachMan@lemmy.one avatar

I was under the impression that it’s mostly Raspberry Pi stuff out of stock nowadays, and similar boards from Odroid and Orange Pi are easier to find? I see both of those in stock at Amazon right now, though I don’t know the exact models you want.

Coeus , to nostupidquestions in Can you claim 'Abandoned' Communities

Talk to an admin

SamXavia OP ,
@SamXavia@lemmy.world avatar

of the community? or the instance? as I’m not sure how to find one on the instance

Tywele ,

At the bottom of the sidebar you can see a list of the instance admins

Just like the mods in the sidebar of a community

SamXavia OP ,
@SamXavia@lemmy.world avatar
flathead ,
@flathead@quex.cc avatar

sidebar of lemmy.world (not the community) lemmy.world:

screen capture showing admins for lemmy.world

SamXavia OP ,
@SamXavia@lemmy.world avatar

Ok thank you

squaresinger ,

To specify a bit: The sidebar of the front page of whatever instance that community is on. lemmy.world admins will not be able to help you in regards to communites not on lemmy.world.

SamXavia OP ,
@SamXavia@lemmy.world avatar

Thanks just found it

knowncarbage , to linux in Why is Linux so frustrating for some people?

Linux gives you freedom.

Freedom lets you break stuff.

If, like Windows or MacOSyou just use it as intended by official support, it should be fine. If you start just adding everything and anything from anyone you’re gonna break stuff.

Other stuff is made to be idiot proof, Linux is not.

bdonvr , to selfhosted in ELI5: Why are SBCs nowhere to be found?

For a while there Adafruit was stocking pi4bs every business day at around 11am est, was able to get one by camping it at that time. Make an account first and add your address and payment

But that was a few months back I don’t know the situation now

tiwenty , to selfhosted in ELI5: Why are SBCs nowhere to be found?
@tiwenty@lemmy.world avatar

These days you can find some kinda NUCS which are way more powerful and customisable for not a lot more than a fully fledged RPI4 with SD card and PSU

KelsonV ,
@KelsonV@lemmy.world avatar

At least until the NUCs run out, now that Intel’s discontinuing them

tiwenty ,
@tiwenty@lemmy.world avatar

That’s why I added the “kinda”. There are a lot of small AMD boxes that can do a lot with those Ryzen.

Shurimal ,

Those small AMD boxes are great. I set up 3 MSI ones as Kodi/LibreELEC media boxes and they work very well, stay cool and quiet while having plenty of horsepower for 4k.

Lrobie ,

There’s a lot of used mini PCs from Dell, HP, Lenovo that go for cheap on ebay. Those are a good alternative.

jayrule ,

These are my go to. I think between rasp pi and the likes of those, Intel nucs and these, these are the best option by far

nothacking , (edited ) to selfhosted in ELI5: Why are SBCs nowhere to be found?

Still the same situation, high demand, low production capacity, part shortages. Try finding an alternative SBC.

Personally I really like the BeagleBone black (beagleboard.org/black), because it has integrated flash (no more rummaging for a micro SD card), and lets you ssh over USB. (no more debugging network connectivity, or searching for a unused monitor). It still can boot from a micro SD or USB drive, so if the flash breaks (or gets bricked) it’s easy fixable. The best part is no USB Mini-B connectors that break after ten uses. (Those things are cancer, they are absolutely awful and everywhere)

One thing to be aware of with them is the lack of on board WiFi, so if you need that make sure to get a USB WiFi radio.

</soapbox>

JollyGreen_sasquatch , to selfhosted in Proxy to TCP port with real IP

Short answer no, but you can add the source IP as part of the http header www.nginx.com/resources/wiki/start/…/forwarded/ then you have to log that bit of the header at the app level.

There can be ways of your are using ipv6, basically turning your cloud host into a router, but but ipv4 you would have to have a 1:1 mapping and setup the routing carefully to make it work.

denissimo , to linux in Do you use an antivirus? Why, or why not?
@denissimo@feddit.de avatar

No. That would defeat the purpose of me installing Linux in (old) laptops. Windows feels sluggish enough with a sea of bad things wanting your minimum wage and have Windows Defender prevent it but not all of it, obviously.

I put all my attention to prevention and set strict rules on the router. It can be as simple as setting the DNS to stuff like dnsforge.de or DIY it with PiHole with hosts lists of your hearts content that update itself weekly, I do the latter. Nothing beats a cross platform solution that protects every device in the network, if you’re after 100% performance. Of course you can still catch bad things, such as social engineering by email that happened over at Linus Tech Tips. You better stay vigilant no matter what solution you use and don’t sleep on making backups, which can be as simple and automated when you use Syncthing for example.

sfera ,

I’m not sure if you recommended syncthing a backup tool, because it isn’t one. Just making sure that there’s no confusion…

denissimo ,
@denissimo@feddit.de avatar

You’re right. Syncthing isn’t a backup tool per se and the devs even tell you that in the FAQ. But forgive me if I did preach about it anyway, because you can enable file versioning (keep old and deleted files on each host) which kind of makes it backup incase something bad happens? Anyway it is my set and forget solution for Linux, Android and Windows. If you could recommend me a alternative that ticks these boxes I’d appreciate that. :)

captain_aggravated , to linux in Why is Linux so frustrating for some people?
@captain_aggravated@sh.itjust.works avatar

There are a lot of factors I think.

Some are pretty legitimate, like the lack of Adobe or Autodesk support on Linux, which means a lot of people just 100% cannot participate in their industry using Linux. It’s borderline illegal to use Linux if you’re a mechanical or civil engineer; Solidworks and MATLAB are pretty much regulatory requirements; you’d probably lose your engineering license if you turned in a drawing made in FreeCAD. In the art space, tell a publishers you drew something in Inkscape and watch their personality leak out their ears. Everyone hates Adobe, but glory to Adobe.

There are also legitimate culture shocks; there’s this LTT video where they had iJustine on, and Linus and Justine swapped platforms, he on a Mac, she on a PC, and they were given basic tasks like “install Slack. Take a screenshot. Paste that screenshot in a Word Processing document. Save it as a PDF. Send that PDF to James in a Slack message. Uninstall Slack.” Justine immediately started looking around the back of the monitor for USB ports, rapidly found that a fresh install of vanilla Windows doesn’t (or didn’t at the time) come with a word processor that could save documents as a PDF, Linus immediately went to the web browser instead of the app store…They did similar stunts with their Linux challenge later on, though I’d kinda argue about the tasks they were set to do (such as “sign” a document, which Linus started to do cryptologically but didn’t have any keys enrolled because who the fuck does, and Luke just…copy/pasted an image of his handwriting?) But anyway. Linux is different than Windows to use, and even a VERY windows-like DE like Cinnamon is going to have differences that will feel foreign. I remember tripping over “shortcuts” being “links or launchers depending on what you want to do.”

There’s also the fact that Microsoft has done a world class job at making the average normie hate and fear the command line interface. Because universally, when you see a cmd prompt appear in Windows, it is a bad thing. That hate gets transferred to Linux, where we do routinely use the terminal because while it can be a little arcane, with a little bit of learning you can do some powerful stuff. But, because people have been so conditioned to hate the CLI by Microsoft, you get exchanges like this:

“Hey I’m trying out Pop!_OS because you nerds keep saying it’s good, and my laptop can connect to the internet with ethernet but not Wi-Fi, what’s up with that?” “Well let’s see, could you open a terminal and type sudo lshw -C network, and then copy-paste what it says here for me to look at?” “NO!!!11!! NEVAR!!! How DARE you suggest I use a computer by doing anything other than pointing at little pictures?! The indignity! It’s current year!!”

Finally, before I hit the character limit for this post, there’s just a reputation around Linux. I’ve had this happen more than once, someone will ask to use my computer to look something up on the internet. “Sure.” They find the Firefox icon on the quicklaunch bar just fine, it pops open, they’re doing fine, then they notice the color scheme and icons are a little different and they ask “uhh, what version of Windows is this?” And I say “It’s Linux Mint.” And they lift their hands off the keyboard with the same gesture as if I just told them my cute furry pet in their lap is actually a tarantula. They have it in their head that Linux is deliberately hard to use because it’s for computer nerds–they think all Linux is Suckless–and because they’re not computer nerds, they can’t use Linux. So the second they know it’s Linux, they “can’t” use it.

Reil , to gaming in What's the most toxic game community you know of?

League of Legends is toxic in the way of people getting too emotionally invested in a game, but Counterstrike (in the old days, pre Source and GO) was toxic in a casually bigoted way almost completely detached from the state of the current match, which I think is worse.

ham_bitious , to amateur_radio in Old school grass roots: where are the classic circuits one could build from RadioShack basic discrete components?
@ham_bitious@lemmy.radio avatar

What do you want to do? Just build anything?

TheOtherJake OP ,

I like to etch circuits, mess around, and learn. I don’t care to mess with SDR stuff or buying anything. The art of building is far more interesting than the end goal IMO.

ham_bitious ,
@ham_bitious@lemmy.radio avatar

If you’re just looking to build stuff, there are plenty of circuits to find on the web.

And +1 on building being more fun than operating!

croobat , to nostupidquestions in Why do most gaming laptops have vents on the bottom?
@croobat@lemmy.world avatar

You know, I’ve never thought about why they were called laptops. 🤔

frgl , to gaming in What's the most toxic game community you know of?

Left 4 Dead 2 versus. I dare you to join a random match online and last longer than 10 minutes without getting kicked. Or just search for “left 4 dead 2 versus kicked” and you will find countless examples of people complaining about it.

It’s become a meme at this point and I’m pretty sure that people kick for fun although some claim that people kick you for not being good enough or too good. Just play with friends instead or play campaign, people are nice there.

GustavoM , to selfhosted in Pihole vs AdGuard Home
@GustavoM@lemmy.world avatar

As someone who has tried both and went back to pihole for no reason other than “why not?” – it works as intended, does everything accordingly and I have 0 issues running it plus 2x unbound dns servers.

NarrativeBear ,

In the same boat as you here. Tried both and went back to Pi-hole because “why not?”

Adguard does have homeassistant setup which was nice and easy, but I like to compartmentaliz my setup so if homeassistant goes offline my internet does not go out when adguard is down.

Since I started running pfsense on a custom PC with dedicated NIC, unbound has been my go to choice now for DNS and Adblock. I use Pi-hole on specific subnets now.

ptz , to selfhosted in Proxy to TCP port with real IP
@ptz@dubvee.org avatar

Is there any solution (program/Docker image) that will take a port, forward it to another host (or maybe another program listening on the host) that then modifies the traffic to contain the real source IP. The whole idea is that in the server logs I want to see people’s real IP addresses, not the server in the cloud private VPN IP.

Not that I’m aware of. Most methods require some kind of out-of-band way to send the client’s real IP to the server. e.g. X-Forwarded-For headers, Proxy Protocol, etc.

If your backend app supports proxy protocol, you may be able to use HAProxy in front on the VPS and use proxy protocol from there to the backend. Nginx may also support this for streams (I don’t recall if it does or not since I mainly use HAProxy for that).

Barring that, there is one more way, but it’s less clean.

You can use iptables on the VPS to do a prerouting DNAT port forward. The only catch to this is that the VPN endpoint that hosts the service must have its default gateway set to the VPN IP of the VPS, and you have to have a MASQUERADE rule so traffic from the VPN can route out of the VPS. I run two services in this configuration, and it works well.

<pre style="background-color:#ffffff;">
<span style="color:#323232;">iptables -t nat -A PREROUTING -d {VPS_PUBLIC_IP}/32 -p tcp -m tcp --dport {PORT} -j DNAT --to-destination {VPN_CLIENT_ADDRESS}
</span><span style="color:#323232;">iptables -t nat -A POSTROUTING -s {VPN_SUBNET}/24 -o eth0 -j MASQUERADE
</span>

Where eth0 is the internet-facing interface of your VPS.

Edit: One more catch to the port forward method. This forward happens before the traffic hits your firewall chain on the VPS, so you’d need to implement any firewalls on the backend server.

nickshanks OP ,

Thank you so much for the quick and detailed reply, appreciate it!

Done all of the iptables stuff, just trying to change the default gateway on the server at home now:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">network:
</span><span style="color:#323232;">  version: 2
</span><span style="color:#323232;">  renderer: networkd
</span><span style="color:#323232;">  ethernets:
</span><span style="color:#323232;">    eth0:
</span><span style="color:#323232;">      dhcp4: true
</span><span style="color:#323232;">      routes:
</span><span style="color:#323232;">        - to: 0.0.0.0/0
</span><span style="color:#323232;">          via: <vps public ip>
</span>

Does the above netplan yaml look right? When it’s applied, I can’t access the internet or even the VPS public IP.

nickshanks OP ,

Do I need to specify to forward VPN traffic through my router and then traffic to 0.0.0.0/0 through the VPN?

ptz ,
@ptz@dubvee.org avatar

See my other response.

You may need to move the logic from netplan to a script that gets executed when the VPN is brought up. Otherwise, it will likely fail since it won’t have the VPN tunnel interface up to route traffic to.

ptz ,
@ptz@dubvee.org avatar

Forgot to ask: Is your server a VPN client to the VPS or a VPN server with the VPS as a client? In my config, the VPS is the VPN server.

Not sure about the netplan config (all my stuff is debian and uses oldschool /etc/network/interfaces), but you’d need logic like this:

Server is VPN client of the VPS:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">  routes:
</span><span style="color:#323232;">    # Ensure your VPS is reachable via your default gateway
</span><span style="color:#323232;">    - to: <vps public ip>
</span><span style="color:#323232;">      via:  <your local gateway>
</span><span style="color:#323232;">    # Route all other traffic via the VPS's VPN IP
</span><span style="color:#323232;">    - to: 0.0.0.0/0
</span><span style="color:#323232;">      via:  <vps vpn ip>
</span>

You may also need to explicitly add a route to your local subnet via your eth0 IP/dev. If the VPS is a client to the server at home, then I’m not sure if this would work or not.

Sorry this is so vague. I have this setup for 2 services, and they’re both inside Docker with their own networks and routing tables; I don’t have to make any accommodations on the host.

nickshanks OP ,

Everything I use is in Docker too, I’d much rather use Docker than mess around with host files, but to try it out I don’t mind. If you have an image you could share, I’d appreciate it.

Anyway, neither are clients or servers as I just used ZeroTier as a quick setup. On my other infra I use wireguard with the VPS being the server (that setup works well but I only reverse proxy HTTP stuff so X-Forwarded-For works well).

ptz ,
@ptz@dubvee.org avatar

I’ve no experience with Zerotier, but I use a combo of WG and Openvpn. I use OpenVPN inside the Docker containers since it’s easier to containerize than WG.

Inside the Docker container, I have the following logic:

  1. supervisord starts openvpn along with the other services in the container (yeah, yeah, it’s not “the docker way” and I don’t care)
  2. OpenVPN is configured with an “up” and “down” script
  3. When OpenVPN completes the tunnel setup, it runs the up script which does the following:
<pre style="background-color:#ffffff;">
<span style="color:#323232;"># Get the current default route / Docker gateway IP
</span><span style="color:#323232;">export DOCKER_GW=$(ip route | grep default | cut -d' ' -f 3)
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Delete the default route so the VPN can replace it.
</span><span style="color:#323232;">ip route del default via $DOCKER_GW;
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Add a static route through the Docker gateway only for the VPN server IP address
</span><span style="color:#323232;">ip route add $VPN_SERVER_IP via $DOCKER_GW; true
</span><span style="color:#323232;">ip route add $LAN_SUBNET via $DOCKER_GW; true
</span><span style="color:#323232;">
</span>

LAN_SUBNET is my local network (e.g. 192.168.0.1/24) and VPN_SERVER_IP is the public IP of the VPS (1.2.3.4/32). I pass those in as environment variables via docker-compose.

The VPN server pushes the default routes to the client (0.0.0.0/1 via <VPS VPN IP> and 128.0.0.0/1 via <VPS VPN IP>

Again, sorry this is all generic, but since you’re using different mechanisms, you’ll need to adapt the basic logic.

nickshanks OP ,

Thanks, this helps a lot. So in your OpenVPN config, on the client, do you have it to send all traffic back through the VPN?

ptz ,
@ptz@dubvee.org avatar

You may be able to do it through the client, yes, but I have it pushed from the server:

<pre style="background-color:#ffffff;">
nickshanks OP ,

Okay, can we go back to those iptables commands?

<pre style="background-color:#ffffff;">
<span style="color:#323232;">iptables -t nat -A PREROUTING -d {VPS_PUBLIC_IP}/32 -p tcp -m tcp --dport {PORT} -j DNAT --to-destination {VPN_CLIENT_ADDRESS}
</span><span style="color:#323232;">iptables -t nat -A POSTROUTING -s {VPN_SUBNET}/24 -o eth0 -j MASQUERADE
</span>

Just to confirm, is the -o eth0 in the second command essentially the interface where all the traffic is coming in? I’ve setup a quick Wireguard VPN with Docker, setup the client so that it routes ALL traffic through the VPN. Doing something like curl ifconfig.me now shows the public IP of the VPS… this is good. But it seems like the iptables command aren’t working for me.

ptz ,
@ptz@dubvee.org avatar

Just to confirm, is the -o eth0 in the second command essentially the interface where all the traffic is coming in?

That is the interface the masqueraded traffic should exit.

wgs ,
@wgs@lemmy.sdf.org avatar

Setting the default gateway to the VPN has many implications that you must take into account before doing it:

  • you need to allow ALL traffic through the VPN ACL, which nullify the concept of ACL as a security measure.
  • it breaks the VPN as the encapsulated packets cannot reach the other site. You need a /32 route to the other site to keep the VPN up.
  • it will route ALL the internet traffic from this host through the VPN, and the internet access of the other site.
  • it could break access to LAN of the server, so you might need to set your local routes manually.
  • it can let your server access the LAN of the remote server, this leaking local networks.

A better option would be to use VRFs to route back traffic coming through the VPN back to it.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines