DD-WRT - OpenVPN to connect 2 LANs

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
prenard
DD-WRT Novice


Joined: 30 Apr 2021
Posts: 8

PostPosted: Thu Feb 20, 2025 12:34    Post subject: DD-WRT - OpenVPN to connect 2 LANs Reply with quote
Hello.

I try to implement a OpenVPN connection betweeen 2 Netgear R8000 routers using DD-WRT to connect 2 LANs (local and remote).

I used this article: https://openvpn.net/community-resources/how-to/#expanding-the-scope-of-the-vpn-to-include-additional-machines-on-either-the-client-or-server-subnet

My "local LAN" is 192.168.137.0/24

My "remote LAN" is 192.168.138.0/24

On my "local LAN", I have activated OpenVPN server on DD-WRT - using TUN 10.137.0.0/24

On my "remote LAN", I have activated OpenVPN client on DD-WRT

I am able to activate the VPN connection from client.

I am able to ping OpenVPN server 192.168.137.1 on local LAN from client on remote LAN (I am also able to ping all hosts which are connected to local LAN).

But I am not able to ping OpenVPN client 192.168.138.1 from server ! Imposssible to ping from local LAN to remote LAN...

What is strange is that on OpenVPN status page, I get the same address 10.137.0.1 for both local and remote address. I thought that I would have 10.137.0.1 for local and 10.137.0.2 for remote...

And I am not able to ping 10.137.0.2 !

On server, routes are:

root@Netgear-R8000-RO-137:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 0 0 0 vlan2
10.137.0.0 * 255.255.255.0 U 0 0 0 tun2
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
192.168.1.0 * 255.255.255.0 U 0 0 0 vlan2
192.168.137.0 * 255.255.255.0 U 0 0 0 br0
192.168.138.0 10.137.0.2 255.255.255.0 UG 100 0 0 tun2
192.168.138.0 10.137.0.2 255.255.255.0 UG 200 0 0 tun2

Because, i am not able to ping gateway 10.137.0.2, it seems normal that I am not able to ping 192.168.138.1 !

Any help would be appreciated...
Sponsor
foz111
DD-WRT Guru


Joined: 01 Oct 2017
Posts: 766
Location: Earth

PostPosted: Sat Feb 22, 2025 10:12    Post subject: Reply with quote
Have you read egc's bible on DD-WRT OPVN?
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327398

_________________
Main Router: Dynalink WRX36, PPPoE, Gateway Mode, Network IPV4 - Isolated Vlan's. Unifi AC-Pro x 3 AP's, Router Wi-Fi Disabled. Paid Commercial Wireguard Client's & WG server, DNSMasq, Static Leases with Cloudflare SmartDNS, DNSMasq Adblocking via egc script.

No one can build you the bridge on which you, and only you, must cross the river of life!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum