Can't access ubuntu computer through router VPN when PIA app is on

I recently bought a new netgear router (R7800) that has a built in VPN service. I can successfully access my local network remotely using that VPN service and can talk to all my home devices. However, when I connect the PIA app on my ubuntu (16.04) computer I can no longer access that computer remotely.

With PIA off I can ping the ubuntu computer, then if I turn PIA on I can no longer ping it, then if I turn PIA back off I can ping it again. This is only a problem when I'm accessing my local network remotely through the router's VPN service. When I'm physically on my local Wi-Fi, I can ping the ubuntu computer reguardless of whether PIA is on or off.

I've confirmed this on two separate ubuntu computers, one was a fresh installation of ubuntu. Both were with the current version of the PIA app (v75).

I've tried messing around with all the settings in the PIA app but nothing seems to make a difference. Is there anything I can try to make this work? Should I try using OpenVPN on the ubuntu computer instead of PIA?

Thanks for any help,
Aaron

Comments

  • I should also mention that the problem exists even when the firewall is off on the computer. And I just found out that it's not just with the PIA app, it also happens with using OpenVPN on the computer.
  • if you're accessing your home network remotely using a VPN, then there you are already.  done!

    the basic/default local network access for a system using a VPN is only local traffic stays local and all non-local traffic goes out the VPN .. in your case, the PIA VPN (outbound) and not the inbound VPN.

    understand?

  • I figured it out from this question

    The solution was the following commands:

        
    ip rule add from 192.168.1.2 lookup 10

    ip route add default via 192.168.1.1 table 10

    I added them to /etc/rc.local so it gets ran at startup every time.
  • hmm! 
    ip rule add from <your-home-system-ip> lookup <table-name>   # table name could be 'custom' or otherwise more descriptive than '10'
    ip route add default via <home-network-router-ip> [dev <device-name-on-router-lan>] table <table-name>

    okay, yes, this makes sure the traffic heads to the router first (and then the router can keep it local or send it offsite)
Sign In or Register to comment.