VPN PC to PC to bypass "home" NAT

This forum is for general conversation and user-user networking.
Post Reply
mfran2002
OpenVPN User
Posts: 21
Joined: Thu Jul 18, 2019 2:05 pm

VPN PC to PC to bypass "home" NAT

Post by mfran2002 » 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:

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
external LAPTOP - server:

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

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7389
Joined: Fri Jun 03, 2016 1:17 pm

Re: VPN PC to PC to bypass "home" NAT

Post by TinCanTech » Thu Jun 18, 2020 12:34 pm

Your idea will probably never work because your external laptop will always be behind a router which you do not have access to.

mfran2002
OpenVPN User
Posts: 21
Joined: Thu Jul 18, 2019 2:05 pm

Re: VPN PC to PC to bypass "home" NAT

Post by mfran2002 » Thu Jun 18, 2020 12:43 pm

my external laptop take the line from my smartphone (settled as hotspot)

no router

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7389
Joined: Fri Jun 03, 2016 1:17 pm

Re: VPN PC to PC to bypass "home" NAT

Post by TinCanTech » Thu Jun 18, 2020 1:01 pm

Your hotspot will also be behind a router which you do not have access to.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7389
Joined: Fri Jun 03, 2016 1:17 pm

Re: VPN PC to PC to bypass "home" NAT

Post by TinCanTech » Thu Jun 18, 2020 1:11 pm

mfran2002 wrote:
Thu Jun 18, 2020 12:24 pm
I already hve setup a dynamic address with a provider, and that dynamic IP is assigned to my "external" laptop
Maybe I don't understand what you mean here...

mfran2002
OpenVPN User
Posts: 21
Joined: Thu Jul 18, 2019 2:05 pm

Re: VPN PC to PC to bypass "home" NAT

Post by mfran2002 » Thu Jun 18, 2020 1:17 pm

since my "client" at home has to "calls" the server (the laptop) around the world, I have a dynamic IP (taken from the service "no-IP" for example)

i.e.: mydynamicIP.ddns.net

then I have installed a little "no-IP" client on my laptop to assign that dynamic IP to the laptop

in that way, when the home PC "calls" mydynamicIP.ddns.net, that call arrives to my laptop

what do you suggest to do?

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7389
Joined: Fri Jun 03, 2016 1:17 pm

Re: VPN PC to PC to bypass "home" NAT

Post by TinCanTech » Thu Jun 18, 2020 2:41 pm

What IP address does your provider assign to your device ?

mfran2002
OpenVPN User
Posts: 21
Joined: Thu Jul 18, 2019 2:05 pm

Re: VPN PC to PC to bypass "home" NAT

Post by mfran2002 » Fri Jun 19, 2020 7:53 am

do you want I post the IP address assigned from no-IP?

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7389
Joined: Fri Jun 03, 2016 1:17 pm

Re: VPN PC to PC to bypass "home" NAT

Post by TinCanTech » Fri Jun 19, 2020 1:29 pm

I want to know the first 3 digits of your IP address not your DDNS name.

eg: 62.63.64.x

mfran2002
OpenVPN User
Posts: 21
Joined: Thu Jul 18, 2019 2:05 pm

Re: VPN PC to PC to bypass "home" NAT

Post by mfran2002 » Fri Jun 19, 2020 2:15 pm

ok, got it :D

146.241.36.x

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7389
Joined: Fri Jun 03, 2016 1:17 pm

Re: VPN PC to PC to bypass "home" NAT

Post by TinCanTech » Fri Jun 19, 2020 4:53 pm

Now make sure your DDNS record is upto date.

mfran2002
OpenVPN User
Posts: 21
Joined: Thu Jul 18, 2019 2:05 pm

Re: VPN PC to PC to bypass "home" NAT

Post by mfran2002 » Thu Jun 25, 2020 7:51 am

Finally I was able to raise my VPN bypassing my ISP NAT

the only way, it seems to me, is to go through AZURE using softether VPN client and server

no way to reach DIRECTLY my home laptop in any way (I tried openVPN client/server, softether client/server, native windows vpn....no way)

I sincerely thank you all for your support and help, I will now open a new thread to understand if it is possible to connect a "openVPN client" to a "softether Server" passing from AZURE

Post Reply