Hi,
I have an ISP router followed by a Netgear router, lets call these A and B where B is connected via LAN port to its WAN port. The subnet for A is 192.168.0.1 and B 192.168.1.1. On Netgear I am running dd-wrt firmware to setup OpenVPN server for which I followed this video:
https://www.youtube.com/watch?v=dwrR18_xO_Q
I have Server: CONNECTED SUCCESS
Local Address: 10.8.0.1
Remote Address: 10.8.0.1
Also setup the OpenVPN GUI software client with a DDNS address, which connects fine on Windows 10 to 10.8.0.2.
Now the problem is, although I have port forwarded in router A to IP address of Router B, which is 192.168.0.99 port 1194, I cannot seem to be able to see the local network. Instead when I use my DDNS on an external network (using my 4G mobile as hotspot) I get access to my NAS page on Router A, but on a different IP address and different port forwarding and for some reason.
I have some networking knowledge, but no expert, however, this is really strange and confusing.
Happy to send any logs if that helps, but appreciate any suggestions on what to do.
Many thanks
Issue accessing openvpn server on dd-wrt
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 2
- Joined: Mon May 09, 2022 6:31 pm
- openvpn_inc
- OpenVPN Inc.
- Posts: 1333
- Joined: Tue Feb 16, 2021 10:41 am
Re: Issue accessing openvpn server on dd-wrt
Can you get rid of the ISP router? That's making things silly. A simpler configuration with just ONE router would be best.Bobby121418 wrote: ↑Mon May 09, 2022 8:46 pmI have an ISP router followed by a Netgear router, lets call these A and B where B is connected via LAN port to its WAN port.
Alternatively you could lose the Netgear, if the ISP CPE gives you the ability to set routes. But you'll probably have to run your openvpn server on a machine behind that router.
Those are individual IP addresses, not subnets. The subnets are probably 192.168.0.0/24 and 192.168.1.0/24. And those are the absolute worst choices for VPNs, because those are default subnets for almost every off-the-shelf router. In most cases you are not limited to the router's default network choice. See RFC 1918 and get creative.
Bobby121418 wrote: ↑Mon May 09, 2022 8:46 pmOn Netgear I am running dd-wrt firmware to setup OpenVPN server for which I followed this video:
- I do not recommend dd-wrt because of some poor choices they made. See if OpenWRT is available for your device.
- I can't review your video, but we do have a very good HOWTO I can recommend.
What? Local and remote address can't be the same.Bobby121418 wrote: ↑Mon May 09, 2022 8:46 pmI have Server: CONNECTED SUCCESS
Local Address: 10.8.0.1
Remote Address: 10.8.0.1
Okay, that sounds better.Bobby121418 wrote: ↑Mon May 09, 2022 8:46 pmAlso setup the OpenVPN GUI software client with a DDNS address, which connects fine on Windows 10 to 10.8.0.2.
You did not say what "the local network" is. Are nodes getting connectivity through dd-wrt or the ISP CPE? The external tunnel IP:port/proto has no relevance for routing inside the tunnel.Bobby121418 wrote: ↑Mon May 09, 2022 8:46 pmNow the problem is, although I have port forwarded in router A to IP address of Router B, which is 192.168.0.99 port 1194, I cannot seem to be able to see the local network.
Routing has to work both ways. The router has to know how to reach the VPN netblock, and the VPN has to know how to reach the LAN.
I am not sure what you're saying. I guess the dd-wrt is doing NAT to reach outside its network (through the WAN port.) That's normal and expected.Bobby121418 wrote: ↑Mon May 09, 2022 8:46 pmInstead when I use my DDNS on an external network (using my 4G mobile as hotspot) I get access to my NAS page on Router A, but on a different IP address and different port forwarding and for some reason.
regards, rob0
OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support