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.
Anti-spam check. Do
not
fill this in!
Info on TAP/bridge https://help.ubuntu.com/10.04/serverguide/openvpn.html ==Centos 6.4== === Install === * just explains easy rsa/keys <source> yum -y install openvpn easy-rsa </source> <source> mkdir -p /etc/openvpn/easy-rsa/keys cp -rf /usr/share/easy-rsa/2.0/* /etc/openvpn/easy-rsa </source> <source> emacs /etc/openvpn/easy-rsa/vars </source> <source> # modify variables in file: vars (bottom of file) export KEY_COUNTRY="US" export KEY_PROVINCE="CA" export KEY_CITY="SanFrancisco" export KEY_ORG="Fort-Funston" export KEY_EMAIL="me@myhost.mydomain" export KEY_EMAIL=mail@host.domain export KEY_CN=changeme export KEY_NAME=changeme export KEY_OU=changeme </source> <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> [[Category:How-to]] [[Category:Linux]] [[Category:Services]]
Summary:
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)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Home
All Pages
All Files
View Categories
Recent changes
Random page
Edit this menu
Tools
What links here
Related changes
Special pages
Page information