MY STORAGE
MY STORAGE
MY STORAGE
Would you like to react to this message? Create an account in a few clicks or log in to continue.

MY STORAGE

My All Collection
 
HomePortalGalleryLatest imagesSearchRegisterLog in

 

 [TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS.

Go down 
4 posters
AuthorMessage
JEN-JEN
Owner
Owner
JEN-JEN


Posts : 20
Reputation : 7
Join date : 2011-08-22

[TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS. Empty
PostSubject: [TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS.   [TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS. I_icon_minitimeTue Aug 23, 2011 6:43 pm

Lately, I have seen the advent of people creating Openvpn servers to alleviate the need for a faster cheaper broadband connection alternative wire free.

People have been offering their services for free to practice server administration. Unfortunately with the demand, services can not keep up with the demand.

So, I have decided to compile a helpful TUT that will ease up your VPN installation, should you choose you try one yourself.

*this TUT is currently not complete, as I have no screenshots to provide you with yet.*

The following files will be needed:

1 OPENVPN script

OpenVPN Script: My personal script - Link ( My Install script is currently more of less the same as the OVPNs on symbianize )
However, you need to upload this script on a location where you can directly download the file on Centos Linux.

OpenVPN Script: Blue module – Link ( This script is good but you will need to edit the configs manually after the script is ran to make it the same as the current OVPNs )

2. Sample Server configs ( Smart and Globe ) -- Link
3. Sample Client configs ( Smart and Globe only ) -- Link

Shall we start

1. First you need to subscribe to a VPS service. There are tons around here. Make sure that you request tun module enabled.

2. Logon to your VPS service with the provided credentials by the provider.

3. Console mode : Shall we ^_^ wink wink :

Type the following:
cat /dev/tun
#this will make sure that you tun module is enabled.
If you receive this message, your TUN/TAP device is ready for use:
cat: /dev/net/tun: File descriptor in bad state

If you receive this message, contact your provider for assistance:
cat: /dev/net/tun: No such file or directory


Method 1 ( Please upload the script that I edited, this is the an enhanced version of Bluemodule’s script )
Wget [the location where you uploaded the script file]
Chmod +x VPNinstall.sh


Method 2 ( Bluemodule )
Wget http://bluemodule.com/wp-content/plu...tall_script.sh
chmod +x ovpn_install_script.sh
Please run though the steps for the script.

4 . Once done you need to start the services. Call the following function:
Openvpn /etc/openvp.server.conf

5. Now we need to edit the iptables: run the following

# Flush all current rules from iptables

iptables -F
iptables -t nat -F
iptables -t mangle -F

# Allow SSH connections on tcp port 22 (or whatever port you want to use)
iptables -A INPUT -p tcp --dport 22 -j ACCEPT

# Set default policies for INPUT, FORWARD and OUTPUT chains
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

# Set access for localhost
iptables -A INPUT -i lo -j ACCEPT

# Accept packets belonging to established and related connections
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

#Accept connections on PORT for vpn access from clients
iptables -A INPUT -p udp --dport [PORT] -j ACCEPT ---- [ PORT pertains to the port you specified on the server ] – I used 9200
iptables -A INPUT -p udp --dport 443 -j ACCEPT --- for smart Wag na po palitan yun port.

#Apply forwarding for OpenVPN Tunneling
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT


If my script was followed do :

iptables -A FORWARD -s 10.10.0.0/24 -j ACCEPT
Else
iptables -A FORWARD -s 10.9.0.0/24 -j ACCEPT


#Use your OpenVPN server's real external IP here
iptables -t nat -A POSTROUTING -o venet0 -j SNAT --to-[WAN IP] [WAN IP ng VPS server mo]

echo 1 > /proc/sys/net/ipv4/ip_forward

6. So It should be ok now. Please keep in mind this ONLY works for GLOBE NOW. You need to create another server.conf on the /etc/openvpn/ folder for the smart connection.

A sample Globe and Smart Server Config can be found here. Link

** BTW: Kada update po ng config, kailangan po mag restart ng service – To do that type # service openvpn restart

7. Now we go to the client configs.
Copy the sample client configs here and edit the WAN IP. -- Link

8. Install Openvpn on the clients and try to connect and you should be good to go.



ENJOY YOUR CONNECTION after ^_^

** This TUT is still under construction and will be for editing, please keep posted for further updates **


*** Credits goes to Bluemodule, and all the people in Symbianize who provide the configs ^_^

I am cooking up another TUT. Mas mabilis at does not require you to use ssh sa computer mo. At kung gagamit ka man saglit na saglit lng po talaga. With pix na din po hopefully matapos ko pag may time ako..
Back to top Go down
princess
Activemember
Activemember



Posts : 24
Reputation : 1
Join date : 2011-08-07

[TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS. Empty
PostSubject: Re: [TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS.   [TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS. I_icon_minitimeThu Sep 01, 2011 6:01 am

Thank you for this...waiting
Back to top Go down
Darryl
Administrator
Administrator
Darryl


Posts : 453
Reputation : 34
Join date : 2010-05-17
Age : 41
Location : Philippines

[TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS. Empty
PostSubject: Re: [TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS.   [TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS. I_icon_minitimeFri Sep 02, 2011 7:58 am

itworks wrote:
Thank you for this...waiting

your welcome bro
Back to top Go down
http://master.chiefs.tv
cyber_rain31
Member
Member



Posts : 2
Reputation : -1
Join date : 2011-09-14

[TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS. Empty
PostSubject: Re: [TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS.   [TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS. I_icon_minitimeWed Sep 14, 2011 11:29 am

sir pa update naman po about dito ung with ScreenShot po sana para madaling maintindihan.
pasencya na po medyo noog lang po.
Back to top Go down
Darryl
Administrator
Administrator
Darryl


Posts : 453
Reputation : 34
Join date : 2010-05-17
Age : 41
Location : Philippines

[TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS. Empty
PostSubject: Re: [TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS.   [TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS. I_icon_minitimeThu Sep 15, 2011 8:46 am

cyber_rain31 wrote:
sir pa update naman po about dito ung with ScreenShot po sana para madaling maintindihan.
pasencya na po medyo noog lang po.

sensya na wala pang SS pag meron update ko agad.
Back to top Go down
http://master.chiefs.tv
Sponsored content





[TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS. Empty
PostSubject: Re: [TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS.   [TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS. I_icon_minitime

Back to top Go down
 
[TUTORIAL]HOW TO SETUP OPENVPN on Cent OS 5.4-5. 632 Bit with SCRIPTS.
Back to top 
Page 1 of 1
 Similar topics
-
» (TUTORIAL) HOW TO FORMAT A PC w/ PICTURES WINDOWS 7,XP,VISTA (TUTORIAL)
» OpenVPN with Portable VPN Poknat
» BASIC TUTORIAL MMC UNFORMAT
» Android Xtream VPN tutorial
» Free Internet OpenVPN Portable - New Method Sa LifeTime Proxy And New APN Tested

Permissions in this forum:You cannot reply to topics in this forum
MY STORAGE  :: EDUCATIONAL :: Tutorial & Tricks-
Jump to:  
Create a forum | ©phpBB | Free forum support | Report an abuse | Cookies | Forumotion.com