Posted: Tue Dec 12, 2023 2:15 Post subject: Placing Clients into OpenVPN Subnet
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
Joined: 18 Mar 2014 Posts: 12923 Location: Netherlands
Posted: Tue Dec 12, 2023 7:13 Post subject:
Welcome to the forum
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.