summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-12-04 23:30:32 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-12-04 23:30:32 +0000
commit1d8effd57832b9eec3c910ffb03a603bb90a91f6 (patch)
treecf0b3443511ef6aaa466728e5fe34a3159909889
parent01eca044b157c002a1d1429b9ea8ca0aae793827 (diff)
Get rid of 0.0.0.0 addresses for flows
-rw-r--r--share/ipsec/rc.vpn6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/ipsec/rc.vpn b/share/ipsec/rc.vpn
index 474dcaaf681..41316aa118e 100644
--- a/share/ipsec/rc.vpn
+++ b/share/ipsec/rc.vpn
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# $OpenBSD: rc.vpn,v 1.5 1999/11/30 12:10:40 ho Exp $
+# $OpenBSD: rc.vpn,v 1.6 1999/12/04 23:30:31 angelos Exp $
#
# Richard Reiner, Ph.D., FSC Internet Corp.
# rreiner@fscinternet.com
@@ -86,7 +86,7 @@ $DEBUG $ipsecadm new esp -src $GW_PEER -dst $GW_LOCAL \
# Gateway to gateway
$DEBUG $ipsecadm flow -proto esp -dst $GW_PEER -spi $SPI_OUT \
- -addr 0.0.0.0 0xffffffff $GW_PEER 0xffffffff
+ -addr $GW_LOCAL 0xffffffff $GW_PEER 0xffffffff
# Flows from each local, to each remote, subnet
mycount=0
@@ -132,7 +132,7 @@ do
if [ "${remote_net}" != "0x0" ]; then
$DEBUG $ipsecadm flow \
-proto esp -dst $GW_PEER -spi $SPI_OUT \
- -addr 0.0.0.0 0xffffffff $remote_net $remote_mask
+ -addr $GW_LOCAL 0xffffffff $remote_net $remote_mask
peercount=$(($peercount + 1))
else
break;