IPv6 & Linux - HowTo - Part 7
Version: 3.19b from 2001-06-14
(P) & (C) 1997-2001 by Peter Bieringer <pb@bieringer.de>,
see copyright notice for
more details
Original site of publishing: http://www.bieringer.de/linux/IPv6/;
suggestions, comments and improvements are welcome!
Obsolete and no longer recommended versions of applications
(but perhaps yet useful...)
Most of the stuff is inet6-apps libary based, which is no longer maintained
(and also not needed because of modern source uses the IPv6 support of
the glibc-2.1).
If you missing cleaned up information, look at ftp://ftp.bieringer.de/pub/linux/OldDocuments/
for a HowTo version < 3.16
Contents
-
Inet applications
-
TFTP
-
Electronic mail (SMTP & POP)
-
World Wide Web (HTTP)
-
Network Time Protocol
-
RIPE-Whois
Inet6-apps (finger[d], ftp[d], inetd, ping, tftp,
libinet6) (no longer recommended package)
IPv6-maintained by Craig Metz <cmetz@inner.net>
Why?
Your installed internet applications aren't ready to handle IPv6 addresses
(and that is what you want).
Version and filename of the packet:
Latest version I have tested is inet6-apps-0.36.tar.gz
For RedHat 6.0 / glibc-2.1 systems you also need following additional
patch (many thanks to Ricardo Quesada <rquesada@pjn.gov.ar>
for the original patch)
inet6-apps-0.36-glibc21-rh60-patch.txt.gz
Additional informations:
Current packet version is very outdated, no longer
maintained and can be replaced in parts now by other packages!
Contents:
| Application |
Path |
Description |
Recommended replacement |
| finger |
/usr/bin/finger |
Finger client |
finger |
| fingerd |
/usr/sbin/in.fingerd |
Finger daemon |
fingerd |
| ftp |
/usr/bin/ftp |
FTP client |
lukemftp |
| ftpd |
/usr/sbin/in.ftpd |
FTP daemon |
ftpd-BSD |
| gendata |
|
Generate data for socktest (debug) |
|
| inetd |
/usr/sbin/inetd |
Internet super daemon |
xinetd |
| ping |
/bin/ping |
|
ping6 of iputils |
| socktest |
|
Socket tester (debug) |
|
| tftp |
/usr/bin/tftp |
Trivial FTP client |
|
| libinet6.a |
/usr/lib/libinet6.a |
Inet6 libary (still only needed for outdated software here
on this page) |
|
Unpacking, configuration and installation
-
Move into the source directory:
-
Unpack the new source:
-
tar xzf your-path/inet6-apps-version.tar.gz
-C /usr/src
-
Now create/update the softlink, necessary for shorter paths:
-
ln -s /usr/src/inet6-apps-version /usr/src/inet6-apps
-
Move into the source directory:
-
Now you have to make some patches in the source code:
-
Edit GNUmakefile.config
-
Line 87/88: if you want to use plain IPv4 services independend of the IPv6-enabled
services, you can start two inet daemons, if you enable the Portoffset
option. Afterwards start the second daemon with another configuration file.
The IPv6 services are now available on ports OFFSET + entry in /etc/services
-
If you want to change the log facility of the ftp daemon from daemon
to i.e. local1 (local0 is already in use by the popd),
edit ftpd/ftpd.c around line 259
-
Now compile:
-
make clean; make
You should get no errors!
-
And install:
-
make install
Binaries, manuals and libs are copied to a new created directory /usr/inet6
You shouldn't move the binaries, manuals or libs
to their normal directories because you have to do this after every new
compilation and installation, create only once links like described now
and be happy!
-
File /usr/inet6/bin/ping must be setuid root (this means,
it gets the rights of root, if executed). If it is not, type, as
root:
-
chmod u+s /usr/inet6/bin/ping
-
Copy the BSD include files to the IPv6 include directory (will be used
from tcpdump)
-
cp -r include/bsd /usr/inet6/include
-
If you install this software for the first time:
-
Rename the old binaries (with version controlled backup):
-
mv -bf -v t path/app path/app.old
-
Create new links to the inet6 binaries:
-
ln -sf /usr/inet6/bin/app path/app
-
And now for the libary:
-
ln -sf /usr/inet6/lib/libinet6.a /usr/lib/libinet6.a
-
Rename the old manuals (with version controlled backup):
-
mv -bf -v t /usr/man/man#/man /usr/man/man#/man.old
-
Create links to the new manuals:
-
ln -sf /usr/inet6/man/man#/man /usr/man/man#/man
Configuration
/etc/inetd.conf
-
If using the patched version inet6-apps 0.30a:
You may execute IPv4-only daemons with the IPv6-capable inetd by adding
the keyword "downgrade" after the "tcp" or "udp" keyword.
For all new IPv6 daemons you have to remove the TCP wrapper mechanism by
removing this option /usr/sbin/tcpd, because the wrapper can't
handle IPv6 packets except you have already running the IPv6 ported TCP
wrapper. But now you have to complete the path of
the daemons!
-
FTP-daemon: remove the option -a, if exists. It won't work with
this version of the daemon
-
ftp stream tcp nowait root /usr/sbin/in.ftpd in.ftpd -l
-
Append -s for logging anonymous transfers (see manpage of ftpd
for details)
-
TELNET daemon: add the option -h ("no host info before login is
completed" - for security)
-
telnet stream tcp nowait root /usr/sbin/in.telnetd in.telnetd -h
-
TFTP daemon: (comment it out after testing and
restart inetd - tftpd is a big security hole!)
-
tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd
-
Finger daemon: add the option -l ("enable logging")
-
finger stream tcp nowait root /usr/sbin/in.fingerd in.fingerd -l
-
POP daemon:
-
pop3 stream tcp nowait root /usr/sbin/ipop3d ipop3d
Send signal HUP to the inetd daemon
TFTP daemon
IPv6-maintained by Craig Metz <cmetz@inner.net>
Why?
TFTP daemon is not included in the Inet6-Apps.
Version and filename of the packet:
Latest version I have tested is tftpd-1.2a1.tar.gz
(not tested against HowTo version 3.09 and
later, i.e. inet6-apps-0.34)
Additional Information:
Normally you do not need this daemon, it's only used for remote booting
with BOOTP.
Contents:
| Application |
Path |
Description |
| tftpd |
/usr/sbin/in.tftp |
Trivial FTP daemon |
Unpacking, configuration and installation
-
Move into the source directory:
-
Unpack the new source:
-
tar xzf your-path/tftpd-version -C /usr/src
-
Now create/overwrite the softlink, necessary for shorter paths:
-
ln -sf /usr/src/tftpd-version /usr/src/tftpd
-
Move into the source directory:
-
Configure the compile options:
-
./configure --prefix=/usr/inet6
-
Now compile:
-
make clean; make
You should get no errors!
-
And install:
-
make install
Binary is copied to the directory in /usr/inet6
-
Copy the manual to the manual directory by hand (install won't do this)
-
cp tftp.8 /usr/inet6/man/man8/
-
If you install this software for the first time:
-
Rename the old binary (with version controlled backup):
-
mv -bf -v t /usr/sbin/in.tftp /usr/sbin/in.tftp.old
-
Create new links to the binary:
-
ln -sf /usr/inet6/sbin/tftpd /usr/sbin/in.tfptd
-
Rename the old manual (with version controlled backup):
-
mv -bf -v t /usr/man/man#/man /usr/man/man#/man.old
-
Create links to the new manuals:
-
ln -sf /usr/inet6/man/man8/tftp.8 /usr/man/man8/tftp.8
POP daemon
There are already native IPv6 supporting versions out, see IPv6-status-page
for details.
For the rather old IPv6-maintained by Craig Metz <cmetz@inner.net>
see HowTo <= 3.17
Sendmail
There is already a native IPv6 supported version out: 8.10, see IPv6-status-page
for details.
For the rather old IPv6-maintained by Craig Metz <cmetz@inner.net>
see HowTo <= 3.17
nslookup4WWW
IPv6-ported by Marc Mosthav <MOSTHAVM@plcman.siemens.co.uk>
Additional Information:
This section is still in progress!
Version and filename of the packet:
nslookup4WWW-0.9+IPv6-1.tar.gz
(not tested against HowTo version 3.09 and
later, i.e. inet6-apps-0.34)
SNTP daemon & client
IPv6-ported by Marc Mosthav <MOSTHAVM@plcman.siemens.co.uk>
Why?
The original SNTP tools can't handle IPv6 addresses and can't use new features.
So a ported version is needed. Also the new multicast feature of IPv6 can
be now used.
Version and filename of the packet:
Latest release of a ported version is sntp+ipv6-0.91.tgz
(not tested against HowTo version 3.09 and
later, i.e. inet6-apps-0.34)
Additional Information:
This section is still in progress!
For tests try to use Marc's SNTP server: manip605.ipv6.siemens.co.uk
Contents:
| Application |
Path |
Description |
| settime |
/usr/inet6/bin/settime |
Sets local clock from a IPv[46] NTP server |
| sntpcd |
/usr/inet6/bin/sntpcd |
SNTP client which receives IPv6 NTP multicasts |
| sntpsd |
/usr/inet6/bin/sntpsd |
SNTP server which sends multicasts and can be synchronized with another
IPv[46] NTP server |
RIPE-Whois-client for IPv6
IPv6-ported by Marc Mosthav <MOSTHAVM@plcman.siemens.co.uk>
Why?
The original Whois client can't handle IPv6 addresses. So a ported version
is needed.
Version and filename of the packet:
First release of a ported version is ripe-whois-tools-3.0.4+6bone-extensions+ipv6-1.tgz
(not tested against HowTo version 3.09, i.e.
inet6-apps-0.34)
Additional Information:
This section is still in progress!
For testing try to use Marc's RIPE-Whois server: whois.ipv6.siemens.co.uk
Contents:
| Application |
Path |
Description |
| whois |
/usr/local/bin/whois |
RIPE-Whois client |