thfi
@thfi@discuss.tchncs.de
- Comment on Turn linux server into a router? 4 days ago:
I had a very similar problem as @Toralv@lemmy.world a few weeks ago. I repurposed a small, fanless x86 desktop computer as my new router. It has only one RJ45 port and due to its small size cannot be extended with a proper network card. As it has an unused USB3 port, I acquired a cheap Realtek-based USB3-to-RJ45 ‘adapter’ as the second network interface. It works without any further issues in Linux (Arch) and has no problems to handle Gbps traffic.
For the router configuration, I am using ‘nftables’ instead of ‘iptables’, as the former is supposed the successor of the latter. I only used the new nftables configuration, but there are wrappers available so that one can continue to use iptables syntax if desired.
For network configuration, I am using systemd’s networkd. Check systemd.network(5): Configuration option ‘IPMasquerade’ takes care of telling nftables/iptables to setup masquerading (rendering the iptables invocation @thebardingreen@lemmy.starlightkel.xyz exemplified unnecessary), options ‘IPv4Forwarding’ and ‘IPv6Forwarding’ renders manually changing ‘/proc/sys/net/ipv4/ip_forward’ unnecessary.
systemd’s networkd has a built-in DHCP server; check option ‘DHCPServer’ and section ‘DHCPServer’ for that (same man page as above). This way you can skip installing/configuring a separate DHCP server, but systemd’s DHCP server has some limitations, such as only supporting DHCPv4 and lack of proper command line tools. For example, to retrieve the list of current leases, you would have to make a dbus call to networkd, e.g. via busctl or dbus-send.
Bridges can also be configured with systemd’s networkd, making a separate bridge tool unnecessary. Rather straight-forward with three small configuration files, telling networkd that you want to have a bridge, its name (e.g. br0), its MAC address, which NICs will be part of the bridge, and the bridge’s configuration like a NIC itself (e.g. static IP address, that the networkd’s DHCP server shall listen here, …).
- Comment on [deleted] 2 months ago:
I guess it is bicycling: there is a price to pay in blood 😉 My suggestion: in Romania, take a few hours of driving lessons with a professional teacher who can explain everything to you.
- Comment on Android’s next big feature turns your phone into a desktop 3 months ago:
Microsoft tried the same idea about 10 years ago with Continuum, even including a hardware dongle: en.m.wikipedia.org/wiki/Windows_Continuum learn.microsoft.com/en-us/…/continuum-phone
Canonical had something similar, too, back in the days with their Ubuntu Touch and named it Convergence: linux.com/…/first-ubuntu-touch-tablet-brings-conv…
- Comment on Balcony solar is all the rage in Germany. Why not in the US? 3 months ago:
- Comment on You should know there's a font designed to make reading easier, especially for people with low vision. It's called Atkinson Hyperlegible Next. It's free for personal and commercial use. 4 months ago:
LaTeX packages are available, too:
- Comment on UK's Royal Society of top scientists mulls call to oust Elon Musk 5 months ago:
Based on which credentials did he get elected to be fellow in the first place?
- Comment on Fun Fact 5 months ago:
Things had “2000” in their names to make them sound cool or futuristic, like Video 2000 or Windows 2000.
- Comment on The Elite College Students Who Can’t Read Books 9 months ago:
Why would you study anything with literature if you had never read a book before? This sound like a colossal waste of time and money. My theory is that if you were good at anything or had an interest in a particular topic, you would study something else like engineering, medicine, or law (I exclude the case that you may be genuinely interested in literature). Thus, many of those who study literature have no idea what they should study else and probably think that they can always get through a course which is about book. Why? Probably rich family pressured them into studying instead of posting stuff on Instagram or TikTok.
- Comment on Microsoft Edge gets "unfair advantage", browser makers claim 10 months ago:
Please submit a second copy of that letter, but replace Windows with Android, PC with Mobile, Microsoft with Google, and Edge with Chrome.