From 1f68dfc5c6f4133765ec5ca8249d53ca37ff383d Mon Sep 17 00:00:00 2001 Message-Id: <1f68dfc5c6f4133765ec5ca8249d53ca37ff383d.1715504974.git.mdw@distorted.org.uk> From: Mark Wooding Date: Thu, 29 Sep 2005 13:34:06 +0000 Subject: [PATCH] Various fixes. Organization: Straylight/Edgeware From: mdw --- doc/tripe.8 | 45 +++++++++++++++------------------------------ 1 file changed, 15 insertions(+), 30 deletions(-) diff --git a/doc/tripe.8 b/doc/tripe.8 index 40a5b657..f5fe5bf6 100644 --- a/doc/tripe.8 +++ b/doc/tripe.8 @@ -264,19 +264,6 @@ gateway machine, has the addresses 10.0.1.1 and 200.0.1.1; site B's gateway is .B bob and has addresses 10.0.2.1 and 200.0.2.1. -.PP -This isn't quite complicated enough. Each of -.B alice -and -.B bob -needs an extra IP address which we'll use when setting up the -point-to-point link. These addresses need to be routable, at least -within the virtual private network: unfortunately, you can't just use -the same pair everywhere. We'll assign -.B alice -the point-to-point address 192.168.0.1, and -.B bob -the address 192.168.0.2. .hP 1. Install .B tripe @@ -370,19 +357,18 @@ Start the servers up. Run .RS .VS -tripectl \-slD \-S\-P23169 +tripectl \-slD \-S\-p22003 .VE on each of .B alice and .BR bob . (The -.RB ` \-P23169 ' -forces the server to use UDP port 23169: use some other number if 23169 -is inappropriate for your requirements. I chose it by reducing the -RIPEMD160 hash of -.RB ` tripe\-port\-number\e0 ' -modulo 2\*(ss16\*(se.) +.RB ` \-p22003 ' +forces the server to use UDP port 22003: use some other number if 22003 +is inappropriate for your requirements. I chose it by taking the first +16 bits of the RIPEMD160 hash of +.RB ` TrIPE '. .RE .hP 6. To get @@ -394,14 +380,12 @@ run this shell script (or one like it): .VS #! /bin/sh -tripectl add bob 200.0.2.1 23169 +tripectl add bob 200.0.2.1 22003 ifname=`tripectl ifname bob` -ifconfig $ifname \e - 192.168.0.1 \e - pointopoint 192.168.0.2 +ifconfig $ifname 10.0.1.1 pointopoint 10.0.2.1 route add -net \e 10.0.2.0 netmask 255.255.255.0 \e - gw 192.168.0.2 + gw 10.0.2.1 .VE Read .BR ifconfig (8) @@ -503,10 +487,10 @@ The behaviour of .BR tripe 's SLIP driver is controlled by the .B TRIPE_SLIPIF -environment variable. The server will fail to start if this variable is -not defined. The variable's value is a colon-delimited list of -preallocated interfaces, followed optionally by the filename of a script -to run to dynamically allocate more interfaces. +environment variable. The server will not create SLIP tunnels if this +variable is not defined. The variable's value is a colon-delimited list +of preallocated interfaces, followed optionally by the filename of a +script to run to dynamically allocate more interfaces. .PP A static allocation entry has the form .IR infd [ \c @@ -538,7 +522,8 @@ than the server). The output file descriptor should not block unless it really needs to: the .B tripe -daemon assumes that it won't, and will get wait for it to accept output. +daemon assumes that it won't, and will get wedged waiting for it to +accept output. .SS "About the name" The program's name is .BR tripe , -- [mdw]