Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
OpenVPN: Building and Integrating Virtual Private Networks

You're reading from   OpenVPN: Building and Integrating Virtual Private Networks Learn how to build secure VPNs using this powerful Open Source application

Arrow left icon
Product type Paperback
Published in May 2006
Publisher Packt
ISBN-13 9781904811855
Length 270 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (17) Chapters Close

OpenVPN
1. Credits
2. About the Author
3. About the Reviewers
4. Preface
1. VPN—Virtual Private Network FREE CHAPTER 2. VPN Security 3. OpenVPN 4. Installing OpenVPN 5. Configuring an OpenVPN Server—The First Tunnel 6. Setting Up OpenVPN with X509 Certificates 7. The Command openvpn and its Configuration File 8. Securing OpenVPN Tunnels and Servers 9. Advanced Certificate Management 10. Advanced OpenVPN Configuration 11. Troubleshooting and Monitoring Index

Configuring OpenVPN to Use Certificates


Open the configuration file in your favorite editor; of course you may also use Notepad:

All you have to do here is put # in front of the entry secret key.txt, which we adapted in our last chapter, and add the following five entries:

Entry in config file

Function

tls-server

OpenVPN will run in TLS-server mode (on a client you will have to add TLS-client)

dh keys/dh2048.pem

Use the Diffie-Hellman key stored in keys/dh2048.pem

ca keys/ca.crt

Use the CA certificate in keys/ca.crt

cert keys/VPN-Server.crt

Use my certificate in keys/VPN-Server.crt

key keys/VPN-Server.key

Use my key in keys/VPN-Server.key

In my test-bed network, where the local net is 10.10.10.0/24, and the tunnel network is 10.3.0.0/24, the simplest possible configuration file (C:\\ProgramFiles\OpenVPN\config\sample.ovpn on Windows) for an X509-enabled OpenVPN server is:

dev tap
ifconfig 10.3.0.1 255.255.255.0
tls-server
dh keys/dh2048.pem
ca keys/ca.crt
cert keys/VPN-Server...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image