6TUNNEL(1)
β¨ 6TUNNEL(1) β the manual name is 6tunnel π
okay bestie, so 6tunnel is literally the tool that lets your IPv4-only apps talk to IPv6 hosts and vice-versa π¦ it is SO iconic for that, no cap.
πΈ NAME
6tunnel β tunnelling for applications that don't speak IPv6 π
π SYNOPSIS
6tunnel [ -146dhfvV ] [ -u username ] [ -i password ] [ -I password ] [
-l local_host ] [ -L limit ] [ -p pid_file ] [ -m map_file ] local_port
remote_host [ remote_port ]
π DESCRIPTION
okay so 6tunnel lets you use services hosted on IPv6 machines with apps that only know IPv4, and the other way around π«Ά it can bind to any of your IPv4 (default) or IPv6 addresses and forward everything to an IPv4 or IPv6 (default) host. it's giving full adapter energy β¨
bestie, look at this example:
6tunnel -1 6668 irc6.net 6667
that's literally all you need to connect to an IPv6 irc server, like this:
irc foobar localhost:6668
if you don't want to run 6tunnel every single time you wanna flex your :c001: or :dead: IPv6 address on IRC π, you can use the -i parameter. it makes 6tunnel ask your client for a password. just run:
6tunnel -i dupa.8 31337 irc6.net 6667
and then type:
irc foobar localhost:31337:dupa.8
if your IRC server wants you to send a password too, pass it with the -I parameter π after proxy authentication succeeds, 6tunnel sends it along to the server. so iconic.
6tunnel can also be a tunnel for every other combo of IPv4 and IPv6 endpoints π if the remote host doesn't have any IPv6 addresses, 6tunnel uses the IPv4 one. otherwise, use -4 to make IPv4 the preferred one. for IPv6-to-anything tunnels, use -6 so 6tunnel binds to an IPv6 address.
π OPTIONS
-1β bestie, exit after the first connection π§-4β prefer the IPv4 endpoint if the machine has both address types π-6β listen on an IPv6 address (IPv4 is the default) π¦-dβ don't detach π-fβ force tunneling even if the remote host isn't resolvable at execution time π-hβ print a hex dump of every packet received or sent π₯-u usernameβ change UID and GID afterbind()β¨-i passwordβ act as an IRC proxy and make the user authenticate π-I passwordβ if you're using6tunnelas an IRC proxy and the IRC server needs a password from you, put it right here π-l local_hostβ listen on the specified address (IPv4, or IPv6 if-6is used) πΈ-L limitβ limit simultaneous connections π-p pid_fileβ write the pid down in the specified file π-s source_hostβ connect to the remote host using the specified source address π«Ά-m map_fileβ binds to specified IPv6 addresses based on the source IPv4 address. the file has one mapping per line, with an IPv4 source address and its matching IPv6 address. only listed hosts are allowed to connect, so if you want to let ANY host in, add a mapping fordefaultor0.0.0.0π example:
192.168.0.2 3ffe:8010:18::1000:2
192.168.0.3 3ffe:8010:18::1000:3
-vβ be verbose and don't detach π’-Vβ print the version and exit π§Ύ
π NOTES
bestie, the -H option to disable all resolver hints has been removed. that's fine though, because a proper combo of -4 and -6 gives you every mix of IPv4 and IPv6 sources and destinations π
π SIGNALS
sending SIGHUP forces a reload of the map file π
π§ THANKS
the #ipv6 crew, and Lam π«Ά
π BUGS
ngl, the man page is terrible π the hex dump doesn't include IRC proxy authentication.
the IRC proxy requires your client to send the password first. don't worry though, ircii, EPIC, BitchX, mIRC and many more will work just fine β¨ there's no logging except debug output.
π AUTHORS
Wojtek Kaniewski (wojtekka@toxygen.net), Dariusz Jackowski (ascent@linux.pl), Ramunas Lukosevicus (lukoramu@parok.lt), Roland Stigge (stigge@antcom.de) π
π¦ SEE ALSO
ssh(1) πΈ
okay bestie, that's the whole page! 2025-07-10 π Β· 6TUNNEL(1) π we love a well-documented tool π
π¦ where this page comes from
- alpine 3.24: 6tunnel-doc 0.14-r0 Β· GPL-2.0-only
- arch rolling: 6tunnel 0.14-1 Β· GPL-2.0-only
- fedora 44: 6tunnel 0.14-3.fc44 Β· GPL-2.0-only
- nixos 26.05: 6tunnel 0.14
- nixpkgs unstable: 6tunnel 0.14
- ubuntu questing: 6tunnel 1:0.14-1
- ubuntu resolute: 6tunnel 1:0.14-1build1 Β· GPL-2.0-only
- ubuntu stonking: 6tunnel 1:0.14-1build1 Β· GPL-2.0-only
- Copyright 2000-2025 by Wojtek Kaniewski <wojtekka@toxygen.net>
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms