OpenVPN: NAS only accessible at 10.8.0.1 in stead of 192.168.1.X ip
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- 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
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
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
-
- 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
Please see:
HOWTO: Request Help ! {2}
Also,
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.
- You are advised to change your server LAN to a more unique RFC1918 compliant subnet.
For example: 192.168.143.0/24
- 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
He forgot to mention that access to the rest of the 192.168.1.0/24 is working, just not 192.18.1.10
-
- 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
How do you know that ?Pippin wrote:He forgot to mention that ..
- Pippin
- Forum Team
- Posts: 1201
- Joined: Wed Jul 01, 2015 8:03 am
- Location: irc://irc.libera.chat:6697/openvpn
-
- 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
Sounds like firewall on the NAS ..
-
- 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
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:
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>
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>
-
- 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
Can you ping the server on it's ethernet IP from the client ?
-
- 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
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
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
-
- 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 your server and client logs at --verb 4
See this
See this
TinCanTech wrote:Please see:
HOWTO: Request Help ! {2}