Placing Clients into OpenVPN Subnet

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


Joined: 12 Nov 2022
Posts: 1

PostPosted: Tue Dec 12, 2023 2:15    Post subject: Placing Clients into OpenVPN Subnet Reply with quote
Hi all - I'm having some trouble figuring out the exact configuration to use so that I can get multiple clients connected to a DD-WRT router connected to my VPN where each of them should have their own IP within the VPN's subnet.
As it is, I have an OpenVPN server set up and using its own subnet of 10.8.0.0 255.255.255.0. I can get the DD-WRT router to successfully connect to the VPN and get an IP address of 10.8.0.2 assigned to it but each device that is connected to the DD-WRT router has an IP address such as 192.168.1.116 (assigned by the router) instead of 10.8.0.5.
I tried looking through the posts here but wasn't able to find anything that seemed like what I'm looking for (I'm a relative newbie to more advanced configurations so definitely possible that I missed it) and trial and error hasn't worked out either. Is this possible? Let me know if any other info is needed/would be useful.

Here's what I have so far in my configuration:

OpenVPN server configuration
Code:
port 1194
proto udp4
dev tap
ca ******************************************
cert ******************************************
key ******************************************
dh ******************************************
topology subnet
server 10.8.0.0 255.255.255.0
client-to-client
duplicate-cn
keepalive 10 120
cipher AES-256-GCM
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1
crl-verify "C:\\Program Files\\OpenVPN\\easy-rsa\\pki\\crl.pem"


Client configuration (imported the file into DD-WRT using GUI)
Code:
client
remote ******************* 1194
redirect-gateway def1
dev tap
proto udp
cipher AES-256-GCM
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
verb 3

<ca>
-----BEGIN CERTIFICATE-----
******************************************
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
******************************************
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
******************************************
-----END PRIVATE KEY-----
</key>

---------------------------------------------------------------------------------------------
Router: Linksys EA2700
Firmware: DD-WRT v3.0-r54475 giga (12/07/23)


Last edited by abductist on Tue Dec 12, 2023 17:44; edited 2 times in total
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12923
Location: Netherlands

PostPosted: Tue Dec 12, 2023 7:13    Post subject: Reply with quote
Welcome to the forum Smile

When you post always state router model and build number.

See the forum guidelines with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

OpenVPN server setup guide is a sticky (first few threads) in this forum.

If there are any questions left feel free to ask, usually most answers can be found in the guide or other VPN docs Smile

_________________
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