OpenVPN: NAS only accessible at 10.8.0.1 in stead of 192.168.1.X ip

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
sceppi
OpenVpn Newbie
Posts: 3
Joined: Thu Jul 06, 2017 9:07 am

OpenVPN: NAS only accessible at 10.8.0.1 in stead of 192.168.1.X ip

Post by sceppi » Thu Jul 06, 2017 9:10 am

Hi,

I'm running OpenVPN on my synology NAS.
I can succesfully make an OpenVPN connection through IP 10.8.0.0.
In my home network my NAS is configured at 192.168.1.10

When I connect via VPN, I can only access my NAS at 10.8.0.1
How can I change this so my NAS is also accessible through its normal internal IP address 192.168.1.10?

I've read many thing about adding new (static) routes or redirect gateway, but so far unsuccesful.

In my .ovpn file I have following lines included:
redirect-gateway def1
dhcp-option 192.168.1.1 (IP of my router)

Thanks

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

Re: OpenVPN: NAS only accessible at 10.8.0.1 in stead of 192.168.1.X ip

Post by TinCanTech » Thu Jul 06, 2017 12:04 pm

Please see:
HOWTO: Request Help ! {2}

Also,
  • NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
:arrow: Never use 192.168.0.0/24 or 192.168.1.0/24 (or other common subnets) for your OpenVPN Server LAN :!:
  • You are advised to change your server LAN to a more unique RFC1918 compliant subnet.
    For example: 192.168.143.0/24
Also, ensure IP forwarding is enabled on your server.

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: OpenVPN: NAS only accessible at 10.8.0.1 in stead of 192.168.1.X ip

Post by Pippin » Thu Jul 06, 2017 1:16 pm

He forgot to mention that access to the rest of the 192.168.1.0/24 is working, just not 192.18.1.10

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

Re: OpenVPN: NAS only accessible at 10.8.0.1 in stead of 192.168.1.X ip

Post by TinCanTech » Thu Jul 06, 2017 1:41 pm

Pippin wrote:He forgot to mention that ..
How do you know that ?


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

Re: OpenVPN: NAS only accessible at 10.8.0.1 in stead of 192.168.1.X ip

Post by TinCanTech » Thu Jul 06, 2017 2:15 pm

Sounds like firewall on the NAS ..

sceppi
OpenVpn Newbie
Posts: 3
Joined: Thu Jul 06, 2017 9:07 am

Re: OpenVPN: NAS only accessible at 10.8.0.1 in stead of 192.168.1.X ip

Post by sceppi » Fri Jul 07, 2017 7:08 am

I indeed posted this on the synology forum as well... but so far I don't have an answer.
I'm indeed able to access all my other devices on the 192.168.1.x network
I've changed my LAN IP subnet from 192.168.1.X to another uncommon subnet IP range, but that doesn't help. There are no conflicts in the network.
There is also no firewall configured on my NAS.

Any info that I can post which can be of any help?
Below is my .ovpn config:
ovpn config
dev tun
tls-client

remote MY_EXTERNAL_IP 1194

redirect-gateway def1
dhcp-option 192.168.1.1

pull

proto udp

script-security 2

comp-lzo

reneg-sec 0

cipher BF-CBC

auth SHA1

auth-user-pass
<ca>

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

Re: OpenVPN: NAS only accessible at 10.8.0.1 in stead of 192.168.1.X ip

Post by TinCanTech » Fri Jul 07, 2017 9:44 am

Can you ping the server on it's ethernet IP from the client ?

sceppi
OpenVpn Newbie
Posts: 3
Joined: Thu Jul 06, 2017 9:07 am

Re: OpenVPN: NAS only accessible at 10.8.0.1 in stead of 192.168.1.X ip

Post by sceppi » Fri Jul 07, 2017 10:33 am

Note: I've now changed my subnet to 192.168.2.0

I can ping my router at 192.168.2.1 (+ any other device on the network except the NAS)
reply from 192.168.2.1: byte=32 time=39ms TTL=63

I cannot ping my NAS at 192.168.2.10:
Request timed out

I can ping my NAS at 10.8.0.1:
reply from 10.8.0.1: byte=32 time=48ms TTL=64

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

Re: OpenVPN: NAS only accessible at 10.8.0.1 in stead of 192.168.1.X ip

Post by TinCanTech » Fri Jul 07, 2017 11:40 am

Post your server and client logs at --verb 4

See this
TinCanTech wrote:Please see:
HOWTO: Request Help ! {2}

Post Reply