1

My setup

Fritz!box 7490

  • Main router and modem
  • IP: 192.168.178.1

ASUS RT-AC68U (Firmware: Asuswrt-Merlin 380.66_4)

  • Connected with LAN port
  • Here I disable the DHCP and WAN (the cables is connected on LAN port).
  • IP: 192.168.178.2

Conditions

  • The devices can connect on Fritz!box and/or on Asus
  • The Fritz!box does not have the ability to use OpenVPN.
  • The Asus can use OpenVPN Client but can't connect without the WAN (wrong?).
  • I don't want to split my lan in two IP family.

Question

I just want some IP pass through VPN (and I know it's possible with the VPN rules of routing). This is the simple rule:enter image description here

How can I fix the problem of VPN without WAN continuing to say "connecting"? And is this configuration possible? How should I configure it? Thanks !


Log

    Jun 17 11:45:05 rc_service: httpd 5645:notify_rc start_vpnclient1
    Jun 17 11:45:08 openvpn[6148]: OpenVPN 2.4.2 arm-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on May 26 2017
    Jun 17 11:45:08 openvpn[6148]: library versions: OpenSSL 1.0.2k  26 Jan 2017, LZO 2.08
    Jun 17 11:45:08 openvpn[6149]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
    Jun 17 11:45:08 openvpn[6149]: Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
    Jun 17 11:45:08 openvpn[6149]: Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
    Jun 17 11:45:08 openvpn[6149]: TCP/UDP: Preserving recently used remote address: [AF_INET]xxx.xxx.xxx.xxx:443
    Jun 17 11:45:08 openvpn[6149]: Socket Buffers: R=[122880->122880] S=[122880->122880]
    Jun 17 11:45:08 openvpn[6149]: UDP link local: (not bound)
    Jun 17 11:45:08 openvpn[6149]: UDP link remote: [AF_INET]xxx.xxx.xxx.xxx:443
    Jun 17 11:45:08 openvpn[6149]: write UDP: Network is unreachable (code=101)
    Jun 17 11:45:08 openvpn[6149]: Network unreachable, restarting
    Jun 17 11:45:08 openvpn[6149]: SIGUSR1[soft,network-unreachable] received, process restarting

TEST

It seems to work, but I have many doubts that it is correct. In fact, the connection seems unstable (I'm trying for a while), I probably created some loops? But this is the link diagram. Considering that there are many meters between the switch and the ASUS router, and I have only one LAN cable that connects the two rooms.

Link diagram

Ok I can confirm, this test is not working, the connection is unstable.

4
  • I think the best solution would be to get a new router that can replace both of yours.
    – harrymc
    Commented Jun 28, 2017 at 6:24
  • @harrymc I could do a lot of change for the final result, but what I want to do is: use the ASUS router (connected in LAN without WAN) as VPN gateway for some IP. The simplest way (using this hardware) is to use the Fritz!box as modem and the ASUS as router connected with WAN port. But I would like to solve it differently. Thanks :)
    – Baro
    Commented Jun 29, 2017 at 13:57
  • What exactly is the problem with connecting the Asus to the Internet?
    – harrymc
    Commented Jun 29, 2017 at 15:33
  • The ASUS is only a Router. From the Fritz!Box to the ASUS there are many meter and only one LAN cable. The Fritz!box must be in the main room (for DECT and cordless and for internet) and I use the ASUS for the WIFI (in another room with big walls) and (I hope) for the VPN. I try to post a diagram of a configuration of test, but the hardware is that.
    – Baro
    Commented Jun 29, 2017 at 16:36

2 Answers 2

1

As far as I know in most router setups the buildin OpenVPN is hardcoded setup to make the outgoing connection on the WAN side.
This is the natural way of doing things for 99.999% of all customers that need a OpenVPN setup on their router so nobody bothers to implement anything else.
Your setup is in that other 0.001%.

Technically it is possible to set this up and because you are running an OpenWRT variant it, most likely can be done by manually changing the config-files in the router. I wouldn't know how. I'm not familiar with OpenWRT at that level of detail.

The only other way of making this work I see is physically swapping both routers and use the Asus as the WAN router.
But, in your case, this isn't possible, because your uplink is ADSL or VDSL, which the Asus can't do.

2
  • Unfortunately I think you are right, I hope someone (in the 0.001%!) can give me the solution, with a config file too (even though it is not my favorite choice). Thanks anyway :)
    – Baro
    Commented Jun 17, 2017 at 12:23
  • If no one has an answer ... it's right that it's yours. Thanks @Tonny
    – Baro
    Commented Jul 5, 2017 at 10:41
0

I have the same configuration.

OpenVPN Server on Router Asus which is in lan.

In the advanced settings of openvpn i have chose tcp instead of udp

From my router which have wan i have did a port forwarding redirecting all traffic that comes on port 1194 to the openvpn server ip on port 1194 ( if you don't know your openvpn server ip you can find into the client.ovpn by open with notepad)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .