• 0 Posts
  • 30 Comments
Joined 3 years ago
cake
Cake day: July 2nd, 2023

help-circle
















  • The real trick is that everything doesn’t fit nicely in a nice neat little glove-fitty block irl, so mirror that.

    Mixed zoning doesn’t necessarily mean you got office abutting residential abutting commercial abutting industrial.

    Think of a suburb/city burb. Do you know any that have like 20 blocks of residential? None! Doesn’t exist! Maybe like 2-4 blocks max before you break up the neighborhoods with some commercial and light industry or some offices. Even residential neighborhoods have gas stations on the arterial roads connecting them.

    So like, don’t look where the wind blows, where the fertile soil is, and say “okay that quadrant of the map is for all my industry.” You’ll get high resource costs due to traffic. Don’t make a mega commercial center, not even Broadway in nyc…

    God dammit I havent played in like 2 months. Fine. I’ll make a new city.




  • foggy@lemmy.worldtoSelfhosted@lemmy.worldDocker Desktop on Linux?
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    15 days ago

    If it’s a Linux box, everything over 1023 just needs root.

    For Debian flavors,

    /proc/sys/net/ipv4/ip_local_port_range

    At least for those I use. Idk for rhel etc.

    I can check my boxes with system ctl:

    sysctl net.ipv4.ip_local_port_range

    And tested on a VM, this wide s your ephemeral range:

    sysctl -w net.ipv4.ip_local_port_range=“1024 65535”

    Manage persistence in /etc/sysctl.conf

    I’ll be honest here, I asked Claude for the windows equiv of that. I haven’t tested. Proceed with caution:

    To check:

    netsh int ipv4 show dynamicport tcp

    To expand ephemeral range:

    netsh int ipv4 set dynamicport tcp start=10000 num=55535

    Syntax makes enough sense to me, but I repeat I have not vetted this.

    HOWEVER,

    all moot. You have 65k ports PER CONNECTION, holmes. Sorry I’m drunk now my tones changes and typos = more :)

    So you at 10.0.0.1 connect to Google at 8.8.8.8 and cloudflare at 1.1.1.1, you can use 130k connections between the two. So this isn’t as useful as you may think you need it to be (idk what you’re doing lol, load balancer?)

    If you’re churning through tons of short connections, you can “run out” of ports even though you have plenty… they’re all just cooling down.

    net.ipv4.tcp_tw_reuse=1

    lets the kernel grab them sooner.

    Claude says Windows would be

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\TcpTimedWaitDelay

    That’s a registry change. Proceed with extreme caution. Use a VM or throw away machine. I have absolutely not vetted the windows version here and registry edits are inherently dangerous. I usually yell at an AI that tells me to use regedit. Probably don’t do this unless the system is backed up and those backups are tested.

    Hope this helps your crazy load balancer or whatever :)