Scrath

joined 1 year ago
[–] Scrath@lemmy.dbzer0.com 1 points 2 days ago (1 children)

I'm not sure that's possible on most routers but I'm very much not an expert in networking

[–] Scrath@lemmy.dbzer0.com 1 points 2 days ago

I don't think that's how it works with my router. I read a bit about DNS failover and the consensus seemed to be that all DNS servers listed should return equal results since requests are spread round-robin between them (at least for mikrotik routers).

[–] Scrath@lemmy.dbzer0.com 1 points 3 days ago (5 children)

You are lucky I haven't deleted my pi-hole VM yet ;D

In the Pi-Hole DNS settings I have the following configuration:

  • Upstream DNS Servers => Quad9 (filtered, DNSSEC) both checkboxes for IPv4 checked
  • Under Custom DNS servers I added a line with my routers IP
  • Under Interface settings => Permit all origins. Note the warning written regarding this setting and check whether it applies for your setup!
  • Under Advanced DNS settings I have enabled "Never forward non-FQDN A and AAAA queries" and "Never forward reverse lookups for private IP ranges". Since according to the warning this would block local hostname resolution note the next setting.
  • Under conditional forwarding I have added this line true,192.168.1.0/24,192.168.1.1,fritz.box. fritz.box was my local DHCP domain name but has since been changed to lan.

