summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-04-14 11:46:05 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-04-14 11:46:05 +0000
commit319351ef31abc22ef8093b15b86ba8d8de9be17a (patch)
tree1a61a89168e49a426aff626f78738a2818a132f5
parent88c7b68e5e449f93a96c767c2fdba36b11c07ea6 (diff)
simplify filter rules somewhat:
- use a macro for ext_if - use 1 block rule (rather than block in and out)
-rw-r--r--share/man/man8/vpn.813
1 files changed, 7 insertions, 6 deletions
diff --git a/share/man/man8/vpn.8 b/share/man/man8/vpn.8
index 6e93b749757..72019871e70 100644
--- a/share/man/man8/vpn.8
+++ b/share/man/man8/vpn.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: vpn.8,v 1.86 2005/04/14 10:34:23 jmc Exp $
+.\" $OpenBSD: vpn.8,v 1.87 2005/04/14 11:46:04 jmc Exp $
.\"
.\" Copyright 1998 Niels Provos <provos@physnet.uni-hamburg.de>
.\" All rights reserved.
@@ -220,10 +220,11 @@ GATEWAY_B = "192.168.2.1"
NETWORK_A = "10.0.50.0/24"
NETWORK_B = "10.0.99.0/24"
+ext_if="ne0"
+
# default deny
-# ne0 is the only interface going to the outside.
-block in log on { enc0, ne0 } all
-block out log on { enc0, ne0 } all
+# $ext_if is the only interface going to the outside.
+block log on { enc0, $ext_if } all
# Passing in encrypted traffic from security gateways
pass in proto esp from $GATEWAY_B to $GATEWAY_A
@@ -237,9 +238,9 @@ pass in on enc0 from $NETWORK_B to $NETWORK_A
pass out on enc0 from $NETWORK_A to $NETWORK_B
# Passing in isakmpd(8) traffic from the security gateways
-pass in on ne0 proto udp from $GATEWAY_B port = 500 \e
+pass in on $ext_if proto udp from $GATEWAY_B port = 500 \e
to $GATEWAY_A port = 500
-pass out on ne0 proto udp from $GATEWAY_A port = 500 \e
+pass out on $ext_if proto udp from $GATEWAY_A port = 500 \e
to $GATEWAY_B port = 500
.Ed
.Pp