Size: 1256
Comment:
|
← Revision 8 as of 2008-04-10 15:29:31 ⇥
Size: 1359
Comment: converted to 1.6 markup
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
#acl All:read <<TableOfContents>> |
|
Line 4: | Line 6: |
== How to configure a service to run over IPv6? == | == How can I configure a service to run over IPv6? == |
Line 30: | Line 32: |
It means that your system supports IPv4-mapped IPv6 addresses. Simply get rid of the {{{imap-IPv4}}} instance from above (or add the {{{disable = yes}}} flag to the instance) and reload xinetd. | It means that your system bind also to IPv4-mapped IPv6 addresses (i.e. IPv4 addresses) in case of binding IPv6 addresses. Simply get rid of the {{{imap-IPv4}}} instance above (or add the {{{disable = yes}}} option to the instance) and reload xinetd. |
Line 32: | Line 34: |
In Linux 2.6.* IPv4-mapped IPv6 addresses are supported by default. You '''can''' disable (but you shouldn't) IPv4-mapped IPv6 addresses by the command | In Linux 2.6.* the IPv4-mapped IPv6 addresses bind is the default. You '''can''' disable (but you shouldn't) IPv4-mapped IPv6 addresses binding by the command |
Contents
xinetd configuration guide
The IPv6 support in xinetd started at release 2.1.8.8.pre*.
How can I configure a service to run over IPv6?
You can enable IPv6 support by adding a new service instance with the flags=IPv6 option, e.g:
service imap { id = imap-IPv4 flags = IPv4 socket_type = stream protocol = tcp wait = no user = root server = /usr/sbin/imapd } service imap { id = imap-IPv6 flags = IPv6 socket_type = stream protocol = tcp wait = no user = root server = /usr/sbin/imapd }
Help! I did as you wrote above and get 'bind failed (Address already in use' messages from xinetd
It means that your system bind also to IPv4-mapped IPv6 addresses (i.e. IPv4 addresses) in case of binding IPv6 addresses. Simply get rid of the imap-IPv4 instance above (or add the disable = yes option to the instance) and reload xinetd.
In Linux 2.6.* the IPv4-mapped IPv6 addresses bind is the default. You can disable (but you shouldn't) IPv4-mapped IPv6 addresses binding by the command
# echo 1 > /proc/sys/net/ipv6/bindv6ony