Static Client IP with OpenVPN Server

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


Joined: 19 Feb 2018
Posts: 6

PostPosted: Mon Feb 19, 2018 2:56    Post subject: Static Client IP with OpenVPN Server Reply with quote
I am an uber n00b when it comes to networking so please forgive me. I want to setup static IP addresses for my machines on my VPN. I have been able to do this before when I had my VPN running on a RaspberryPi by adding some files in the server's `/etc/openvpn/ccd` folder and adding a lines to both `server.conf` and `ipp.txt`.

I've been searching all weekend and I did run across another older post on here: https://www.dd-wrt.com/phpBB2/viewtopic.php?p=733233. It said to use the Admin>Command window to echo the stuff into the `ccd` folder.

I tried this and I think I have it right but probably some smalling thing. Can someone spot check my code and help me out? Thanks!

Code:

echo "client-config-dir /tmp/openvpn/ccd > /tmp/openvpn/server.conf
mkdir /tmp/openvpn/ccd/
echo "ifconfig-push 10.8.0.106 255.255.255.0" > /tmp/openvpn/ccd/MainDesktop
echo "MainDesktop,10.8.0.106" > /tmp/openvpn/ipp.txt
Sponsor
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