Hello. how to access the files of my local network from the outside via openvpn ( attention , I am a novice)? Let me explain:
I installed openvpn server on my pc with windows server with this configuration:
Server config
port 1194
proto udp
dev tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\ServerVPN.crt"
key "C:\\Program Files\\OpenVPN\\config\\ServerVPN.key"
dh "C:\\Program Files\\OpenVPN\\config\\dh2048.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist "C:\\Program Files\\OpenVPN\\log\\ipp.txt"
push "redirect-gateway def1 bypass-dhcp"
keepalive 10 120
tls-auth "C:\\Program Files\\OpenVPN\\config\\ta.key" 0 # This file is secret
cipher AES-256-CBC
persist-key
persist-tun
verb 3
explicit-exit-notify 1
Then I installed the openvpn client on my android smartphone with this configuration (I also use the same config on Windows 10 with the same problem):
Client config
client
dev tun
proto udp
remote mon_adresse_noip 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\ClientVPN.crt"
key "C:\\Program Files\\OpenVPN\\config\\ClientVPN.key"
remote-cert-tls server
tls-auth ta.key 1
cipher AES-256-CBC
verb 3
The connection between the client and the server seems to be going perfectly. However, I can’t access files on my local network with the IP address: 192.168.0.55. Default gateway: 192.168.0.1
How do I fix this, what am I doing wrong or not doing?
In advance, thank you for your help
Re: How to access local network?
Posted: Wed Nov 04, 2020 9:55 pm
by TinCanTech
Are you really using "OpenVPN Access Server" ? See your version.
Re: How to access local network?
Posted: Wed Nov 04, 2020 10:09 pm
by monsieurN
Sorry. You're right.
Re: How to access local network?
Posted: Wed Nov 04, 2020 10:29 pm
by TinCanTech
What version are you using ? Server and client ..
Re: How to access local network?
Posted: Thu Nov 05, 2020 6:37 am
by monsieurN
For Server and client windows, i'm using : OpenVPN GUI v11.15.0.0
For android client, i'm using openvpn connect 3.2.4
Re: How to access local network?
Posted: Thu Nov 05, 2020 2:30 pm
by TinCanTech
Because you do not really understand what version of openvpn you are using (I do not mean the GUI) I presume you have not read the howto yet. The howto explains clearly what you need to do to "expand the scope" of your VPN.
if you install openvpn on windows server , it is very convenience to have everything to make it work so let making to have access local file .
you need to install routingandremoteaccess service and DNS server and WINS server after that open routingandremoteaccess and config with NAT type as picture
on the main internet card you click and chose as public and NAT
continuce chose openvpn network card and chose private as picture
just open WINS server to make sure everything start and you can access local access now
when you install all of them it will perform NAT and netbios over ip so from client openvpn you can type name to access local resource, if you like you can run multi instance openvpn so it can use all CPU core it mean faster connection to all client and if there are many clients connect to it it can service very well
Re: How to access local network?
Posted: Mon Nov 09, 2020 2:27 pm
by monsieurN
thanks for your help. It seems i just forget this :
Now go into Control Panel and navigate to "Network and Sharing Center" then click "Change Adapter Settings" on the left
Find the adapter that has "TAP" underneath it, then rename that adapter to "TAP"
Right click on your adapter that has an internet connection and go to "properties"
Select "Sharing" at the top and check the box for "Allow other network users to connect..."
if you install openvpn on windows server , it is very convenience to have everything to make it work so let making to have access local file .
you need to install routingandremoteaccess service and DNS server and WINS server after that open routingandremoteaccess and config with NAT type as picture
on the main internet card you click and chose as public and NAT
continuce chose openvpn network card and chose private as picture
just open WINS server to make sure everything start and you can access local access now
when you install all of them it will perform NAT and netbios over ip so from client openvpn you can type name to access local resource, if you like you can run multi instance openvpn so it can use all CPU core it mean faster connection to all client and if there are many clients connect to it it can service very well
if you install openvpn on windows server , it is very convenience to have everything to make it work so let making to have access local file .
you need to install routingandremoteaccess service and DNS server and WINS server after that open routingandremoteaccess and config with NAT type as picture
on the main internet card you click and chose as public and NAT
continuce chose openvpn network card and chose private as picture
just open WINS server to make sure everything start and you can access local access now
when you install all of them it will perform NAT and netbios over ip so from client openvpn you can type name to access local resource, if you like you can run multi instance openvpn so it can use all CPU core it mean faster connection to all client and if there are many clients connect to it it can service very well