IPv6

From Discworld MUD Wiki
Revision as of 19:38, 23 February 2012 by Qingfeng (Talk | contribs) (Help! None of this makes any sense!)

Jump to: navigation, search

This is information about accessing the mud through IPv6.

Using IPv6 might help with connections problems with the line through which the IPv4 connections go through. It can help with disconnection issues that only affect IPv4.

To get IPv6 to work for your mudding pleasure you need:

  • an IPv6 tunnel broker or an IPv6 enabled internet connection
  • an IPv6 enabled client or a suitable IPv4 to IPv6 proxy
  • and to use the IPv6 address for Discworld Mud.

Discworld IPv6 address

To mud using IPv6 you need to use the IPv6 address for the mud:

discworld.starturtle.net or by IP address [2a01:348:19e:2::2] port 4242.
  • The above address should try to connect you through IPv6 and if that fails through IPv4.
  • The line after you enter your password will tell you "and are currently logged in from <address>". If this starts with "::ffff:" then you are still using IPv4. (Note: You can also use the command 'access ip' on the mud to check the IP address the mud is seeing.)
  • If you want to be sure to only connect on IPv6 you can use the address: discworld6.obsidian.org.uk

Warning: not all mud clients support IPv6!

IPv6 Tunnel Brokers

There are several so called IPv6 brokers that can allow one to access the IPv6 network without having an IPv6 enabled internet connection. Some are free. Some require registration.

Obviously you don't need this if your internet connection already provides IPv6.


Be advised that that the connections from the IPv6 tunnel might not be protected like your regular connection by your firewall, some adjustments might be necessary. The tunnel might be exposing all the ports on your computer, bypassing any router protections.
  • On GNU/Linux you need to use ip6tables for IPv6 and iptables for IPv4.
  • You can portscan your IPv6 address here. If it shows an address like xxx.xxx.xxx.xxx you don't have IPv6 working.
  • You can test one port on an IPv6 address here. Use your IPv6 address from the previous link.


For more information, a series of blog posts on IPv6 might explain things better:


For Gentoo, the Gentoo IPv6 Router Guide provides information to get IPv6 working and lists a few tunnel brokers.

Gogo6/Freenet6/gw6c

For Debian and Ubuntu use "sudo apt-get install gogoc" to install the client. It should start automatically, and be configured to start on boot.

For Gentoo you need to "emerge gogoc", then add the following commands:

# First copy the sample configuration. For anonymous use no modifications are necessary.
bzip2 -cd /usr/share/doc/gogoc-*/gogoc.conf.sample.bz2 >/etc/gogoc/gogoc.conf

# You can start it like so:
/etc/init.d/gogoc start

# You add it to the default runlevel so it starts every time:
rc-update add gogoc defaut

For Mac OS X, there does not seem to be any graphical user interface available.

For Windows, you can either

  • Use the free and open-source gw6c client available from here. The client should be already be configured for anonymous connections, so you should be able to just start the client and click connect. For images of the installation see here but choose to connect anonymously. This client is the base for those available on GNU/Linux.
    • For windows 7 it needs to run in compatibility mode.
  • For the other options you need to register on gogonet here and then use one of the proprietary Freenet6 client that should be available here after you login to gogonet.

Miredo/Teredo/Toredo

Miredo offers quick-n-easy IPV6 connectivity for GNU/Linux, FreeBSD, NetBSD and Mac OS X. It is free.

Toredo is the implementation bundled in Windows Vista and Windows XP SP2.


Sojan suggested these links on the boards:

See also Wikipedia's article on Teredo Tunneling


For Gentoo you can "emerge miredo". Then, "/etc/init.d/miredo start". If you want the service to start at each boot, do "rc-update add miredo defaut".

For Mac OS X, there is an installer available.

For Windows, it seems you need Toredo support (see the Microsoft Toredo overview).

  • On Windows XP this apparently requires installing Service Pack 2. Following the instructions in Sojan's second link it is sufficient to run the command "netsh interface ipv6 install" and then enable Microsoft TCP/IP Version 6 in the properties of the network connection you want to use. At this point you should have an IPv6 address research, even though it won't show up in the output of the "ipconfig" command until the command "netsh interface ipv6 set privacy disabled" is executed as well.
  • You can set the Teredo server you use with "netsh interface ipv6 set teredo client teredo.ipv6.microsoft.com" by replacing the default server by another one like those in the list below.
  • On Windows Vista it should work out-of-the-box.
  • It is not very clear if anything needs to be done next. If it doesn't "just work" then Toredo probably needs to be activated and/or configured to use public servers.


A list of (hopefully working) public Teredo servers:

  • teredo.remlab.net / teredo-debian.remlab.net / teredo2.remlab.net (France)
  • teredo.autotrans.consulintel.com (Spain)
  • teredo.ipv6.microsoft.com (USA, Redmond) (default for WindowsXP/2003/Vista/2008 OS)
  • teredo.ngix.ne.kr (South Korea)
  • teredo.managemydedi.com (USA, Chicago)
  • teredo.trex.fi (Finland)
  • teredo.ginzado.ne.jp (Japan)
  • teredo.iks-jena.de (Germany)
  • debian-miredo.progsoc.org

