usmcamp0811 DD-WRT Novice
Joined: 19 Feb 2018 Posts: 6
|
Posted: Mon Feb 19, 2018 2:56 Post subject: Static Client IP with OpenVPN Server |
|
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 |
|
|