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.

Source
http://openvpn.net/index.php/open-source.html
Download
#wget https://repo.regolithmedia.com/ovpn_regolithmedia.zip
Install
#unzip ovpn_regolithmedia.zip
#chmod +x ovpn.sh

openvpn_regolithmedia

openvpn_regolithmedia

After installation process on server is completed, please download and install OpenVPN for Windows
http://openvpn.net/index.php/open-source/downloads.html
or
https://repo.regolithmedia.com/ovpn/openvpn-2.2.2-install.exe

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.
#nano /etc/openvpn/443-tcp.conf
Change the following lines
port 1194
proto udp

to

port 443
proto tcp

and then the following lines
server 10.2.3.0 255.255.255.0
status 1194-udp.log

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.
status 443-tcp.log

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

complete

complete

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

to

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