SixXS/AICCU

SixXS provides a client, AICCU, which is available for Windows, GNU/Linux, Mac OS X and many other platforms.

It seems that AICCU only works after registering, it cannot be used anonymously.

See the AICCU download page.

For Gentoo you only need to "emerge aiccu". Then you need to configure the file "/etc/aiccu.conf" with your account information. Then you can "/etc/init.d/aiccu start" to get it to work. If you want the service to start at each boot, do "rc-update add aiccu defaut".

For Mac OS X, you can download it from MacPorts or as a Mac OS X binary but then you need to do some more things. See the AICCU download page.

For Windows, There is a graphical user interface (GUI) on the AICCU download page.

Testing IPv6

Now that you installed software and made it connect to the IPv6 tunnel broker you can try your new connection by going at the IPv6 address for the mud: http://discworld6.obsidian.org.uk/.


Another test is to try to visit http://www.ipv6.sixxs.net/, if it works then it means IPv6 works for you. You can also use a javascript test http://test-ipv6.com/ or a simple test http://test-ipv6.com/simple_test.html to check if it works.


You can also test the speed of your IPv6 connection here versus your IPv4 speed here


On a GNU/Linux system, you can try to connect with telnet on the console:

$ telnet 2a01:348:19e:2::2 4242

IPv6 enabled Mud Clients

Not all mud clients work with IPv6. Here are some that work:

Windows

GNU/Linux

Detailed instructions:

Kildclient

Information by Aphaea

Export your settings from the Discworld world, create a new world using 2a01:348:19e:2::2 as host and 4242 as port, import your exported settings to it and connect.

Mudlet

Information by Xorphitus:

To be helpful for once, I can tell you how I connect to the Disc with a client as well. I use Mudlet which can be downloaded for free here.

  • You have to activate or turn on ipv6 first of all, and hope your network and your computer support it somehow first of all. Check some lines above how to do or check that.
  • Install Mudlet and run it.
  • Hit the "connect" button which will take you to a selection of MUDs you may want to connect to.
  • So fill the blank spaces server adress to "2a01:348:19e:2::2" and port to 4242.
  • Name the profile "Discworld" or whatever you like, and connect.

Worked for me. The client should remember the MUD from now on, so next time just click on the Discworld banner on the left. --Xorphitus 14:35, 14 April 2011 (UTC)

TinyFugue

TinyFugue 4 (the stable version) doesn't work with IPv6, you need to install version 5. At least on Ubuntu it's package tf5, as opposed to the standard tf package. If you have both installed and want to use version 5 for the tf command, type sudo update-alternatives --config tf into terminal and choose '/usr/bin/tf5'. Afterwards, you can use the starturtle address to connect to the MUD.

Using IPv4 Clients

This usually requires proxy or port forwarding software to accept a local ipv4 connection and reroute it across your ipv6 connection to the mud. This will allow the use of non ipv6 aware clients (mushclient, zmud, cmud, windows clients using wine on linux systems) across ipv6 tunnels.

Note - You do this after you have your IPv6 tunnel working. This is an extra set of steps to use a non IPv6 client over a working IPv6 tunnel!

Linux

6tunnel

Installing 6tunnel (debian / ubuntu, other linuxes and package managers are available):

$ sudo apt-get install 6tunnel

Then set up a tunnel to connect your local port of choice (4242?) to port 4242 on the mud's ipv6 address:

$ 6tunnel 4242 2a01:348:19e:2::2 4242

Now configure your ipv4 client to connect to localhost port 4242, and it should be connected to the mud. This works for me with mushclient running under wine, tunneling through the Teredo (using miredo) or Freenet6 (using gogoc) IPv6 networks.

Windows

Windows can also do ipv4 to ipv6 port proxying as follows:

netsh interface portproxy add v4tov6 listenport=4242 connectaddress=discworld6.obsidian.org.uk connectport=4242

Then just configure your ipv4 client to connect to localhost port 4242 and it should connect to the mud. This has been tested and works fine in Windows XP (with the free IPv6 tunnel provided by gogo6).

Help! None of this makes any sense!

Ultimately there's lots of different ways to get a working IPv6 connection to the mud. Assuming you're using Windows and a standard IPv4 client, here's probably the simplest, consisting of simple steps:

  • Download the free gw6c client available here.
    • If you don't know if your version of Windows is 32-bit or 64-bit download the Windows Installer 32-bit. (First option at the top.)
  • Run the installer. Install the program.
  • Run the client.
  • Click connect, the default options should make you connect anonymously.
  • Test the connection by going here.
  • Open a command prompt (by doing Start->Run... and running 'cmd') and enter the following command:
netsh interface portproxy add v4tov6 listenport=4242 connectaddress=discworld6.obsidian.org.uk connectport=4242
  • Finally, set your mud client to connect to localhost, port 4242, instead of discworld.atuin.net.

This should get you up and running. Good luck!

(Addendum: If you run 'ipv6 install' at the command prompt you're probably installing Teredo. You don't need both go6 and Teredo. Using both could cause problems.)

(Addendum2: you probably won't need to install anything, as teredo should work out of the box, I didn't install anything, just ran the netsh and voila.).

See also