I have been trying to experiment with vpns. I'm running asus merlin. And on that I run a vpn client. A pptp/l2tp one. So everything behind my router uses that.
These last few days I've been toying with PiVPN on my Raspberry. I wanted to try to tunnel in to my network, to be able to access my movie collection from outside.
So, I installed PiVPN, chose WireGuard. By default, it asks to use the IP get from the L2TP vpn.. so I changed that IP to my real one in pivpnHOSTS=<ip>, setupVars.conf.
I create a vpn file to use on my laptop. Change the ip on that as well to my real ip.
After that, I go to merlin > wan > virtual server / port forwarding and enter the port 51820 in external (and internal) port, then add the ip adress 192.168.1.166 (raspberry). Thinking that would work.
But it doesn't! If I disconnect from the L2TP vpn, it works. When I turn it back on, I cannot connect to my rpi from outside.
Should it be possible to do this?
These last few days I've been toying with PiVPN on my Raspberry. I wanted to try to tunnel in to my network, to be able to access my movie collection from outside.
So, I installed PiVPN, chose WireGuard. By default, it asks to use the IP get from the L2TP vpn.. so I changed that IP to my real one in pivpnHOSTS=<ip>, setupVars.conf.
I create a vpn file to use on my laptop. Change the ip on that as well to my real ip.
After that, I go to merlin > wan > virtual server / port forwarding and enter the port 51820 in external (and internal) port, then add the ip adress 192.168.1.166 (raspberry). Thinking that would work.
But it doesn't! If I disconnect from the L2TP vpn, it works. When I turn it back on, I cannot connect to my rpi from outside.
Should it be possible to do this?