linux isnt immune to viruses even though its not as bad as windows

what should i do to be safe if i have a safe browser, vm, but pirate and download risky things? i know its a vm but i still dont want to have to delete everything in the vm if something happens. also the malware doesnt go to the router and spread rigt???

  • hirihit640@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    23 hours ago

    It’s been a while since I’ve tested the defaults, but if your VM has internet access it would also have access to the LAN right? From the perspective of the VM it’s all the same, just sending requests to the router. Unless QEMU specifically blocks requests to LAN network ranges.

    • nyan@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      11 hours ago

      I’m not sure what the mechanism is, but I discovered the issue by empirical testing a few months ago, and I’m still trying to sort it out and make the LAN visible to that VM. Granted, I haven’t been able to put much time into it, but I keep ending up down among the weeds of iptables/nftables, with all the documentation either out of date or not intended for a host using netifrc for network management (or both). I’ll probably have to ask on the Gentoo boards eventually.