Back to services

iodine

IPv4 over DNS tunnel solution, enabling you to start up a socks5 proxy listener.

View alternatives to iodine
Suggest edit
Open source
Self-hostable
ISC
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

iodine is a tunneling tool that encapsulates IPv4 data in DNS queries and responses. It is commonly used to get around firewall restrictions, establishing a usable network connection in environments where only DNS traffic is allowed through and all other network access is blocked. It relies on a domain name that you control and a matching server-side DNS program, iodined. The client transmits data by sending specially crafted DNS queries to that domain.

Key Features

  • IP over DNS tunneling: Encapsulates arbitrary IPv4 traffic in DNS messages, getting past networks that only allow DNS queries.
  • Asymmetric bandwidth: Downstream speeds can reach about 1 Mbit/s while upstream is more limited, and overall performance is better than most comparable DNS tunneling tools.
  • NULL record type optimization: Uses the DNS NULL record type to carry unencoded, compressed data, so a single DNS response can carry a payload of more than 1 KB, significantly improving throughput.
  • Automatic detection and configuration: Automatically assigns the interface IP address and detects the optimal packet size to achieve maximum downstream throughput.
  • Challenge-response authentication: Uses an MD5 hash-based challenge-response mechanism for login authentication and filters out packets from IPs that have not logged in, providing a degree of security.
  • Multi-user support: A single server can support up to 16 users sharing it at the same time.
  • Cross-platform and cross-architecture: The client and server can interoperate between hosts running different operating systems and using different byte orders.

Target Users and Use Cases

  • Users on networks with strict firewalls or content censorship who need to bypass network restrictions to access the internet.
  • People setting up a temporary network connection on public Wi-Fi, hotel networks, or corporate or campus networks that only let DNS queries through.
  • Security researchers and penetration testers who test and demonstrate DNS tunneling, a common data exfiltration and command-and-control channel technique.
  • System administrators who need to perform remote management or access internal resources from restricted network environments.

Core Advantages

Compared with other DNS tunneling implementations, iodine offers higher performance (NULL-type records carry unencoded data), better cross-platform portability (it supports Linux, macOS, FreeBSD, NetBSD, OpenBSD and Windows), a built-in challenge-response security mechanism, and less manual configuration (automatic IP assignment and automatic detection of the optimal packet size).

Deployment

  1. Prepare a domain name that you control, and set an NS record for it that points to the server running iodined.
  2. On the server, run iodined, which creates a TUN/TAP virtual network interface and listens on port 53 (or forwards through an upstream DNS).
  3. On the client, run iodine, specifying the server domain and the authentication password to establish the tunnel connection.
  4. You can use the official online tool (check-it) to test in advance whether your local network's DNS environment is suitable for setting up a tunnel.

Precompiled packages are available in the software repositories of various Linux distributions (Debian, Ubuntu, Fedora, Arch, Gentoo, etc.) as well as FreeBSD and OpenBSD. You can also download the source code or the Windows binary package from the official website and compile and install it yourself.

Technical Requirements

  • A domain name you control, along with DNS resolution permissions for it, is required for the server deployment.
  • Both server and client must support TUN/TAP virtual network adapters (most UNIX-like systems support them natively; on Windows a TAP driver must be installed).
  • Supported platforms: Linux, macOS, FreeBSD, NetBSD, OpenBSD, Windows.

Notable Points

iodine is open source under the ISC license, with its source code hosted on GitHub, and it provides an official mailing list and IRC channel for user discussion and bug reports. Because it is essentially a tool for bypassing network restrictions, you should understand the relevant policies and laws of the network environment you are in before using it.