summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/ipsec/rc.vpn16
1 files changed, 8 insertions, 8 deletions
diff --git a/share/ipsec/rc.vpn b/share/ipsec/rc.vpn
index 2ff70a6b809..4652922a9de 100644
--- a/share/ipsec/rc.vpn
+++ b/share/ipsec/rc.vpn
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# $OpenBSD: rc.vpn,v 1.7 1999/12/14 19:59:39 ho Exp $
+# $OpenBSD: rc.vpn,v 1.8 2000/01/10 08:32:03 angelos Exp $
#
# Richard Reiner, Ph.D., FSC Internet Corp.
# rreiner@fscinternet.com
@@ -26,10 +26,10 @@ GW_LOCAL=192.168.254.254
GW_PEER=192.168.1.2
# Local and remote networks, numbered, syntax <network>/<mask>
-LOCAL_NET_0=192.168.254.0/0xffffff00
-LOCAL_NET_1=192.168.253.0/0xffffff00
-REMOTE_NET_0=192.168.1.0/0xffffff00
-REMOTE_NET_1=192.168.2.0/0xffffff00
+LOCAL_NET_0=192.168.254.0/255.255.255.0
+LOCAL_NET_1=192.168.253.0/255.255.255.0
+REMOTE_NET_0=192.168.1.0/255.255.255.0
+REMOTE_NET_1=192.168.2.0/255.255.255.0
# Crypto options and keys, note that key/iv lengths need to correspond
# to the selected encryption and authentication algorithms.
@@ -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 $GW_LOCAL 0xffffffff $GW_PEER 0xffffffff
+ -addr $GW_LOCAL 255.255.255.255 $GW_PEER 255.255.255.255
# 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 $GW_LOCAL 0xffffffff $remote_net $remote_mask
+ -addr $GW_LOCAL 255.255.255.255 $remote_net $remote_mask
peercount=$(($peercount + 1))
else
break;
@@ -150,7 +150,7 @@ do
if [ "${local_net}" != "0x0" ]; then
$DEBUG $ipsecadm flow \
-proto esp -dst $GW_PEER -spi $SPI_OUT \
- -addr $local_net $local_mask $GW_PEER 0xffffffff
+ -addr $local_net $local_mask $GW_PEER 255.255.255.255
mycount=$(($mycount + 1))
else
break;