• Technology Consultant.
  • Software Developer.
  • Musician.
  • Burner.
  • Game Master.
  • Non-theistic Pagan.
  • Cishet White Male Feminist.
  • Father.
  • Fountain Maker.
  • Aquarium Builder.
  • Hamster Daddy.
  • Resident of Colorado.
  • Anti-Capitalist.
  • Hackerspace Regular.
  • Traveler of the American West.
  • 3 Posts
  • 25 Comments
Joined 2 years ago
cake
Cake day: June 7th, 2023

help-circle



  • This is extremely possible and I have done a lot of stuff like it (I set up my first home built Linux firewall over 20 years ago). You do want to get some kind of multiport network card (or multiple network cards… usb -> ethernet adapters can do OK filling in in a pinch). It also gives you a lot of power if you want to do specific stuff with specific connections (sub netting, isolation of specific hosts, etc).

    There’s a lot of ways to do it, but the one I’m most familiar with is just to use IP tables.

    The very first thing you want to do is open up /proc/sys/net/ipv4/ip_forward and change the 0 to a 1 to turn on network forwarding.

    You want to install bridge-utils and isc-dhcp-server (or some other DHCP server). Google or get help from an LLM to configure them, because they’re powerful and there’s a lot of configs. Ditto if you want it to handle DNS. But basically what you’re going to do (why you need bridge-utils) is you’re going to set up a virtual bridge interface and then add all the various NICs you want on your LAN side into it (or you can make multiple bridges or whatever… lots of possibilities).

    Your basic iptables rule is going to be something like

    iptables -t nat -A POSTROUTING -o enp1s0 -j MASQUERADE, but again there’s lots of possible IP tables rules so read up on those.









  • Every computer I own is an autobot. My primary machine is always Optimus Prime, has been since 2008. Other machines get other names generally slightly inspired by their role / nature. Bumblebee and CliffJumper are miniPCs of various persuasions, Preceptor is my “mess around with AI” box, my big server that handles most of my data and network services is Wheeljack, my Macbook is Mirage, my backup server is Powerglide, my TV (which is an old Dell all in One running Linux Mint) is UltraMagnus.




  • We’re also using Forgejo for a small consulting team working on lots of different projects for a lot of different clients.

    A couple of our team members who came from a more complex and scaled environment (particularly our DevOps / SRE guy who’s worked at such places as LinkedIn and Snowflake) want to move us to Gitlab because it’s “more powerful” but I like Forgejo because it’s just super simple. Just does exactly what I need, doesn’t give me to many more options.

    We have

    • Projects segregated into teams, organized by client (so only those working on a specific client’s projects have access to their repos).
    • Able to invite clients and put them into the team for their project (we’ve had a couple clients that want that).
    • Able to automate deployments with webhooks (this was pretty easy to get working).

    One of our devs wanted to use Actions. It’s hard to get that working and (at least a month ago) there were warnings that Actons aren’t mature yet and are probably insecure (looks like that may have changed with the recent jump to Forgejo 8.0). I think it’s now a non issue for us though because we were like “Dude, stop trying to role your own CI/CD, that’s why we have two infrastructure people!”



  • This exact thing happened to one of my clients. And it sucked because they didn’t even register the domains with Ionos, they registered them with some other company that then got bought by Ionos. They were not technically savvy and didn’t understand what was happening until it was way too late. They lost about 8 domains closely associated with their business and with their CEO’s research.