OpenVPN Server On CentOS 5.2
OpenVPN Server On CentOS 5.2So your users need access to Exchange and data from outside your organisation. Sure you can set up RPC over HTTPS and various other tools to access the data. I just find OpenVPN very good, convenient and reliable. And after battling to find a good simple HOWTO, I put this together. It's a quick and nasty but it works!:) Firstly, ensure you are root, and just in case the OpenVPN is not in the base repository, add the rpmforge repo (these steps you can find elsewhere). If you use selinux you will need this: #semanage port -a -t openvpn_port_t -p tcp 1723yum install openvpn cd /etc/openvpn/ cp -R /usr/share/doc/openvpn-2.0.9/easy-rsa/ /etc/openvpn/ cd /etc/openvpn/easy-rsa/2.0/
chmod +rwx * ./clean-all source ./vars vi ../vars (At the bottom of the files change the values to match the site.) vi vars (At the bottom of the files change the values to match the site.) ./build-ca (This builds the CA certificate.) source ./vars ./clean-all ./build-ca ./build-key-server server (This builds the server.key file.) vi /etc/openvpn/openvpn.conf (For slow lines UDP is faster. Use the below as a starting point:) port 1723 # (1194 is the default but on some APN networks this is blocked) proto tcp dev tun ca ca.crt cert server.crt key server.key dh dh1024.pem server 172.16.0.0 255.255.255.0 push "dhcp-option DNS 192.168.168.1" push "dhcp-option DNS 168.210.2.2" #push "dhcp-option WINS 192.168.1.2" push "route 192.168.168.0 255.255.255.0" ifconfig-pool-persist ipp.txt keepalive 10 120 comp-lzo user nobody group users persist-key persist-tun status openvpn-status.log verb 3 client-to-client duplicate-cn # (this means several users can use the same key)
cp keys/{ca.crt,ca.key,server.crt,server.key} /etc/openvpn/ (Make sure it is set to start at boot.) ./build-key <name> (Repeat and rinse if you want several individual client keys.) cd keys/ netstat -ntpl | grep 1723 Set the iptables firewall rules to allow with these rules: # External Interface for VPN Follow the client side instructions from here...
Installing OpenVPN GUI On Windows XP / Vista
Once the OpenVPN server has been setup and the client key(s) made available to you for installation, follow these steps to roll the VPN out to the clients: -Download the client software here: http://www.openvpn.se/. The tested version is 1.0.3. Version 2.0.9 works on Vista with the following in the client.ovpn file: route-method exeroute-delay 2 -Install the program. -Under C:\Program Files\OpenVPN\config place the following: ca.crt -Edit the client.ovpn file and ensure that the following fields match up for the site / user: # The hostname/IP and port of the server. # You can have multiple remote entries # to load balance between the servers. remote <myserver> 1723 ;remote my-server-2 1194 # SSL/TLS parms. # See the server config file for more # description. It's best to use # a separate .crt/.key file pair # for each client. A single ca # file can be used for all clients. ca ca.crt cert <name>.crt key <name>.key -Start OpenVPN and the client machine should connect. This is done by right clicking the OpenVPN in the task tray and clicking 'connect' or after starting the program via the start menu.
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Red Hat Virtual Experience - a free virtual event. Dec. 9th







Recent comments
19 hours 44 min ago
23 hours 20 min ago
1 day 1 hour ago
1 day 10 hours ago
1 day 11 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 14 hours ago
1 day 18 hours ago
1 day 23 hours ago