LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > Musings on technology, philosophy, and life in the corporate world
User Name
Password

Notices


Hi. I'm jon.404, a Unix/Linux/Database/Openstack/Kubernetes Administrator, AWS/GCP/Azure Engineer, mathematics enthusiast, and amateur philosopher. This is where I rant about that which upsets me, laugh about that which amuses me, and jabber about that which holds my interest most: *nix.
  1. Old Comment

    u-boot is infuriating

    https://cvsweb.openbsd.org/src/sys/d...c2/dwc2.c#diff

    In a few days. Hopefully just a few more days...
    Posted 07-20-2021 at 10:49 PM by rocket357 rocket357 is offline
  2. Old Comment

    The loss of an office

    Fast forward uhh, 13 years? We've moved away, unable to sell this house, so we rented it out for a few years while my career took me through San Antonio, Seattle, etc... and now I'm 100% full remote work, aaaaaaaand...back in this house. My 5 year old is almost an adult, and my son (whose arrival prompted the loss of my office) is now 12. Ironically, I'm *back* in my original office as I type this. I did end up having to get rid of the server cabs, but they went to a former co-worker who put them to good use. =)

    Life...it's strange.
    Posted 02-05-2021 at 09:06 AM by rocket357 rocket357 is offline
  3. Old Comment

    dnscrypt-proxy on docker on kubernetes on Raspberry Pis

    Just pushed an arm64v8 docker image for this project. I guess at some point I'll have to figure out how to build multi-arch docker images, but for now I have separate repos for them.
    Posted 09-08-2019 at 03:21 AM by rocket357 rocket357 is offline
  4. Old Comment

    u-boot is infuriating

    Ok, a bit of fudging stuff around and I think I have this figured out. The Raspberry Pi 3 B+ has the magic boot bits set to boot from usb0, however, I haven't been able to get the OpenBSD bootloader to load a kernel from an FFS filesystem at the boot> prompt if I boot from usb0 (mmc0 loads just fine, however).

    So I dd'd the latest miniroot63.fs to an sd card, then disklabel'd the sd card and deleted the 'a' partition. I edited the sd card with fdisk and grew out the OpenBSD partition to the full remainder of the sd card after the msdos partition. Once that was done, I disklabel -dE'd the sd card and created an 'a' partition that took up the entire OpenBSD area. Once that was done, I dd'd the first 4 MB of the miniroot back to the sd card, ftp'd the bsd* files for arm64 to the sd0a partition, and booted the pi up with my franken-sd.

    Now at the boot> prompt I can select any of the bsd* files I copied to the sd0a partition, so I obviously select the bsd.rd file, install to my external SATA drive. I reboot, catch the ddb error about the duid it can't find (and copy that to a safe location), then boot back up to bsd.rd, disklabel -E sd0 and update the duid ('i'), edit /etc/fstab to use the new duid, and...

    Then I cross my fingers and reboot!

    Success!

    NOTE: this approach basically disables any advantage you would get from kernel re-linking! And updating this franken-sd isn't going to be fun =\
    Posted 08-09-2018 at 11:47 AM by rocket357 rocket357 is offline
  5. Old Comment

    The little outlet that couldn't

    Yeah, once I figured that part out it was pretty clear why certain outlets failed when what seemed like an unrelated room had a power issue.
    Posted 08-08-2018 at 11:11 PM by rocket357 rocket357 is offline
  6. Old Comment

    u-boot is infuriating

    Bit the bullet and picked up one of these:

    https://www.amazon.com/AmazonBasics-...70_&dpSrc=srch

    Shows up as:

    axen0 at uhub1 port 2 configuration 1 interface 0 "ASIX Elec. Corp. AX88179" rev 2.10/1.00 addr 4
    axen0: AX88179, address xx:xx:xx:xx:xx:xx
    rgephy0 at axen0 phy 3: RTL8169S/8110S/8211 PHY, rev. 5
    Posted 08-08-2018 at 10:52 PM by rocket357 rocket357 is offline
  7. Old Comment

    The little outlet that couldn't

    My house is wired that way. The circuit breakers follow the construction of the house and not the rooms.
    Posted 08-08-2018 at 04:05 PM by vmccord vmccord is offline
  8. Old Comment

    This...this should *never* happen

    As it's systemd, I would take a wild guess that you're not supposed to use sudo/su/root login to reboot...

    As I recall, systemctl handles all that... and the reboot/shutdown/poweroff/halt/init/runlevel, etc are all replacements for the sysvinit originals which essentially call systemctl and are only there for compatibility.

    (I'm not a fan of systemd either, not for philosophical reasons, but because it's an ill conceived and poorly designed mess)
    Posted 07-05-2018 at 06:10 AM by cynwulf cynwulf is offline
    Updated 07-05-2018 at 06:11 AM by cynwulf
  9. Old Comment

    This...this should *never* happen

    I don't know *precisely* what happened, but there are a few changes on that machine that might account for it. This machine was installed via pxe/preseed initially to be an Openstack compute node. At some point down the road, I'd dropped it out of the Openstack cluster and installed Minecraft on it. It served as a Minecraft server for some time, and it always bugged me that it had an Openstack name instead of a minecraft-related hostname. So I switched the hostname on it.

    This is speculation, unfortunately, as the machine has been repurposed again (it's way too powerful to run Minecraft and the 2-3 other services I have on it, so it is now an infra node in the Openstack cluster and one of the other infra nodes was repurposed for Minecraft (fully re-installed with appropriate hostname/disk layout/services this time haha)), but I think the hostname change and systemd didn't agree, or perhaps an Openstack service I *thought* was disabled was causing issues? IIRC I rebooted a few times prior to the above error messages after those changes, though, so I can't say for certain what caused the issue.
    Posted 07-02-2018 at 09:46 AM by rocket357 rocket357 is offline
    Updated 07-02-2018 at 09:53 AM by rocket357
  10. Old Comment

    This...this should *never* happen

    I am not a fan of SystemD, primarily for philosophical reasons, but I have used a number of distros with SystemD and must say I've found it reliable. I've used Mageia since v. 4 and found the presence of SystemD completely transparent to the user.

    Have you checked journalctl or the logs to see if they cast any light on what broke?
    Posted 07-01-2018 at 08:36 PM by frankbell frankbell is offline
    Updated 07-01-2018 at 08:39 PM by frankbell
  11. Old Comment

    This...this should *never* happen

    Wouldn't happen on Slackware either. If the insanity ever spreads to Slackware I'll likely be joining you in BSD world. I'd have already moved if OpenBSD base was utf8 clean (or still supported iso8859-1) but it looks like they still have work to do on that regard.
    Posted 07-01-2018 at 03:37 AM by GazL GazL is offline
  12. Old Comment

    This...this should *never* happen

    Yeah systemd was jacked. Not sure what caused it. Hard reboot "fixed" it.
    Posted 07-01-2018 at 12:18 AM by rocket357 rocket357 is offline
  13. Old Comment

    This...this should *never* happen

    I was going to ask the same question Frank...
    Posted 06-30-2018 at 09:10 PM by rkelsen rkelsen is offline
  14. Old Comment
    Posted 06-30-2018 at 03:16 PM by frankbell frankbell is offline
  15. Old Comment

    The little outlet that couldn't

    GFCI beat me up a time or two.
    I forget they're "there".
    Posted 06-19-2018 at 11:08 AM by Habitual Habitual is offline
  16. Old Comment

    Challenge Accepted - Part 1

    I could, yes, but my current focus is getting up and running with veggies to go along with the herbs. It's not a matter of it being impossible, but rather the non-edibles being quite low on the priorities list.
    Posted 08-04-2016 at 09:33 AM by rocket357 rocket357 is offline
  17. Old Comment

    Challenge Accepted - Part 1

    But wouldn't you grow flowers or a pretty set of houseplants?
    Posted 08-04-2016 at 08:56 AM by vmccord vmccord is offline
  18. Old Comment

    Challenge Accepted - Part 1

    It would appear that, while completely feasible, this idea is not very safe. Plant roots (at least some) take up Salmonella readily, so the turtle tank would have to be non-edibles only.

    Bummer. Maybe I'll build it on top of the African Cichlid tank instead (though the Fluval 406 on that tank needs no help whatsoever).
    Posted 07-29-2016 at 10:42 PM by rocket357 rocket357 is offline
  19. Old Comment

    Layer 7 filtering with relayd

    Quote:
    Originally Posted by rocket357 View Comment
    Here's my network layout:

    Internet <- Cable Modem <- OpenBSD Firewall <- Cisco 3560 <- Daughter's Machine

    Each of the windows machines on my network is split (via vlans on the 3560 and firewall) into its own /29 (i.e. each one only has access to the IP space of the firewall (which has several IPs across several vlans) and the IP space of my Cisco 2801 (used just for IPSec and BGP). In short, internet access is via the OpenBSD firewall, and the vlans are denied access to each other, and then the 2801 allows access to private VPCs at Amazon. The Windows machines are not allowed to access anything else on the network (oh, we do have a network attached printer...that traffic is allowed).

    Ok, the relayd instance runs on the OpenBSD firewall, so each Windows vlan has port 80 and port 443 traffic re-routed to relayd, which checks URLs against a whitelist and sends back an http 403 (access denied) for anything not on the whitelist. It goes without saying that my daughter does not have access to the firewall configuration =)
    Ahhh, ok, gotcha! Thank you for explaining that. If you would, please report back later and let us know how it goes.

    Regards...
    Posted 04-01-2016 at 08:33 PM by ardvark71 ardvark71 is offline
    Updated 04-01-2016 at 08:34 PM by ardvark71 (Added wordage.)
  20. Old Comment

    Layer 7 filtering with relayd

    Here's my network layout:

    Internet <- Cable Modem <- OpenBSD Firewall <- Cisco 3560 <- Daughter's Machine

    Each of the windows machines on my network is split (via vlans on the 3560 and firewall) into its own /29 (i.e. each one only has access to the IP space of the firewall (which has several IPs across several vlans) and the IP space of my Cisco 2801 (used just for IPSec and BGP). In short, internet access is via the OpenBSD firewall, and the vlans are denied access to each other, and then the 2801 allows access to private VPCs at Amazon. The Windows machines are not allowed to access anything else on the network (oh, we do have a network attached printer...that traffic is allowed).

    Ok, the relayd instance runs on the OpenBSD firewall, so each Windows vlan has port 80 and port 443 traffic re-routed to relayd, which checks URLs against a whitelist and sends back an http 403 (access denied) for anything not on the whitelist. It goes without saying that my daughter does not have access to the firewall configuration =)

    I originally had each Windows machine on its own /30 (i.e. 4 addresses: network, gateway, host, and broadcast), but then I wanted to add the 2801 without tons of traffic logic on the firewall, so I remapped that portion of the network to be /29's (8 addresses: network, gateway, 2801, host, 3x unused, and broadcast), which gives me room for expansion later, should I choose to do so.

    Really, all relayd does here is TLS validation and checking URLs against a whitelist, which is something I've been meaning to add for a while now.
    Posted 04-01-2016 at 04:36 PM by rocket357 rocket357 is offline

  



All times are GMT -5. The time now is 03:36 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration