diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1998-05-24 14:20:41 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1998-05-24 14:20:41 +0000 |
commit | 9a424d64496fc2c3b586e5c1482f0050d621ab0c (patch) | |
tree | 9f27ed6b10db3288587f7dfc49063ce59bdffe56 /share/man/man8/vpn.8 | |
parent | 1e395ebee3d19af187d7a39e2be21aa67f6f94e5 (diff) |
describe how to set up a VPN.
Diffstat (limited to 'share/man/man8/vpn.8')
-rw-r--r-- | share/man/man8/vpn.8 | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/share/man/man8/vpn.8 b/share/man/man8/vpn.8 new file mode 100644 index 00000000000..2a40a52f62c --- /dev/null +++ b/share/man/man8/vpn.8 @@ -0,0 +1,88 @@ +.\" $OpenBSD: vpn.8,v 1.1 1998/05/24 14:20:40 provos Exp $ +.\" Copyright 1998 Niels Provos <provos@physnet.uni-hamburg.de> +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. All advertising materials mentioning features or use of this software +.\" must display the following acknowledgement: +.\" This product includes software developed by Niels Provos. +.\" 4. The name of the author may not be used to endorse or promote products +.\" derived from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.\" Manual page, using -mandoc macros +.\" +.Dd May 23, 1998 +.Dt VPN 8 +.Os +.Sh NAME +.Nm vpn +.Nd configuring the system for virtual private networks +.Sh DESCRIPTION +A virtual private network is used to connect two or more subnets via the +internet. For each subnet there is a security gateway which is connected +via a cryptographically secured tunnel to the security gateway of the other +subnet. In +.Ox +.Xr ipsec 4 +is used to provide the necessary cryptographical services. This document +describes the configuration process for setting up a +.Nm VPN . +.Pp +Both subnets need to configure +.Xr ipsec 4 +routes with the +.Xr ipsecadm 1 +tool: +.Pp +On the security gateway of subnet A: +.Bd -literal +ipsecadm flow -dst gatewB -spi 1 -addr netA netAmask netB netBmask -local +.Ed +.Pp +and on the security gateway of subnet B: +.Bd -literal +ipsecadm flow -dst gatewA -spi 1 -addr netB netBmask netA netAmask -local +.Ed +.Pp +Additionally both security gateways need to start the +.Xr photurisd 8 +key management daemon with the +.Fl v +flag and have to make sure that it is configured properly on both sides to +provide encryption and authentication. +.Pp +Now +.Xr ipf 1 +needs to be configured that all packets from the outside are blocked. +Only packets from the security gateways either on the +.Pa enc0 +interface or +.Tn UDP +packets with source and remote ports of 468 +should be allowed in. +.Sh SEE ALSO +.Xr ipf 1 , +.Xr rt 1 , +.Xr ipsec 4 , +.Xr photurisd 8 . +.Sh HISTORY +VPN support appeared first in +.Ox 2.3 . |