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

fraichu OP , to selfhost in [Question] How to setup L2 switch on host for containers?

Chat GPT @ chat.openai.com’s answer

Thank you for providing the details. Based on your requirements, you can achieve your goal by utilizing the Linux bridge functionality to create a software-level Layer 2 switch. Here’s an outline of the steps involved:

  1. Install the necessary software: Ensure that the bridge-utils package is installed on your Linux machine. You can typically install it using the package manager specific to your distribution. For example, on Ubuntu or Debian, you can run sudo apt-get install bridge-utils.

  2. Identify your physical network interface: Determine the name of your WiFi network interface that is connected to the ISP router. You can use the ip link command to list the available network interfaces. Look for the interface name associated with your WiFi connection (e.g., wlan0).

  3. Disable network management on the physical interface: To prevent network managers from managing the physical interface directly, you’ll want to disable their control. This step may vary depending on your specific network manager. For example, if you’re using NetworkManager, you can edit the configuration file associated with your WiFi connection (usually located in /etc/NetworkManager/system-connections/) and set managed=false. Alternatively, you can stop or disable the network manager service temporarily.

  4. Create a bridge interface: Create a Linux bridge interface using the brctl command. For example, you can run sudo brctl addbr br0 to create a bridge named br0.

  5. Add the physical interface to the bridge: Add your WiFi interface to the bridge using the brctl addif command. For example, run sudo brctl addif br0 wlan0 to add wlan0 to the bridge.

  6. Configure the bridge interface: Assign an IP address to the bridge interface (br0) by configuring it in the network configuration files. The specific file to edit depends on your Linux distribution. For example, on Ubuntu or Debian, you can edit /etc/network/interfaces and add the following lines:

    <pre style="background-color:#ffffff;">
    <span style="color:#323232;">auto br0
    </span><span style="color:#323232;">iface br0 inet dhcp
    </span>
    

    Alternatively, you can use network management tools like NetworkManager or systemd-networkd to configure the bridge interface.

  7. Configure the virtual machines and containers: Configure your virtual machines, Docker containers, and systemd-containers to use the bridge interface (br0) as their network interface. This configuration varies depending on the specific technology you are using. For example:

    • For Docker: Create a new Docker network of type “bridge” and specify the bridge name as br0. Then, when creating or running Docker containers, connect them to this network.
    • For systemd-containers: Configure the [email protected] and [email protected] units to attach the container to the bridge interface (br0). This can be done using the systemctl command and systemd network configuration files.

With these steps, your virtual machines, Docker containers, and systemd-containers should be able to obtain IP addresses directly from your ISP router via the software-level Layer 2 switch created using the Linux bridge interface.

Please note that the specific commands and configuration files may vary depending on your Linux distribution and network management setup. Make sure to adapt the instructions accordingly. Additionally, be cautious when modifying network configurations as it can potentially impact your network connectivity.

fraichu OP ,

I’ll try doing this and update if it works for me.

fraichu OP ,

This worked. Now I can have unlimited lightweight systemd containers, each with it’s own globally routable public ipv6 address :)

NochMehrG , to selfhosted in [Question] Does anyone run their own email server?

I don’t. But I do have my domain and use a hosted solution, so I’m kind of independent and own my data.

DidacticDumbass OP ,

That sounds like the right middle ground for me. I know for sure my home network is not as secure as it could be, especially since I live with people who need everything online to work without obstacles. I can’t even install PiHole.

But, hosting is probably more affordable in a year than the amount I might spend on coffee in a week. And I typically make my own coffee.

Dystopia , to warframe in How do I unlock evolution V on felarx? been trying and it's not working
@Dystopia@dormi.zone avatar

Hate does not work, known issue and they’re planning on fixing that later. Currently the only melee weapons that work for that challenge are Innodem and Praedos. Also Laetum, Phenmor and Ferox are the only guns that work currently for that challenge.

aucubin , to selfhosted in Gandi announced a price increase and discontinuation of free mailboxes

I use INWX. Prices are very cheap and their DNS supports most of the record-types available, which I didn‘t have at some of the registrars I was at before.

lemmyvore ,

How does the INWX DNS edit look like? In their docs I saw they offer a table where you can edit records one by one, using their predefined form. Do they also offer a way to edit all records at once as text?

ubergeek77 , to selfhosted in Gandi announced a price increase and discontinuation of free mailboxes
@ubergeek77@lemmy.ubergeek77.chat avatar

I like Cloudflare’s registrar a lot. Zero BS and great integration with the other services I’m already using.

g5pw OP ,

Yeah, that’s a solid choice! I’ve used their proxy service and was pretty solid.

Exterminatus , to newcommunities in Spinning up a number of 🔬 Science/🌎 Geography/🏺Archaeology/🪴 Plant communities!

Does the geospatial community exist? I’m getting a 404 error.

fossilesque OP ,
@fossilesque@mander.xyz avatar

Search !geospatial then search for Geospatial and it will be indexed and show up

Saturdaycat , to nostupidquestions in Why the heck does my body feel like it's tripping sometimes when I sleep?
@Saturdaycat@reddthat.com avatar

I will raise you one. Sometimes I see lots of colors and patterns right before I sleep or wake in the middle of the night. Like I took some sort of psychedelic

pleasestopasking ,

Hypnagogic hallucinations, completely normal!

Saturdaycat ,
@Saturdaycat@reddthat.com avatar

You’re right! But once it happened when I was partially off the bed with my head hanging off, so combined with blood rush to my head and a pounding headache! But the patterns were cool at least

skullgiver , (edited ) to android in Thoughts on Android 12/13 UI and whitespace
@skullgiver@popplesburger.hilciferous.nl avatar

