Synology NAS OpenVPN can't access PC

This forum is for general conversation and user-user networking.

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

Post Reply
benw#8484
OpenVpn Newbie
Posts: 1
Joined: Tue Sep 26, 2023 11:15 am

Synology NAS OpenVPN can't access PC

Post by benw#8484 » Tue Sep 26, 2023 11:27 am

Hello! Hope someone can help.

So I have successfully set up a VPN instance on my Synology NAS. I can connect to it from my Windows PC from another location, access it, mount shared folders to File Explorer etc.

However, I want to mount a folder from my Windows PC to my Synology NAS, the NAS can't seem to see the PC. I have tried pinging my PC from the NAS with no response. I am assuming I have configured something incorrectly.

Please see my config below:

Server Config

dev tun
tls-client

remote `redacted`

# Only pass through the NAS

route-nopull
route 192.168.0.48 255.255.255.255

# The "float" tells OpenVPN to accept authenticated packets from any address,
# not only the address which was specified in the --remote option.
# This is useful when you are connecting to a peer which holds a dynamic address
# such as a dial-in user or DHCP client.
# (Please refer to the manual of OpenVPN for more information.)

#float

# If redirect-gateway is enabled, the client will redirect it's
# default network gateway through the VPN.
# It means the VPN connection will firstly connect to the VPN Server
# and then to the internet.
# (Please refer to the manual of OpenVPN for more information.)

#redirect-gateway def1

# dhcp-option DNS: To set primary domain name server address.
# Repeat this option to set secondary DNS server addresses.

#dhcp-option DNS DNS_IP_ADDRESS

pull

# If you want to connect by Server's IPv6 address, you should use
# "proto udp6" in UDP mode or "proto tcp6-client" in TCP mode
proto udp


route-nopull
route 192.168.0.48 255.255.255.255

I was suggested to add the lines above as I had an issue where I wanted to still be able to access devices (Raspberry Pi and so on) on my local network (where my PC is) but still access the NAS at the same time as both locations use the same subnet, not ideal but will stay this way if possible. So I gather that adding those lines only lets me access the NAS (192.168.0.48 at the remote location) through the VPN leaving all other IP's to work 'locally'

Do I need to set a similar configuration to be able to access my PC at the remote location on the NAS?

Thanks for any help!

Post Reply