The other settings in Pi-Hole were under the Local DNS Records menu where I added my domain name (let's call it example.com) to the list of local DNS records and pointed it at the IP of the server running my reverse-proxy. Finally I added each subdomain I wanted to use to the List of local CNAME records and pointed it at the domain I just entered to the other list.

I can't perfectly tell you what my router settings were unfortunately since I have recently moved and replaced my fritzbox with a mikrotik router. The main thing you have to do though is to go to the DHCP server settings of your router and set the pi-holes IP address as the DNS server. Note that in the case of the pi-hole being offline for any reason you will be unable to resolve any domains while in this network

It might be possible to do some sort of failover setup by running a second pi-hole with identical settings but I did not want my network connectivity depending on any device other than my router being on. Hence my move back to using my mikrotiks built-in DNS server which fortunately also supports adding lists for DNS adblocking.

[–] Scrath@lemmy.dbzer0.com 5 points 3 days ago* (last edited 3 days ago) (7 children)

I'm not the guy you replied to but personally I use a setup called split-horizon DNS.

  1. I have a DNS server running on a raspberry pi which I have set up as the DNS server for all devices in my local network (by setting it in the router).
  2. This DNS server has my domain name as an A record pointing to my reverse-proxy (Nginx Proxy Manager), e.g. example.com would resolve to 192.168.0.100.
  3. Any subdomain I want to use is set up as a CNAME record in my DNS server referring to the previously configured A record with my domain. (jellyfin.example.com => example.com)
  4. Now all requests to the registered domain and subdomain are routed to my reverse-proxy which I configured to forward them to the correct service depending on the given subdomain.

This is a little bit of a simplification. I also use a cloudflare tunnel to allow access to select subdomains and I have 2 reverse-proxies chained together since NPM can resolve services by their container name as long as they are in the same docker network.

Also probably important: My DNS server was a pi-hole (until today at least) and did not act as my DHCP server. This meant it had no idea of local device hostnames and therefore was configured to forward queries to local device names to my routers built-in DNS server.

The domain I use for my services is one I rent from a registrar so that I can get valid SSL certificates without self-signing them. If you are fine with self-signed certificates or simple http you probably don't need to do that.

[–] Scrath@lemmy.dbzer0.com 20 points 1 week ago* (last edited 1 week ago) (1 children)

I have also heard that you can bind your hypothetical torrent client to your hypothetical VPN network interface meaning it would be unable to even send out any data if the VPN was not connected.

Or in the case of docker use a prepackaged VPN+Torrent container or pipe all container network traffic through a VPN container like gluetun

[–] Scrath@lemmy.dbzer0.com 3 points 1 week ago

I think there was a specific app for google TV which I used. My main problem was probably the lack of a wired connection since the Chromecast doesn't have an ethernet port

[–] Scrath@lemmy.dbzer0.com 2 points 1 week ago

Some cars that have this literally tell you to get it serviced by the manufacturer :/ In my limited experience, that's mostly cars after built after 2010. Mine (Skoda Fabia 2) only shows a little wrench in the display which I can simply tell to go away.

[–] Scrath@lemmy.dbzer0.com 4 points 1 week ago (2 children)

Meanwhile I can't even use steam in-home streaming to my chromecast because the artifacts and input lag is too bad to use.

[–] Scrath@lemmy.dbzer0.com 5 points 1 week ago (6 children)

Maybe he means the automatic service interval that pops up on a lot of cars? I personally treat that one as more of a reminder to check the oil and tire pressure

[–] Scrath@lemmy.dbzer0.com 2 points 3 weeks ago (1 children)

What about NAS systems? I don't recall seeing any for 10" before

[–] Scrath@lemmy.dbzer0.com 4 points 3 weeks ago

I believe DVDs do have DRM actually but it has been broken so long ago as to be a non-issue

44
submitted 5 months ago* (last edited 5 months ago) by Scrath@lemmy.dbzer0.com to c/electronics@discuss.tchncs.de
 

Hello everyone, I recently built a small distribution board to distribute 5V to multiple components for use in a robotics project. I made each output switchable with an individual switch and an LED to indicate the current state. When I went to test it using a lab power supply I noticed that the LEDs would start flickering weirdly when I turned them off and on again.

https://imgur.com/a/zaSCUby

As it turns out, the LEDs, which I found in my dads old parts in a bag labeled TLBO 5410, are apparently blinking LEDs. I found a datasheet for TLBR5410 LEDs which seem pretty much identical to what I have accidentally used.

Apparently these LEDs are made to operate directly from a 5V supply without an additional current limiting resistor (it is already built in) and are made to continuously blink at a frequency of 3Hz.

Because I thought I was using standard LEDs I added a series resistor causing them to behave weirdly due to low voltage. For comparison, this is how they are supposed to act: https://imgur.com/a/fXlcEDs

 

From left to right:

  • TWSBI Diamond Mini Classic 1.1mm stub nib
  • Pelikan 140 M(?) nib
  • Unknown Kondor pen
  • Lamy CP1 F nib
  • Lamy joy 1.5mm stub nib

The TWSBI is the only pen in this collection that I actually bought. The rest came into my possession through family and as such are mostly older pens.

The Pelikan 140 is by far the oldest and my current favorite alongside the TWSBI. From what I've been able to find, this one was manufactured somewhere between 1955-1963. It is also the only pen in my collection with an actual gold nib.

The Kondor, just like the TWSBI and Pelikan is a piston filler and has a in my opinion strangely shaped nib. It is slightly scratchy unfortunately.

The Lamy CP1 is the pen that I used the longest out of all of these and was my daily driver during my later school years. Back then I had an M nib on it which I later switched for an F. Despite it being a beatufil sleek pen, I rarely use it anymore since the grip section tends to accumulate some ink near the front. This combined with my very close grib means that I always get ink on my fingers when writing with it. I am not sure if this is a defect of my specific pen or is something that has been fixed in newer models as this pen is apparently also quite old, based on the "Made in W. Germany" inscription under the clip. This pen also tends to be kind of unwieldy when used with the cap posted, as the cap is made of a much heavier metal than the rest of the pen, making it unbalanced.

The Lamy joy is a pen I briefly tried but found to have a much too thick nib for my daily use. Compared to the TWSBI it is also kind of scratchy.

 

Hello everyone, I have another question regarding reverse-proxying again, specifically for the linuxserver.io jellyfin image.

On the dockerhub page for this image there are 4 ports listed which should be exposed:

  • 8096 for the HTTP Web UI
  • 8920 for the HTTPS Web UI
  • 7359/udp for autodiscovery of jellyfin from clients
  • 1900/udp for service discovery from DLNA and clients

Additionally there is also an environment variable JELLYFIN_PublishedServerUrl which is for "Setting the autodiscovery response domain or IP address". I currently have that set to my subdomain https://jellyfin.mydomain.com though I am not sure if that is correct.

I already have a reverse-proxy set up allowing me to access my servers webinterface under https://jellyfin.mydomain.com without exposing the https port on the container. What I am unsure about now however, is what to do with the two ports for UDP traffic.

By my understanding, a reverse-proxy will only forward traffic which comes to the ports 80 for http and 443 for https. Those are also the only ports my reverse-proxy container has exposed alongside the management interface. As such the 2 udp ports will not be reachable under my jellyfin domain.

How can I change this or is this even an issue?

9
submitted 1 year ago* (last edited 1 year ago) by Scrath@lemmy.dbzer0.com to c/selfhosted@lemmy.world
 

Hello, I have a question regarding the usage of a reverse-proxy which is part of a docker network.

I currently use Nginx Proxy Manager as a reverse-proxy for all my services hosted in docker. This works great since I can simply forward using each containers name. I have some services however (e.g. homeassistant) which are hosted separately in a VM or using docker on another device.

Is it possible to use the same reverse-proxy for those services as well? I haven't found a way to forward to hosts outside of the proxies docker network (except for using the host network setting which I would like to avoid)

view more: next ›