connect server to client network

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


Joined: 27 Feb 2023
Posts: 4

PostPosted: Mon Apr 17, 2023 20:00    Post subject: connect server to client network Reply with quote
I have a working openvpn connection from an X86 client router running DD-WRT v3.0-r50176 to a Ubuntu 18.04 lts server running OpenVPN 2.4.4 x86_64-pc-linux-gnu. This works perfectly. I want to be able to connect from the server to devices behind the client router (ssh, http, etc). I can ping the client router, connect via ssh and via http using the tunnel ip address but not the ip address of the router (neither the WAN or the LAN address). When I ping the client router using the LAN/WAN address then by using tcpdump I can see pings enter the tunnel at the server end but using tcpdump at the client end I see no icmp ping messages. When I do the same with the tunnel address, there is a ping icmp message and reply visible with tcpdump at both ends.

Why do I see the icmp ping enter the openvpn tunnel at the server but not exit the tunnel at the client? What should I be checking to make this work?
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12468
Location: Netherlands

PostPosted: Tue Apr 18, 2023 5:18    Post subject: Reply with quote
What you describe is referred to as a site-to-site setup i.e. bidirectional traffic.

The OpenVPN server setup guide has a paragraph how to set this up, it needs working with CCD files and setting iroute and route on the server side.

OpenVPN documentation is a sticky in this forum.

It is easier to do this with WireGuard, also a sticky in this forum.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
xalexa
DD-WRT Novice


Joined: 27 Feb 2023
Posts: 4

PostPosted: Thu Sep 28, 2023 17:12    Post subject: Reply with quote
egc wrote:
What you describe is referred to as a site-to-site setup i.e. bidirectional traffic.

The OpenVPN server setup guide has a paragraph how to set this up, it needs working with CCD files and setting iroute and route on the server side.

OpenVPN documentation is a sticky in this forum.

It is easier to do this with WireGuard, also a sticky in this forum.


Your comment eventually led me to this article:

https://backreference.org/2009/11/15/openvpn-and-iroute/index.html

That explained the required content of the CCD files and how to use iroute. It all works perfectly now. Hopefully the link will help anyone else looking at this thread.

Thanks.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12468
Location: Netherlands

PostPosted: Thu Sep 28, 2023 17:43    Post subject: Reply with quote
If you would have taken the time to look at our own documentation which I referred to than you would already had known that.
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
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