• September 28, 2021, 09:41:10 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Default route override when OpenVPN is connected  (Read 1358 times)

zazy

  • Level 1 Member
  • *
  • Posts: 2
Default route override when OpenVPN is connected
« on: May 21, 2021, 10:26:12 AM »

Hello everybody,

I have two DSR-250N routers connected via OpenVPN. VPN is correctly conneted as stated in the Status > Active VPNs > Open VPN Connections.
I have two problems:

1. it doesn't add the 192.168.10.0 route to go through the VPN even if remote network is added to the remote network list in my local router.

2. the client adds an additional default route so that all internet traffic is routed over VPN instead of using the WAN port. This route is ADDED to the routing table as long as the default route through the WAN port is.

Local DSR network: 192.168.11.0/24
Remote DSR network: 192.168.10.0/24
VPN network: 10.10.10.0/24

Here the routing table:

Code: [Select]
                                      Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.10.10.5      0.0.0.0         255.255.255.255 UH    0      0        0 tun1
93.41.193.202   192.168.1.254   255.255.255.255 UGH   0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
10.10.10.0      10.10.10.5      255.255.255.0   UG    0      0        0 tun1
192.168.11.0    0.0.0.0         255.255.255.0   U     0      0        0 bdg1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         10.10.10.5      128.0.0.0       UG    0      0        0 tun1
128.0.0.0       10.10.10.5      128.0.0.0       UG    0      0        0 tun1
0.0.0.0         192.168.1.254   0.0.0.0         UG    0      0        0 eth1

I've looked for an option like "Route all traffic through VPN" but nothing is there.
Firmware version: 3.14_WW, hardware version: C1

Wha I'm missing??
Logged

zazy

  • Level 1 Member
  • *
  • Posts: 2
Re: Default route override when OpenVPN is connected
« Reply #1 on: May 21, 2021, 03:38:37 PM »

Something strange: I can ping the 192.168.10.1 IP (using Maintenance > Diagnostiscs menu) from local router to the remote router but not viceversa.
I can't ping the same IP from a PC connected to the local router physical port.

Another strange thing: If I keep pinging something like www.google.com from a PC connected to the physical port, as soon as I connect the VPN it stops pinging.

Do you know if this router is sold as a working router or is it only a paperwaight I should return to the seller? I bought four of it to connect remote offices to central one.
Logged