As the title says, i created OpenVPN Community Software Auto Installer for CentOS 5 & 6, Debian 6, and Ubuntu 10.10.
#chmod +x ovpn.sh
After installation process on server is completed, please download and install OpenVPN for Windows
and then download config.zip 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.
Change the following lines
and then the following lines
server 10.2.3.0 255.255.255.0
to (for example)
server 10.2.4.0 255.255.255.0 >> you have to differentiate the subnet for local ip assignment in each port and protocol configuration, and so on.
after that, run the openvpn with new config
#openvpn /etc/openvpn/443-tcp.conf &
#iptables -t nat -A POSTROUTING -s 10.2.4.0/24 -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
remote Your_ip_address 1194
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. 😀