How to access local network?

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
monsieurN
OpenVpn Newbie
Posts: 10
Joined: Sat Oct 03, 2020 8:27 pm

How to access local network?

Post by monsieurN » Wed Nov 04, 2020 9:47 pm

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
Last edited by Pippin on Wed Nov 04, 2020 10:07 pm, edited 1 time in total.
Reason: Formatting

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: How to access local network?

Post by TinCanTech » Wed Nov 04, 2020 9:55 pm

Are you really using "OpenVPN Access Server" ? See your version.

monsieurN
OpenVpn Newbie
Posts: 10
Joined: Sat Oct 03, 2020 8:27 pm

Re: How to access local network?

Post by monsieurN » Wed Nov 04, 2020 10:09 pm

Sorry. You're right.

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: How to access local network?

Post by TinCanTech » Wed Nov 04, 2020 10:29 pm

What version are you using ? Server and client ..

monsieurN
OpenVpn Newbie
Posts: 10
Joined: Sat Oct 03, 2020 8:27 pm

Re: How to access local network?

Post by monsieurN » Thu Nov 05, 2020 6:37 am

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

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: How to access local network?

Post by TinCanTech » Thu Nov 05, 2020 2:30 pm

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.

https://community.openvpn.net/openvpn/wiki/HOWTO

300000
OpenVPN Expert
Posts: 685
Joined: Tue May 01, 2012 9:30 pm

Re: How to access local network?

Post by 300000 » Thu Nov 05, 2020 11:01 pm

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

Image

on the main internet card you click and chose as public and NAT

Image

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

Image


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

monsieurN
OpenVpn Newbie
Posts: 10
Joined: Sat Oct 03, 2020 8:27 pm

Re: How to access local network?

Post by monsieurN » Mon Nov 09, 2020 2:27 pm

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..."

https://www.reddit.com/r/OpenVPN/comments/81q2q6/guide_how_to_set_up_openvpn_server_on_windows_10/

Now, it work. Thanks Thanks Thanks

monsieurN
OpenVpn Newbie
Posts: 10
Joined: Sat Oct 03, 2020 8:27 pm

Re: How to access local network?

Post by monsieurN » Tue Nov 24, 2020 3:13 pm

300000 wrote:
Thu Nov 05, 2020 11:01 pm
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

Image

on the main internet card you click and chose as public and NAT

Image

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

Image


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
Sorry but can you post picture
please ?

300000
OpenVPN Expert
Posts: 685
Joined: Tue May 01, 2012 9:30 pm

Re: How to access local network?

Post by 300000 » Tue Nov 24, 2020 3:58 pm

300000 wrote:
Thu Nov 05, 2020 11:01 pm
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

Image

on the main internet card you click and chose as public and NAT

Image

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

Image


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

Post Reply