diff options
author | hubertf <hubertf> | 2001-02-18 15:32:18 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2001-02-18 15:32:18 +0000 |
commit | b8ab6639ac2d775d884c0b61ea3ccdc26c6fcb8c (patch) | |
tree | a2d2eac9507a781585a7746809cd9d82b76d5950 /net/6to4 | |
parent | 539977daa961e56e8f938a83ff36fe3c85813aa6 (diff) | |
download | pkgsrc-b8ab6639ac2d775d884c0b61ea3ccdc26c6fcb8c.tar.gz |
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!
Diffstat (limited to 'net/6to4')
-rw-r--r-- | net/6to4/Makefile | 4 | ||||
-rwxr-xr-x | net/6to4/files/6to4 | 19 | ||||
-rw-r--r-- | net/6to4/files/6to4.8 | 38 | ||||
-rw-r--r-- | net/6to4/files/6to4.html | 44 |
4 files changed, 73 insertions, 32 deletions
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 <<EOF\n"; - print "$in_if\\\n"; - print "\t:addrs#1:addr=\"${prefix}:${v6_innernet}::\":prefixlen#64:tc=ether:\n"; - print "EOF\n"; - - open(RC, ">$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 <hubert@feyrer.de>. +.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 @@ <html> <head> <title> - February 11, 2001 6to4 8 + February 18, 2001 6to4 8 </title> <style type="text/css"> @@ -81,9 +81,15 @@ turning the machine into a IPv6 router. <code>rtadvd(8)</code> is invoked with a custom config file created under <code></code><code>/var/run</code>. -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 +`net.inet6.ip6.accept_rtadv' +sysctl needs to be set to +`1'. +You can arrange that by setting +``ip6mode=autohost'' +in +<code></code><code>/etc/rc.conf</code>. <p><dt><b></b><b>rtadvd-stop</b><dd> Stops router advertizement and IPv6 packet forwarding. <code>rtadvd(8)</code> @@ -113,8 +119,28 @@ pseudo-device stf 1 # 6to4 IPv6 over IPv4 encapsulation </code> </dl> <p> +In systems that run past-1.5 NetBSD-current, you will have to +explicitly create an +<code>stf(4)</code> +device after compiling it in the kernel. You do this by running +the following command before calling the +<b>6to4</b> +script: +<dl compact><dt><dd> +<code> +<pre> +ifconfig stf0 create +</pre> +</code> +</dl> + <p> No special values are needed in -<code></code><code>/etc/rc.conf</code>. +<code></code><code>/etc/rc.conf</code> +to run this script, but see comment on setting up IPv6-clients +`behind' +your 6to4 router for the +<b></b><b>rtadvd-start</b> +command! <h3> CONFIGURATION </h3> @@ -206,5 +232,9 @@ The <b>6to4</b> utility and manpage were writte by Hubert Feyrer <hubert@feyrer.de>. -</font></body> -</html> + <h3> + BUGS + </h3> +On systems running past-1.5 NetBSD-current, the +``ifconfig stf0 create'' +should be run automatically. |