diff options
author | hubertf <hubertf> | 2003-08-23 13:32:19 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2003-08-23 13:32:19 +0000 |
commit | 9d593159f0c6337118fa2c4390fb627411dc9176 (patch) | |
tree | 7eb64132478c4badff0da9afea5bd3ba7d95c7dc | |
parent | f20bde5d8e761af1a423eeb905c466aa34d17c69 (diff) | |
download | pkgsrc-9d593159f0c6337118fa2c4390fb627411dc9176.tar.gz |
Replaced by hf6to4, written in /bin/sh
----------------------------------------------------------
-rw-r--r-- | net/6to4/DESCR | 8 | ||||
-rw-r--r-- | net/6to4/MESSAGE | 11 | ||||
-rw-r--r-- | net/6to4/Makefile | 34 | ||||
-rw-r--r-- | net/6to4/PLIST | 6 | ||||
-rwxr-xr-x | net/6to4/files/6to4 | 157 | ||||
-rw-r--r-- | net/6to4/files/6to4.8 | 211 | ||||
-rw-r--r-- | net/6to4/files/6to4.conf | 34 | ||||
-rw-r--r-- | net/6to4/files/6to4.html | 264 |
8 files changed, 0 insertions, 725 deletions
diff --git a/net/6to4/DESCR b/net/6to4/DESCR deleted file mode 100644 index d8c12b1204f..00000000000 --- a/net/6to4/DESCR +++ /dev/null @@ -1,8 +0,0 @@ -The 6to4 script can be used to setup IPv6 on your home machine and net- -work for exploring IPv6 without any registrations. 6to4 is a mechanism by -which your IPv6 address(es) are derived from an assigned IPv4 address, -and which involves automatic tunnelling to one or more remove 6to4 hubs, -which will then forward your v6 packets on the 6bone etc. Replies are -routed back to you over IPv4 via (possibly) other 6to4 capable remote -gateways. As such, IPv6-in-IPv4-encapsulated packets are accepted from -all v4-hosts. diff --git a/net/6to4/MESSAGE b/net/6to4/MESSAGE deleted file mode 100644 index 83baecf41e7..00000000000 --- a/net/6to4/MESSAGE +++ /dev/null @@ -1,11 +0,0 @@ -=========================================================================== -$NetBSD: MESSAGE,v 1.3 2003/08/08 08:11:05 grant Exp $ - -To configure a 6to4 tunnel, modify the configuration file -${PKG_SYSCONFDIR}/6to4.conf for your system, then run - - ${RCD_SCRIPTS_DIR}/6to4 -v start - -You should then be able to ping6 www.kame.net. - -=========================================================================== diff --git a/net/6to4/Makefile b/net/6to4/Makefile deleted file mode 100644 index b69fe404507..00000000000 --- a/net/6to4/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -# $NetBSD: Makefile,v 1.13 2003/08/08 08:11:05 grant Exp $ -# - -DISTNAME= 6to4-1.4 -WRKSRC= ${WRKDIR} -CATEGORIES= net -MASTER_SITES= # empty -DISTFILES= # empty - -MAINTAINER= hubertf@NetBSD.org -HOMEPAGE= http://www.NetBSD.org/packages/net/6to4/files/6to4.html -COMMENT= Enables 6to4 IPv6 automatic tunnels - -USE_PERL5= YES -USE_PKGINSTALL= YES - -# This pkg doesn't regard USE_INET6 (leave this comment for README-IPv6.html!) -EXTRACT_ONLY= # empty -NO_CHECKSUM= yes -NO_CONFIGURE= yes - -CONF_FILES+= ${PREFIX}/share/examples/6to4/6to4.conf ${PKG_SYSCONFDIR}/6to4.conf - -do-build: - @${SED} ${FILES_SUBST_SED} ${FILESDIR}/6to4 > ${WRKSRC}/6to4 - -do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/6to4 - ${INSTALL_SCRIPT} ${WRKSRC}/6to4 ${PREFIX}/sbin/6to4 - ${INSTALL_MAN} ${FILESDIR}/6to4.8 ${PREFIX}/man/man8 - ${INSTALL_DATA} ${FILESDIR}/6to4.html ${PREFIX}/share/doc/6to4.html - ${INSTALL_DATA} ${FILESDIR}/6to4.conf ${PREFIX}/share/examples/6to4 - -.include "../../mk/bsd.pkg.mk" diff --git a/net/6to4/PLIST b/net/6to4/PLIST deleted file mode 100644 index c5bf8ffe060..00000000000 --- a/net/6to4/PLIST +++ /dev/null @@ -1,6 +0,0 @@ -@comment $NetBSD: PLIST,v 1.2 2003/08/08 08:11:05 grant Exp $ -sbin/6to4 -share/doc/6to4.html -share/examples/6to4/6to4.conf -man/man8/6to4.8 -@dirrm share/examples/6to4 diff --git a/net/6to4/files/6to4 b/net/6to4/files/6to4 deleted file mode 100755 index 05e939a434b..00000000000 --- a/net/6to4/files/6to4 +++ /dev/null @@ -1,157 +0,0 @@ -#!@LOCALBASE@/bin/perl -# -# Setup 6to4 IPv6, for NetBSD (and maybe others) -# -# (c) Copyright 2000-2002 Hubert Feyrer <hubert@feyrer.de> -# - -$etcdir="@PKG_SYSCONFDIR@"; -#$etcdir="/usr/pkg/etc"; # debug - -require "$etcdir/6to4.conf"; - -use Getopt::Std; - -########################################################################### -sub run -{ - local($str) = @_; - - if ($not) { - print "$str\n"; - } else { - if ($verbose) { - print "$str\n"; - } - system($str); - } -} - -########################################################################### - -# -# Process options -# -getopts('nvh'); - -$not = 1 if $opt_n; -$verbose = 1 if $opt_v; - -if ($opt_h) { - print "Usage: $0 [-n] [-v] {start | stop | rtadvd-start | rtadvd-stop}\n"; - exit 0; -} - -# Make sure the interface exists -system("ifconfig stf0 create >/dev/null 2>&1"); - -# -# Some sanity checks -# -if (`ifconfig -a | grep fe80: | wc -l` <= 0 or - `ifconfig -a | grep stf | wc -l` <= 0) { - die "$0: It seems your kernel does not support IPv6 or 6to4 (stf).\n". - "Add 'options INET6' and 'pseudo-device stf 1' to your kernel and retry!\n"; -} - -# -# Figure out IP#s etc. -# -$localadr4 = `ifconfig $out_if inet | grep inet | grep -v alias`; -$localadr4 =~ s/^.*inet\s*//; -$localadr4 =~ s/\s.*$//; -chomp($localadr4); - -@l4c = split('\.', $localadr4); -$prefix = sprintf("2002:%02x%02x:%02x%02x", @l4c[0..3]); - -$localadr6 = sprintf("$prefix:%04x", $v6_net); - -if ($peer eq "6to4-anycast") { - # magic values from rfc 3068 - $remoteadr4 = "192.88.99.1"; - $remoteadr6 = "2002:c058:6301::"; -} else { - if ($remoteadr4 !~ /^[0-9.]+$/ ) { - chomp($remoteadr4 = `host $peer`); - $remoteadr4 =~ s/^.*address //; - - print "resolving IPv4 address of peer $peer\n" - if $verbose; - } else { - print "IPv4 address of peer given numerically, no resolving needed\n" - if $verbose; - } - - if ($remoteadr6 !~ /^[0-9a-fA-Z:]+$/ ) { - chomp($remoteadr6 = `host -t AAAA $peer`); - $remoteadr6 =~ s/^.*address //; - - print "resolving IPv6 address of peer $peer\n" - if $verbose; - } else { - print "IPv6 address of peer given numerically, no resolving needed\n" - if $verbose; - } -} - - -if ($verbose) { - print "remote v4 address: $remoteadr4\n"; - print "local v4 address: $localadr4\n"; - print "remote v6 address: $remoteadr6\n"; - print "local v6 address: $localadr6:$hostbits6\n"; - print "\n"; -} - - -# -# Handle commands -# - -# stop: -if ( $ARGV[0] eq "stop" ) { - run("ifconfig stf0 down"); - $cmd="ifconfig stf0 inet6 " . - "| grep inet6 " . - "| sed -e 's/inet6//' " . - "-e 's/prefix.*//g' " . - "-e 's/^[ ]*//' " . - "-e 's/[ ]*\$//'"; - foreach $ip ( split('\s+', `$cmd`)) { - run("ifconfig stf0 inet6 -alias $ip"); - } - run("route delete -inet6 default"); -} - -# start: -if ( $ARGV[0] eq "start" ) { - run("ifconfig stf0 inet6 $localadr6:$hostbits6 prefixlen $v6_prefixlen alias"); - run("route add -inet6 default $remoteadr6"); - if ($in_if ne "") { - run("ifconfig $in_if inet6 $prefix:$v6_innernet:$hostbits6"); - } -} - -# rtadvd-stop: -if ($ARGV[0] eq "rtadvd-stop" or $ARGV[0] eq "stop-rtadvd") { - if ( -f "/var/run/rtadvd.pid" ) { - $pid = `cat /var/run/rtadvd.pid`; - run ("kill -TERM $pid"); - run ("rm -f /var/run/rtadvd.pid"); - run ("rm -f /var/run/6to4-rtadvd.conf.$pid"); - } else { - print "no rtadvd running!\n"; - } -} - -# rtadvd-start: -if ($ARGV[0] eq "rtadvd-start" or $ARGV[0] eq "start-rtadvd" ) { - if ( -f "/var/run/rtadvd.pid" ) { - print "rtadvd already running!\n"; - } else { - run("sysctl -w net.inet6.ip6.forwarding=1"); - run("sysctl -w net.inet6.ip6.accept_rtadv=0"); - run("rtadvd $in_if"); - } -} diff --git a/net/6to4/files/6to4.8 b/net/6to4/files/6to4.8 deleted file mode 100644 index c3586ef92a2..00000000000 --- a/net/6to4/files/6to4.8 +++ /dev/null @@ -1,211 +0,0 @@ -.\" $NetBSD: 6to4.8,v 1.8 2002/09/25 00:03:39 wiz Exp $ -.Dd July 3, 2002 -.Dt 6TO4 8 -.Os -.Sh NAME -.Nm 6to4 -.Nd setup automatic 6to4 IPv6 tunnelling -.Sh SYNOPSIS -.Nm -.Op Fl vn -.Ar command -.Sh DESCRIPTION -The -.Nm -script can be used to setup IPv6 on your home machine and -network for exploring IPv6 without any registrations. 6to4 is a -mechanism by which your IPv6 address(es) are derived from an assigned -IPv4 address, and which involves automatic tunnelling to one or more -remove 6to4 hubs, which will then forward your v6 packets on the 6bone -etc. Replies are routed back to you over IPv4 via (possibly) other -6to4 capable remote gateways. As such, IPv6-in-IPv4-encapsulated -packets are accepted from all v4-hosts. -.Pp -From your (single) IPv4 address, you get a whole IPv6 /48 network, -which allows you to split your network in 2^16 subnets, with 2^64 -hosts each. You need to setup routing for your internal network -properly, help is provided for setting up the border router here. -.Pp -This script takes the burden to calculate your IPv6 address from -existing IPv4 address and runs the commands to setup (and tear down) -automatic 6to4 IPv6 tunnelling. In a seperate step, router -advertisement for the inside network can be started and stopped. -.Pp -Possible options are: -.Bl -tag -width xxx -.It Fl n -Do not. Only print the commands that would be run, but do not execute -them. -.It Fl v -Verbose operation. Print the commands that are about to be run, before -running them. Displays some additional information. -.It Fl h -Show usage. -.El -.Pp -Possible commands are: -.Bl -tag -width rtadvd-start -.It Sy start -Configure 6to4 IPv6. The -.Xr stf 4 -interface is configured, and a default route to a remote 6to4 -gateway is established. In addition, the internal -network interface is assigned an address. -.It Sy stop -Stops 6to4 IPv6. All addresses are removed from the -.Xr stf 4 -device, and the default route is removed. -.It Sy rtadvd-start -Starts router advertizement and IPv6 packet forwarding, -turning the machine into a IPv6 router. -.Xr rtadvd 8 -is invoked with a custom config file created under -.Pa /var/run . -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 -is stopped, and the -.Xr rtadvd.conf 5 -config file is removed from -.Pa /var/run . -.El -.Sh REQUIREMENTS -Besides IPv4 connectivity, you need support for IPv6 and the -.Xr stf 4 -device in your kernel. While the GENERIC -.Nx -1.5 kernel does support IPv6, it does not contain support for the -.Xr stf 4 -device. -.Pp -Make sure you have the following options in your kernel config file: -.Bd -literal -offset -options INET # IP + ICMP + TCP + UDP -options INET6 # IPV6 -pseudo-device stf 1 # 6to4 IPv6 over IPv4 encapsulation -.Ed -.Pp -In systems that run past-1.5 -.Nx Ns -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 -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 -script reads its configuration from a config file named -.Pa 6to4.conf . -The -.Pa 6to4.conf -file is in -.Xr perl 1 -syntax, and contains several -variables that can be tuned to adjust your setup. Default values -should work for use on a modem dialup. -.Bl -tag -width rtadvd-stop -.It Sy out_if -The outbound interface that has a valid IPv4 address -assigned, that can be used to derive the IPv6 -addresses from. Usually -.Dq ppp0 -for a modem setup, or your ethernet interface if you have -IPv4 connectivity via LAN. This -can't be empty, and is assigned the IPv6 address -2002:x:x:v6_net:hostbits6, see below. -.It Sy in_if -The inside interface. If non-empty, this interface is -assigned the IPv6 address -2002:x:x:v6_innernet:hostbits6, see below. -This is only useful on machines that -have more than one network interfaces, e.g. with a modem and a -local ethernet. -.It Sy v6_net -The subnet address you want to use on the address of -your outbound interface. Defaults to -.Dq 1 . -.It Sy v6_innernet -The subnet address you want to use on the address of -your inbound interface. Defaults to -.Dq 2 . -.It Sy hostbits6 -The lower 64 bits of both the inbound and outbound interface's -addresses. -.It Sy peer -Name of the remote 6to4 server that'll take our -IPv6-in-IPv4 encapsulated packets and route them on -via IPv6. A special value of -.Dq 6to4-anycast -can be used for the anycast service defined in RFC 3068. -Other possible values are given in the example config file. -.It Sy remoteadr4, remoteadr6 -If the -.Sy peer -variable is set to the relay router's name, DNS lookups for A and AAAA -records will be made to -determine its IPv4 and IPv6 address. To avoid these lookups, the variables -.Sy remoteadr4 -and -.Sy remoteadr6 -can be set to strings containing the numerical IPv4 and IPv6 numbers -directly. -.El -.Sh EXAMPLES -The -.Nm -script can be run automatically by -.Xr pppd 8 -when a connection is made. For this, put the following into -.Pa /etc/ppp/ip-up : -.Bd -literal -offset -( /usr/pkg/sbin/6to4 stop - /usr/pkg/sbin/6to4 start ) & -.Ed -.Pp -To shut down properly, put this into -.Pa /etc/ppp/ip-down : -.Bd -literal -offset -/usr/pkg/sbin/6to4 stop -.Ed -.Sh SEE ALSO -.Xr stf 4 , -.Dq 6to4 IPv6 Explained -at -.Pa http://www.feyrer.de/NetBSD/6to4.html , -.Nx -IPv6 Documentation at -.Pa http://www.netbsd.org/Documentation/network/ipv6/ , -RFC 3068. -.Sh HISTORY -The -.Nm -utility and manpage were written by -Hubert Feyrer <hubert@feyrer.de>. -.Sh BUGS -On systems running past-1.5 -.Nx Ns -current , -the -.Dq ifconfig stf0 create -should be run automatically. diff --git a/net/6to4/files/6to4.conf b/net/6to4/files/6to4.conf deleted file mode 100644 index 26947527122..00000000000 --- a/net/6to4/files/6to4.conf +++ /dev/null @@ -1,34 +0,0 @@ -# 6to4.conf -# - -$out_if="ppp0"; # Our outgoing (uplink) interface -$in_if=""; # Inside (ethernet) interface - -$v6_net="1"; # 2002:x:x:v6_net:: -$v6_innernet="2"; # 2002:x:x:v6_innernet:: -$v6_prefixlen=16; # Change for more -$hostbits6=":1"; # should be determined via MAC of $in_if - -########################################################################### -# -# Selection of 6to4 relay router. If "peer" is not set, -# "remoteadr4" and "remoteadr6" must be set! -# - -# Some possible remote 6to4 routers; DNS lookups will be used -# to determine their IPv4 and IPv6 adresses (see below on how -# to avoid these lookups): -$peer="6to4.ipv6.fh-regensburg.de"; # Germany, Europe -#$peer="asterix.ipv6.bt.com"; # Great Britain, Europe -#$peer="6to4.kfu.com"; # USA, West coast -#$peer="6to4.ipv6.microsoft.com"; # USA, West coast -#$peer="ipv6-router.cisco.com"; # USA, West coast; register at http://www.cisco.com/ipv6/ -#$peer="6to4-anycast"; # RFC 3068 magic value - - -# To prevent DNS lookups of peer, directly specify IPv4 and IPv6 address -# of 6to4 relay router: - -# 6to4.ipv6.fh-regensburg.de - Germany, Europe: -#$remoteadr4="194.95.108.191"; -#$remoteadr6="2002:c25f:6cbf:1::1"; diff --git a/net/6to4/files/6to4.html b/net/6to4/files/6to4.html deleted file mode 100644 index 8591c371853..00000000000 --- a/net/6to4/files/6to4.html +++ /dev/null @@ -1,264 +0,0 @@ -<html> -<head> - <title> - July 3, 2002 6TO4 8 - - </title> - <style type="text/css"> - <!-- - body { margin-left:4%; } - H1, H2, H3, H4, H5 { - color: maroon; padding: 4pt; margin-left: -4%; - border: solid; border-width: thin; width: 100%; - background: rgb(204,204,255) - } - --> - </style> -</head> -<body bgcolor="#FFFFFF" text="#000000"> - <h3> - NAME - </h3> -<b>6to4</b> -- setup automatic 6to4 IPv6 tunnelling - <h3> - SYNOPSIS - </h3> -<b>6to4</b> -[<b>-</b><b></b><b>vn</b>] -<i></i><i>command</i> - <h3> - DESCRIPTION - </h3> -The -<b>6to4</b> -script can be used to setup IPv6 on your home machine and -network for exploring IPv6 without any registrations. 6to4 is a -mechanism by which your IPv6 address(es) are derived from an assigned -IPv4 address, and which involves automatic tunnelling to one or more -remove 6to4 hubs, which will then forward your v6 packets on the 6bone -etc. Replies are routed back to you over IPv4 via (possibly) other -6to4 capable remote gateways. As such, IPv6-in-IPv4-encapsulated -packets are accepted from all v4-hosts. - <p> -From your (single) IPv4 address, you get a whole IPv6 /48 network, -which allows you to split your network in 2^16 subnets, with 2^64 -hosts each. You need to setup routing for your internal network -properly, help is provided for setting up the border router here. - <p> -This script takes the burden to calculate your IPv6 address from -existing IPv4 address and runs the commands to setup (and tear down) -automatic 6to4 IPv6 tunnelling. In a seperate step, router -advertisement for the inside network can be started and stopped. - <p> -Possible options are: -<dl compact> -<p><dt><b>-</b><b></b><b>n</b><dd> -Do not. Only print the commands that would be run, but do not execute -them. -<p><dt><b>-</b><b></b><b>v</b><dd> -Verbose operation. Print the commands that are about to be run, before -running them. Displays some additional information. -<p><dt><b>-</b><b></b><b>h</b><dd> -Show usage. -</dl> - <p> -Possible commands are: -<dl compact> -<p><dt><b></b><b>start</b><dd> -Configure 6to4 IPv6. The -<a href="../html4/stf.html">stf(4)</a> -interface is configured, and a default route to a remote 6to4 -gateway is established. In addition, the internal -network interface is assigned an address. -<p><dt><b></b><b>stop</b><dd> -Stops 6to4 IPv6. All addresses are removed from the -<a href="../html4/stf.html">stf(4)</a> -device, and the default route is removed. -<p><dt><b></b><b>rtadvd-start</b><dd> -Starts router advertizement and IPv6 packet forwarding, -turning the machine into a IPv6 router. -<a href="../html8/rtadvd.html">rtadvd(8)</a> -is invoked with a custom config file created under -<code></code><code>/var/run</code>. -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. -<a href="../html8/rtadvd.html">rtadvd(8)</a> -is stopped, and the -<a href="../html5/rtadvd.conf.html">rtadvd.conf(5)</a> -config file is removed from -<code></code><code>/var/run</code>. -</dl> - <h3> - REQUIREMENTS - </h3> -Besides IPv4 connectivity, you need support for IPv6 and the -<a href="../html4/stf.html">stf(4)</a> -device in your kernel. While the GENERIC -NetBSD -1.5 kernel does support IPv6, it does not contain support for the -<a href="../html4/stf.html">stf(4)</a> -device. - <p> -Make sure you have the following options in your kernel config file: -<dl compact><dt><dd> -<code> -<pre> -options INET # IP + ICMP + TCP + UDP -options INET6 # IPV6 -pseudo-device stf 1 # 6to4 IPv6 over IPv4 encapsulation -</pre> -</code> -</dl> - <p> -In systems that run past-1.5 -NetBSD-current, -you will have to explicitly create an -<a href="../html4/stf.html">stf(4)</a> -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> -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> -The -<b>6to4</b> -script reads its configuration from a config file named -<code></code><code>6to4.conf</code>. -The -<code></code><code>6to4.conf</code> -file is in -<a href="../html1/perl.html">perl(1)</a> -syntax, and contains several -variables that can be tuned to adjust your setup. Default values -should work for use on a modem dialup. -<dl compact> -<p><dt><b></b><b>out_if</b><dd> -The outbound interface that has a valid IPv4 address -assigned, that can be used to derive the IPv6 -addresses from. Usually -``ppp0'' -for a modem setup, or your ethernet interface if you have -IPv4 connectivity via LAN. This -can't be empty, and is assigned the IPv6 address -2002:x:x:v6_net:hostbits6, see below. -<p><dt><b></b><b>in_if</b><dd> -The inside interface. If non-empty, this interface is -assigned the IPv6 address -2002:x:x:v6_innernet:hostbits6, see below. -This is only useful on machines that -have more than one network interfaces, e.g. with a modem and a -local ethernet. -<p><dt><b></b><b>v6_net</b><dd> -The subnet address you want to use on the address of -your outbound interface. Defaults to -``1''. -<p><dt><b></b><b>v6_innernet</b><dd> -The subnet address you want to use on the address of -your inbound interface. Defaults to -``2''. -<p><dt><b></b><b>hostbits6</b><dd> -The lower 64 bits of both the inbound and outbound interface's -addresses. -<p><dt><b></b><b>peer</b><dd> -Name of the remote 6to4 server that'll take our -IPv6-in-IPv4 encapsulated packets and route them on -via IPv6. A special value of -``6to4-anycast'' -can be used for the anycast service defined in RFC 3068. -Other possible values are given in the example config file. -<p><dt><b></b><b>remoteadr4,</b><b> remoteadr6</b><dd> -If the -<b></b><b>peer</b> -variable is set to the relay router's name, DNS lookups for A and AAAA -records will be made to -determine it's IPv4 and IPv6 address. To avoid these lookups, the variables -<b></b><b>remoteadr4</b> -and -<b></b><b>remoteadr6</b> -can be set to strings containing the numerical IPv4 and IPv6 numbers -directly. -</dl> - <h3> - EXAMPLES - </h3> -The -<b>6to4</b> -script can be run automatically by -<a href="../html8/pppd.html">pppd(8)</a> -when a connection is made. For this, put the following into -<code></code><code>/etc/ppp/ip-up</code>: -<dl compact><dt><dd> -<code> -<pre> -( /usr/pkg/sbin/6to4 stop - /usr/pkg/sbin/6to4 start ) & -</pre> -</code> -</dl> - <p> -To shut down properly, put this into -<code></code><code>/etc/ppp/ip-down</code>: -<dl compact><dt><dd> -<code> -<pre> -/usr/pkg/sbin/6to4 stop -</pre> -</code> -</dl> - <h3> - SEE ALSO - </h3> -<a href="../html4/stf.html">stf(4)</a>, -``6to4 IPv6 Explained'' -at -<code></code><code>http://www.feyrer.de/NetBSD/6to4.html</code>, -NetBSD -IPv6 Documentation at -<code></code><code>http://www.netbsd.org/Documentation/network/ipv6/</code>, -RFC 3068. - <h3> - HISTORY - </h3> -The -<b>6to4</b> -utility and manpage were written by -Hubert Feyrer <hubert@feyrer.de>. - <h3> - BUGS - </h3> -On systems running past-1.5 -NetBSD-current, -the -``ifconfig stf0 create'' -should be run automatically. -</font></body> -</html> - - - |