OpenVPN Community Software Auto Installer for CentOS 5 & 6, Debian 6, and Ubuntu 10.10

Hi guys,

As the title says, i created OpenVPN Community Software Auto Installer for CentOS 5 & 6, Debian 6, and Ubuntu 10.10.

#chmod +x



After installation process on server is completed, please download and install OpenVPN for Windows

and then download inside your server’s “/root” directory, extract the files 1194-udp.ovpn dan ca.crt into the OpenVPN config folder Windows, and then run the OpenVPN with username / password you entered in the installation. For Windows 7 don’t forget to “Run as Administrator”

Add config / port
Copy config / port default 1194 udp at folder “/etc/openvpn” with the new name, for example we want to create new config with port 443 tcp.
#cp /etc/openvpn/1194-udp.conf /etc/openvpn/443-tcp.conf
Edit the new copied config, you can use nano, pico, vi, or any editor you like.
#nano /etc/openvpn/443-tcp.conf
Change the following lines
port 1194
proto udp


port 443
proto tcp

and then the following lines
status 1194-udp.log

to (for example)
server >> you have to differentiate the subnet for local ip assignment in each port and protocol configuration, and so on.
status 443-tcp.log

after that, run the openvpn with new config
#openvpn /etc/openvpn/443-tcp.conf &
#iptables -t nat -A POSTROUTING -s -j SNAT –to Your_Ip_address



OpenVPN success status message with the new config is “Initialization Sequence Completed”,other than that means error, check whether your choosen port is already used by another apps.

the last, create configuration for Windows, just like the existing 1194 configuration, just change the port and protocol in the following lines
proto udp
remote Your_ip_address 1194


proto tcp
remote Your_ip_address 443

You may already know the difference between tcp and udp port, mainly i use tcp if my internet connection must through proxy / can be used with proxy, for details about tcp / udp you can do Googling. Last words, if there’s any error or suggestion, please post here so we can discuss and learn it together, thank you. 😀

Leave a Reply