1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

    Dismiss Notice
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

Can't connect to OpenVPN/LAN server from the outside

Discussion in 'Asuswrt-Merlin' started by Geo92, Jan 27, 2020.

  1. Geo92

    Geo92 Occasional Visitor

    Joined:
    Jun 27, 2019
    Messages:
    13
    Hello, I have been trying to fix my problems with my own OpenVPN server on the RT-AC87U Router running on 384.12.

    1. My setup is this: INTERNET access point -> FritzBox 7590 router -> Asus Router (RT-AC87U).
    2. Fritzbox is on a different lan net than the Asus one.
    Example: Fritzbox is 192.166.166.1 . Asus router is 192.166.1.1 (but assigned 192.166.166.27 on Fritzbox)
    3. The Asus router gets a static WAN IP assigned from the FritzBox.
    4. My FritzBox has port forwarding set-up for the Asus Router allowing access to OpenVPN , UDP Port 1194.
    5. OpenVPN Server is set-up on the Asus router correctly as according to the guide I found on this forum. I entered the DDNS which I made and attached to my global internet IP on my Asus router.
    6. On my mobile OpenVPN client, I imported everything. But I get an error "read UDP [EHOSTUNREACH]: No route to host (code=113).

    What am I doing wrong? I am trying to gain access the LAN of the AsusRouter, for camera reasons.

    But something is blocking me gaining access. Or I forgot something? I tried turning off the Firewall on the Asus Router, that didn't help.
     
  2. ColinTaylor

    ColinTaylor Part of the Furniture

    Joined:
    Mar 31, 2014
    Messages:
    10,566
    Location:
    UK
    Check the ovpn file that you imported has your DDNS name in the remote statement.

    If that is correct do an nslookup on the DDNS name and confirm that it resolves to your external public IP address.
     
  3. maxbraketorque

    maxbraketorque Very Senior Member

    Joined:
    Dec 6, 2015
    Messages:
    665
    Have you looked at the Fritzbox log? And start by try connecting to the ASUS router or something connecting to the ASUS router by a more straightforward protocol. You could briefly forward and open the ASUS router HTTPS GUI port to the internet and try connecting.
     
  4. Geo92

    Geo92 Occasional Visitor

    Joined:
    Jun 27, 2019
    Messages:
    13
    I checked both to be sure, and they are correct. The nslookup shows my IP with the DDNS, and the remote statement is directed towards the DDNS.

    Can't see any mention of in the Fritzbox event log. Going to give that one a try with https.
     
  5. Geo92

    Geo92 Occasional Visitor

    Joined:
    Jun 27, 2019
    Messages:
    13
    Well that suggestion didn't help me troubleshoot the problem. I did however reset my config to a previous state before I went and tweaked all kinds of stuff in the VPN.
    I can connect to the VPN while I am still connected through the WiFi with my mobile, but as soon as I jump on an outside network I can not connect anymore. That's one step closer than my previous state of not being able to connect at all.