Page 1 of 1
Site to site with OPENVPN and DSR-250n/dsr-1000ac
Posted: Tue Mar 28, 2017 3:26 pm
by leknoppix
Hello all,
I come here because I have a problem.
I'm trying to connect 2 sites between dsr-250n and dsr-1000ac using OPENVPN.
My local network (site 1) is 192.168.1.X 255.255.255.0 (dsr-1000ac)
My other network (site 2) is 192.168.10.X 255.255.255.0 (dsr-250n)
I have generate the certificat with this how to:
https://debian-facile.org/doc:reseau:openvpn (sorry, I'm french)
I have integrate this certificat in my dsr-1000ac (openvpn server) and my client certificat in my dsr-250n (using my primary IP of my WIN).
In the dashboard, I get the impression that the VPN via OpenVPN is OK.
I have this

But I can't ping from site1 to site2 and conversely.
Can you help me?
Re: Site to site with OPENVPN and DSR-250n/dsr-1000ac
Posted: Wed Mar 29, 2017 4:27 pm
by leknoppix
Nobody?
I think that my problem is about route static and no about openvpn
I have this
Code: Select all
Location 1 (192.168.1.X/255.255.255.0) // NET // (192.168.10.X/255.255.255.0) Location 2
Location 1 is my openvpn server 128.10.0.0/255.255.255.0
In my route stating in Location 1, I have do
Code: Select all
Name Destination Subnet Mask Gateway Interface Metric Active Private
VPN_1 128.10.0.0 255.255.255.0 192.168.1.1 LAN 2 yes no
VPN_2 192.168.10.1 255.255.255.0 192.168.1.1 LAN 2 yes no
And in my Location 2:
Code: Select all
Name Destination Subnet Mask Gateway Interface Metric Active Private
VPN_1 128.10.0.1 255.255.255.0 192.168.10.1 LAN 2 yes no
VPN_2 192.168.1.0 255.255.255.0 192.168.10.1 LAN 2 yes no
Someone can help me?
Re: Site to site with OPENVPN and DSR-250n/dsr-1000ac
Posted: Wed Apr 05, 2017 12:03 pm
by leknoppix
Hello All
no answer!!
I have this in my iptable of openvpnserver
Kernel IP routing table
Code: Select all
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth1
10.8.0.0 10.8.0.2 255.255.0.0 UG 0 0 0 tun1
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 bdg1
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.10.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun1
192.168.30.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun1
192.168.90.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun1
and in my openvpn client
Code: Select all
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.1 127.0.0.1 255.255.255.255 UGH 1 0 0 lo
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.90.0 0.0.0.0 255.255.255.0 U 0 0 0 bdg1
192.168.90.0 192.168.90.1 255.255.255.0 UG 1 0 0 bdg1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth1
I do not understand what's going on
Re: Site to site with OPENVPN and DSR-250n/dsr-1000ac
Posted: Wed Apr 05, 2017 1:00 pm
by TinCanTech
First, most people using this forum do not use the same router as you, so will not be able to help.
Second, your configs do not match your route tables ..
In one post you use 128.10.0.0/24 (Which you should not use)
In another post you use 10.8.0.0/24 .. so which is it ?
I suggest you read the openvpn HOWTO completely.
Re: Site to site with OPENVPN and DSR-250n/dsr-1000ac
Posted: Wed Apr 05, 2017 1:22 pm
by leknoppix
I realized that the range 128.10.0.1/24 was protected; So I switch to an ip page 10.8.0.0/24
Re: Site to site with OPENVPN and DSR-250n/dsr-1000ac
Posted: Wed Apr 05, 2017 1:25 pm
by TinCanTech
leknoppix wrote:I switch to an ip page 10.0.0.0/24
No you did not .. you switched to
10.8.0.0
Please see the HOWTO above.
Re: Site to site with OPENVPN and DSR-250n/dsr-1000ac
Posted: Mon Jan 11, 2021 10:57 am
by krychek
Hi!
Were you able to set up the connection after all? I want to do the same thing: site to site with OpenVPN and two DSR-250N routers.
I was following this guide:
ftp://ftp2.dlink.com/PRODUCTS/DSR-SERIE ... PENVPN.pdf
Instead of certs I'm using a password for now. I didn't set up and static routes or anything else that's not in the guide.
Both router's GUI show that the OpenVPN connection is working just like it's shown in the guide. However the last step is not working, I'm not able to ping 192.168.10.1 and 192.168.20.1 from either site.
I'm really new to VPNs and don't know how to proceed.
Thanks for any help.