diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2003-01-20 12:25:46 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2003-01-20 12:25:46 +0000 |
commit | 057734419b0c1efad7362a4e1eb8cd4f6e0f6cd2 (patch) | |
tree | 2d82c29484baf42f909fc89275908b823beb392b /share/ipsec | |
parent | 429aa0f95fe415fd85c6b4e5fcfc974c7a4b2525 (diff) |
but allow ESP in the clear (-bypass) between the gateways; avoids
double encryption; ok ho@
Diffstat (limited to 'share/ipsec')
-rw-r--r-- | share/ipsec/rc.vpn | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/share/ipsec/rc.vpn b/share/ipsec/rc.vpn index e01bb852722..7e18ffe5879 100644 --- a/share/ipsec/rc.vpn +++ b/share/ipsec/rc.vpn @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: rc.vpn,v 1.17 2002/12/05 12:50:03 markus Exp $ +# $OpenBSD: rc.vpn,v 1.18 2003/01/20 12:25:45 markus Exp $ # # Richard Reiner, Ph.D., FSC Internet Corp. # rreiner@fscinternet.com @@ -18,7 +18,7 @@ # XXX The configuration parameters should be moved to another file. # Uncomment to debug (and not execute) commands -#DEBUG=echo +DEBUG=echo # Gateway adresses GW_LOCAL=192.168.254.254 @@ -86,6 +86,10 @@ fi # add the gateways LOCAL_NETWORKS="${GW_LOCAL}/32 ${LOCAL_NETWORKS}" REMOTE_NETWORKS="${GW_REMOTE}/32 ${REMOTE_NETWORKS}" +# but allow ESP in the clear +BYPASS="$DEBUG ${ipsecadm} flow -transport esp -src ${GW_LOCAL} -dst ${GW_REMOTE} -bypass" +$BYPASS -out -addr ${GW_LOCAL}/32 ${GW_REMOTE}/32 +$BYPASS -in -addr ${GW_REMOTE}/32 ${GW_LOCAL}/32 FLOW="$DEBUG ${ipsecadm} flow -proto esp -src ${GW_LOCAL} -dst ${GW_REMOTE} -require" |