deleted_by_author

  • Loading...
  • dystop OP ,
    @dystop@lemmy.world avatar

    When I was playing around with the Pixel, I already tried making display size the smallest. Notification shade didn’t change, and neither did those damn quick toggles :(

    MiddleWeigh , to lemmyshitpost in when ppl try to explain fediverse
    @MiddleWeigh@lemmy.world avatar

    This was me explaining it to my s.o.

    She finally joined today, and she explained it right back to me lmao

    Then we explained it together.

    UncleBanana ,
    @UncleBanana@lemmy.world avatar

    now kiss

    ubergeek77 , to android in Thoughts on Android 12/13 UI and whitespace
    @ubergeek77@lemmy.ubergeek77.chat avatar

    Surely Google did user testing… didn’t they?

    They do extensive testing, but only on clowns.

    Still bewilders me Google got rid of the 2 button navigation style. They hit the nail on the head with that one, it was a perfect balance of convenience and speed, and they went and gutted it for a half-baked ripoff of iOS’ gesture system. Cannot explain how upset I am over that.

    OofShoot ,
    @OofShoot@beehaw.org avatar

    You can switch back to 3 and 2 button navigation in the settings if you want. I use the 3 button navigation. I use all three buttons.

    I think it’s their way of admitting gestures is stupid. Gestures makes it unclear where the OS UI ends and where the app UI begins. A completely shit idea.

    ubergeek77 ,
    @ubergeek77@lemmy.ubergeek77.chat avatar

    What version of Android are you on? Android 12 or below? It was removed entirely in Android 13. It can be “patched back in” on a custom ROM, but doing so breaks the recents screen due to incompatible changes made to the system launcher (which handles the recents screen for… some reason).

    Or maybe you have a Samsung or other phone that has their own 2 button implementation. But as far as I’m aware, it’s gone from AOSP as of Android 13 :(

    neotecha , to technology in Redditors, how do you like Lemmy?

    My overall journey was the GameFAQS message boards -> Digg -> Reddit (via RIF) -> Lemmy

    Lemmy has filled my content aggregation desires while boycotting Reddit. Overall, I could see being here to stay

    I’m still having minor issues, but they aren’t deal breakers. Like, I’ve had issues with my up votes not saving (press it, turns blue, wait a second, then it changes back), so I need to press it multiple times before it saves. On the whole, these errors will be resolved with time, so it doesn’t bother me much

    Main issue I’m trying to figure out now is: how to use federated users for other Lemmy instances. If I’m using the website for beehaw, then go to another instance, it appears I need to sign in, but I can’t see how to use my beehaw account. I started using Jerboa and it seems to handle it, but the comments I’m making don’t show up (when I checked in a browser), so it might be in the UI only, or I’m missing something

    aradon ,

    The entire concept of federated users feels counter-intuitive and off-putting. I’m trying to see if I can get this to grow on me.

    neotecha ,

    I think the concept is intuitive and interesting, but the implementation/interface isn’t.

    ImplyingImplications , to asklemmy in If hand sanitizer kills 99.99% of germs, then won't the surviving 0.01% make hand sanitizer resistant strains?

    Imagine you want to disable a car. You could open the hood and unplug the battery. Or you could fire a missile at it.

    Antibiotics are like unplugging the battery. It only works if you can get under the hood and it wouldn’t work at all on electric cars. It’s selective.

    Alcohol is like a missile. It destroys everything. You can’t evolve resistance to missiles. You just have to hope you don’t get hit.

    shreddy_scientist ,
    @shreddy_scientist@lemmy.ml avatar

    This, the polarity of the cell which permits selective permeability & a hydrophilic environment means alcohol’s will be functional as antiseptics due to the hydroxyl (OH) group. However, alcohol needs to be approximately 70% for max efficiency as OH2 facilities it’s ability to denature the cell.

    mo_ztt , to selfhosted in How to help? <Request>
    @mo_ztt@lemmy.world avatar

    I’m working on a project to host bits of Lemmy on peer cache devices run by the community – if you’re interested to take a look or help test/code, I should have code for some of the caching bits within a few days.

    transientpunk ,
    @transientpunk@sh.itjust.works avatar

    This is definitely something I want to follow too!

    hib , to selfhosted in Should I be concerned with exposing my server to the public?

    Here is my setup:

    Cloudflare fronts all of my webserver traffic, and I have firewall rules in Cloudflare.

    Then I have an OPNsense firewall that blocks a list of suspicious ips that updates automatically, and only allows port 80/443 connections from Cloudflare’s servers. The only other port I have open is for Wireguard to access all of my internal services. This does not go through Cloudflare obviously, and I use a different domain for my actual IP. I keep Vaultwarden internal for extra safety.

    Next I run every internet facing service in k3s in a separate namespace. This namespace has its own traefik reverse proxy separate from my internal services. This is what port 80/443 forwards to. The namespace has network policies that prevent any egress traffic to my local network. Every container in the WAN facing namespace runs as a user with no login permission to the host. I am also picky about what storage I mount in them.

    If you can get through that you deserve my data I think.

    skywhale241 ,

    I need to learn more about cloudflare. Do you have the guide for this setup!

    hib ,

    Unfortunately no guide, just things I’ve pieced together myself over the years.

    Cloudflare is probably the easiest and most intuitive part of the setup though, you can setup dns/proxy/firewall rules very intuitively, and I’m sure there are plenty of guides out there.

    TheButtonJustSpins , to selfhosted in [Help] How can I self host services (eg, a website, lemmy instance, vpn) on my own hardware while hiding my IP?

    Check into Cloudflare Tunnels.

    dap ,
    @dap@lemmy.onlylans.io avatar

    Cloudflare tunnels are great but OP may not want to have to authenticate each user to their services.

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