=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/share/ipsec/Attic/rc.vpn,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- src/share/ipsec/Attic/rc.vpn 1999/12/04 23:30:31 1.6 +++ src/share/ipsec/Attic/rc.vpn 1999/12/14 19:59:39 1.7 @@ -1,7 +1,7 @@ #!/bin/sh # -# $OpenBSD: rc.vpn,v 1.6 1999/12/04 23:30:31 angelos Exp $ +# $OpenBSD: rc.vpn,v 1.7 1999/12/14 19:59:39 ho Exp $ # # Richard Reiner, Ph.D., FSC Internet Corp. # rreiner@fscinternet.com @@ -25,11 +25,11 @@ GW_LOCAL=192.168.254.254 GW_PEER=192.168.1.2 -# Local and remote networks, numbered, syntax : -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 and remote networks, numbered, syntax / +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 # Crypto options and keys, note that key/iv lengths need to correspond # to the selected encryption and authentication algorithms. @@ -93,7 +93,7 @@ while : do eval network=\$LOCAL_NET_${mycount} - set `echo $network | sed 's/:/ /g'` 0x0 0x0 + set `echo $network | sed 's%/% %g'` 0x0 0x0 local_net=$1 local_mask=$2 if [ "${local_net}" != "0x0" ]; then @@ -101,7 +101,7 @@ while : do eval network=\$REMOTE_NET_${peercount} - set `echo $network | sed 's/:/ /g'` 0x0 0x0 + set `echo $network | sed 's%/% %g'` 0x0 0x0 remote_net=$1 remote_mask=$2 if [ "${remote_net}" != "0x0" ]; then @@ -126,7 +126,7 @@ while : do eval network=\$REMOTE_NET_${peercount} - set `echo $network | sed 's/:/ /g'` 0x0 0x0 + set `echo $network | sed 's%/% %g'` 0x0 0x0 remote_net=$1 remote_mask=$2 if [ "${remote_net}" != "0x0" ]; then @@ -144,7 +144,7 @@ while : do eval network=\$LOCAL_NET_${mycount} - set `echo $network | sed 's/:/ /g'` 0x0 0x0 + set `echo $network | sed 's%/% %g'` 0x0 0x0 local_net=$1 local_mask=$2 if [ "${local_net}" != "0x0" ]; then