How to Set a Static IP in OpenVPN
By Chris Daniels
OpenVPN is an open source virtual private network that can allow your employees to securely connect to your business servers. For your small business, this means that your employees are conducting company business securely -- rather than over the open Internet -- even when they aren't in the office. When configuring your company's OpenVPN server, you can assign users a static IP address that will always be the same, a convenient way to manage a small user base.
Log in to your company's OpenVPN server using an account that has administrative privileges.
Navigate to the directory "/etc/openvpn."
Create a client configuration directory to store configuration information, including static IP addresses, for each OpenVPN user.
Edit the file "server.conf" in the directory "/etc/openvpn" using an editor such as EMACS or NANO. Add the following line to the file, replacing "clients" with whatever you chose to name the directory in the previous step.
Save the file.
Navigate to the client config directory that you just created.
Create files for each user exactly matching each username, using the touch command.
Add the following line to the newly created file, replacing the IP addresses with the static IP addresses that you wish assigned to this user.
ifconfig-push 184.108.40.206 220.127.116.11
Save the file.
Restart OpenVPN to activate your new settings using the following command:
service openvpn restart
Items you will need
Server with OpenVPN installed
Chris Daniels covers advances in nutrition and fitness online. Daniels has numerous certifications and degrees covering human health, nutritional requirements and sports performance. An avid cyclist, weightlifter and swimmer, Daniels has experienced the journey of fitness in the role of both an athlete and coach.