Hey guys! So I have a simple dilemma. The computer i use for video/movies is on a vpn. Sometimes I want to move those videos to my nas.

Now I am just using the mulvad program on the local pc (linux). I dont have it installed on my router (and im not sure if I will yet, since with slowdowns and some sites and applications not working on a VPN, I dont really need it network wide at this point)

But my problem is, my nas isn’t accessible from the pc, unless I shut off the VPN, which I dont want to do when in the middle of a big download. Also, it would be nice sometimes to download right to my nas so I dont need to move files.

Is there a somewhat easy solution? Im decently savvy but networking still confuses me sometimes.

  • TheFogan@programming.dev
    link
    fedilink
    English
    arrow-up
    14
    ·
    12 days ago

    I believe in mullvad there’s a setting to “allow local traffic”,

    Navigate: to the Preferences or Settings menu. Find: the option for “Local network sharing” and enable it by turning the switch on

    or if you are using CLI

    mullvad lan set allow

    in short, most vpn clients have an option to not override local traffic. while still directing everything outside of your LAN through the VPN.

    • frongt@lemmy.zip
      link
      fedilink
      English
      arrow-up
      10
      ·
      12 days ago

      Generally it’s called “split tunneling” but they might call it something else

    • bridgeenjoyer@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      12 days ago

      i JUST saw that setting! that helps. though i’m trying to keep this pc mostly isolated from my home network, i think checking that option just to move files over and then rechecking it would be fine with me.

      • RheumatoidArthritis@mander.xyz
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        11 days ago

        You should be able to add a route just for your nas without enabling lan sharing, something like sudo ip r a 192.168.1.123/32 via 192.168.1.1 dev eth0

        Where .123 is your nas, .1 is your router, eth0 is your physical network interface.

        But it’s probably better to just toggle lan sharing.