Editing Openvpn

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
Info on TAP/bridge
https://help.ubuntu.com/10.04/serverguide/openvpn.html
==Centos 6.4==
==Centos 6.4==


=== Install ===
=== Install ===
* just explains easy rsa/keys
<source>
<source>
yum -y install openvpn easy-rsa
yum -y install openvpn easy-rsa
Line 21: Line 14:


<source>
<source>
emacs /etc/openvpn/easy-rsa/vars
cd /etc/openvpn/easy-rsa/
emacs vars
</source>
</source>
<source>
<source>
Line 34: Line 28:
export KEY_NAME=changeme
export KEY_NAME=changeme
export KEY_OU=changeme
export KEY_OU=changeme
</source>
export PKCS11_MODULE_PATH=changeme
 
export PKCS11_PIN=1234
 
<source>
cd /etc/openvpn/easy-rsa/
source ./vars
./clean-all
./build-ca
</source>
 
 
<source>
cd /etc/openvpn/easy-rsa
./build-key-server server
</source>
<source>
cd /etc/openvpn/easy-rsa
./build-dh
cd /etc/openvpn/easy-rsa/keys
cp dh1024.pem ca.crt server.crt server.key /etc/openvpn
</source>
<source>
# TLS key if needed/wanted
cd /etc/openvpn/easy-rsa/keys
openvpn --genkey --secret ta.key
cp ta.key /etc/openvpn/
</source>
 
 
<source>
## this didn't work right..
#./build-key client
#./build-key <client_name>
 
# create your client config (replace hostname with your client hostname)
cd /etc/openvpn/easy-rsa
./pkitool hostname
</source>
</source>
 
 
<source>
emacs /etc/sysctl.conf
net.ipv4.ip_forward = 1
sysctl -p
</source>
 
 
<source>
cp /usr/share/doc/openvpn-2.3.2/sample/sample-config-files/server.conf /etc/openvpn/
emacs /etc/openvpn/server.conf
</source>
 
 
<source>
chkconfig openvpn on
service start openvpn
</source>
</source>


Please note that all contributions to RARForge may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see RARForge:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)