reject humanity, become toaster | she/they | experimenting with names

  • 0 Posts
  • 44 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle











  • Disclaimer: I am not a professional network engineer, this is just what i found out after researching some iptables terminology.

    the lan => wan is perhaps a bit misleading. lan is the zone, or which side of the router this firewall rule is in reference to. wan is another zone, the arrow shows where packets of type Forward are ending up.

    • Input means packets originating from another device within this zone with the router as the destination.
    • Output is a packet from the router to another device in the zone.
    • Forward is a packet originating from one zone with a destination in another zone.

    When forward on the wan interface is set to reject, it essentially means no device from outside may initiate a connection. However, they may respond to already opened connection.

    I don’t yet know what masquerade does.






  • fun situations can arise when you write , instead of ; For those not in the know, in c++ the comma operator evaluates the left expression, discards the value, then evaluates the right expression and returns the value. if you now have a a situation like this

    int i = 0,
    printf("some message");
    

    i has a completely different value, since it actually uses the return value of printf instead


  • The y is dangerous to be used without u. Do not follow the advice above unless you know what you are doing. Instead, do pacman -Syu jellyfin-server

    The y option tells pacman to update its package database. In your case, your local database got out of sync with the database from the mirrors. This normal, newer versions of software are released all the time. Pacman then tried to get the latest locally known version of jellyfin from the mirrors, but they no longer have it, as a newer one replaced it.

    By updating the database, pacman becomes aware of the newer version and can request it from the mirror. But there is now a subtle problem: the new package and some installed package could require incompatible versions of some dependency. When pacman decides to update the dependecy package, the other package is broken. This is called a “partial upgrade”, which can seriously break your system if you are not careful.

    The u option upgrades all installed packages to the latest version, so the packages and their dependencies don’t get out of sync with each other.

    See Arch Wiki, System_maintenance for more explanation.