From 1b4f0cfac6d87504a3e317bb3c959f9e890e380b Mon Sep 17 00:00:00 2001 From: hubertf Date: Sun, 18 Feb 2001 15:32:18 +0000 Subject: Update to 6to4-1.1: * Don't create extra (tmp) rtadvd.conf, assume /etc/rtadvd.conf has no interface specs, and just that. * Don't suggest clients set an explicit (static) default route. This will happen automatically. * Update manpage and html page Thanks to Itojun and some others for their inputs! --- net/6to4/Makefile | 4 ++-- net/6to4/files/6to4 | 19 ++----------------- net/6to4/files/6to4.8 | 38 ++++++++++++++++++++++++++++++++------ net/6to4/files/6to4.html | 44 +++++++++++++++++++++++++++++++++++++------- 4 files changed, 73 insertions(+), 32 deletions(-) (limited to 'net') diff --git a/net/6to4/Makefile b/net/6to4/Makefile index 47a5b9224b0..c5985cf4441 100644 --- a/net/6to4/Makefile +++ b/net/6to4/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.2 2001/02/17 18:18:30 wiz Exp $ +# $NetBSD: Makefile,v 1.3 2001/02/18 15:32:18 hubertf Exp $ # -DISTNAME= 6to4-1.0 +DISTNAME= 6to4-1.1 CATEGORIES= net MASTER_SITES= # empty DISTFILES= # empty diff --git a/net/6to4/files/6to4 b/net/6to4/files/6to4 index 4c4e5157777..f25c67cdc53 100755 --- a/net/6to4/files/6to4 +++ b/net/6to4/files/6to4 @@ -126,23 +126,8 @@ if ($ARGV[0] eq "rtadvd-start" or $ARGV[0] eq "start-rtadvd" ) { if ( -f "/var/run/rtadvd.pid" ) { print "rtadvd already running!\n"; } else { - $tmpname="/var/run/rtadvd.conf-6to4.$$"; - - print "cat >$tmpname <$tmpname") || die "Can't write to "; - print RC "$in_if\\\n"; - print RC "\t:addrs#1:addr=\"${prefix}:${v6_innernet}::\":prefixlen#64:tc=ether:\n"; - close(RC); - - run("rtadvd -c $tmpname $in_if"); + run("rtadvd $in_if"); run("sysctl -w net.inet6.ip6.forwarding=1"); - - print "\n"; - print "XXX on your Clients, run:\n"; - print "XXX route add -inet6 default $prefix:$v6_innernet:$hostbits6\n"; + run("sysctl -w net.inet6.ip6.accept_rtadv=0"); } } diff --git a/net/6to4/files/6to4.8 b/net/6to4/files/6to4.8 index d58794ab16a..4bc02cf429e 100644 --- a/net/6to4/files/6to4.8 +++ b/net/6to4/files/6to4.8 @@ -1,5 +1,5 @@ -.\" $NetBSD: 6to4.8,v 1.1.1.1 2001/02/11 05:24:29 hubertf Exp $ -.Dd February 11, 2001 +.\" $NetBSD: 6to4.8,v 1.2 2001/02/18 15:32:18 hubertf Exp $ +.Dd February 18, 2001 .Dt 6to4 8 .Os .Sh NAME @@ -61,9 +61,15 @@ turning the machine into a IPv6 router. .Xr rtadvd 8 is invoked with a custom config file created under .Pa /var/run . -Clients need to be told to use the router as -default (IPv6) router, e.g. by adding a static route. -Follow the on-screen instructions to do so. +Clients just need to be told to accept router advertizements, i.e. +the +.Sq net.inet6.ip6.accept_rtadv +sysctl needs to be set to +.Sq 1 . +You can arrange that by setting +.Dq ip6mode=autohost +in +.Pa /etc/rc.conf . .It Sy rtadvd-stop Stops router advertizement and IPv6 packet forwarding. .Xr rtadvd 8 @@ -87,8 +93,24 @@ options INET6 # IPV6 pseudo-device stf 1 # 6to4 IPv6 over IPv4 encapsulation .Ed .Pp +In systems that run past-1.5 NetBSD-current, you will have to +explicitly create an +.Xr stf 4 +device after compiling it in the kernel. You do this by running +the following command before calling the +.Nm +script: +.Bd -literal -offset +ifconfig stf0 create +.Ed +.Pp No special values are needed in -.Pa /etc/rc.conf . +.Pa /etc/rc.conf +to run this script, but see comment on setting up IPv6-clients +.Sq behind +your 6to4 router for the +.Sy rtadvd-start +command! .Sh CONFIGURATION The .Nm @@ -164,3 +186,7 @@ The .Nm utility and manpage were writte by Hubert Feyrer . +.Sh BUGS +On systems running past-1.5 NetBSD-current, the +.Dq ifconfig stf0 create +should be run automatically. \ No newline at end of file diff --git a/net/6to4/files/6to4.html b/net/6to4/files/6to4.html index 16654733ba0..b8a59185328 100644 --- a/net/6to4/files/6to4.html +++ b/net/6to4/files/6to4.html @@ -1,7 +1,7 @@ - February 11, 2001 6to4 8 + February 18, 2001 6to4 8