VPN PC to PC to bypass "home" NAT
Posted: Thu Jun 18, 2020 12:24 pm
Hi there,
nothing illegal.
I would like to estabilish a VPN with my PC at home, when I'm away (holiday, work...) with another laptop
My provider at home uses NAT, and when I'm away from home I will use my smartphone as hotspot
I already hve setup a dynamic address with a provider, and that dynamic IP is assigned to my "external" laptop
My idea is to create a VPN with my home PC as client and the external laptop as server.
My home PC will "call" the server to establish the VPN, bypassing the NAT.
One of my million doubts is: "the public dynamic IP" is set to the external laptop or to the smartphone?
I tried this below, but it doesn't work (noting seems to arrive to the external laptop...).
I'm a beginner then I guess there is some mistake around... May someone help me to correct?
thanks!
home PC - client:
external LAPTOP - server:
nothing illegal.
I would like to estabilish a VPN with my PC at home, when I'm away (holiday, work...) with another laptop
My provider at home uses NAT, and when I'm away from home I will use my smartphone as hotspot
I already hve setup a dynamic address with a provider, and that dynamic IP is assigned to my "external" laptop
My idea is to create a VPN with my home PC as client and the external laptop as server.
My home PC will "call" the server to establish the VPN, bypassing the NAT.
One of my million doubts is: "the public dynamic IP" is set to the external laptop or to the smartphone?
I tried this below, but it doesn't work (noting seems to arrive to the external laptop...).
I'm a beginner then I guess there is some mistake around... May someone help me to correct?
thanks!
home PC - client:
Code: Select all
port 1194
dev tun
ifconfig 10.10.0.2 10.10.0.1
secret mysecret.key
cipher AES-256-CBC
remote mydynamicIP.ddns.net
float
Code: Select all
port 1194
ncp-disable
dev tun
ifconfig 10.10.0.1 10.10.0.2
secret mysecret.key
cipher AES-256-CBC
float