This tool is for penetration testing and for networks you are allowed to use. Never tunnel through a network without the permission of its owner.
SSH and TCP connections tunneled inside DNS queries, when everything else is blocked open-source software: Java server, Rust core, desktop, mobile, Perl and Rust clients are available on GitHub
for those times when everything else is blocked...
Here is the blind hacker's DNS tunneling approach. Useful when you can access really nothing but dig (or nslookup) and a Perl runtime, not even root-level permission. And you need to set up a tunnel to the Internet.
Yes, you don't have any USB key with some bootable OS inside either. Nor any electronic device that could help you install anything locally to bootstrap and do your job. Simply because when you entered the room, you had to walk through a metal detector.
No problem! You can bootstrap a full VPN client and get an Internet access only with dig and a core Perl installation. Anywhere and whenever you need it. For free. Here are the steps.
Ping some public host on the Internet. If no answer comes, but a public address is displayed (not in the private ranges of RFC 1918), the DNS goes out and you can probably establish a DNS tunnel:
$ ping vpnoverdns.com PING vpnoverdns.com (89.167.66.209): 56 data bytes ^C --- vpnoverdns.com ping statistics --- 12 packets transmitted, 0 packets received, 100.0% packet loss
Here, the test is negative (you cannot establish a tunnel):
$ ping vpnoverdns.com ping: cannot resolve vpnoverdns.com: Unknown host
You do not need to remember anything: the instructions are in the vpnoverdns.com zone. Ask for the TXT records of the domain:
$ dig vpnoverdns.com txt +short "get TXT record type for bootstrap.vpnoverdns.com to get instructions to download the Perl VPN client" "get TXT record type for sha256.vpnoverdns.com to get fingerprints" ...
$ dig bootstrap.vpnoverdns.com txt +short sh.vpnoverdns.com. "dig perl.vpnoverdns.com. txt +short | tr '\\' ' ' | xargs sh -c # works with bash, dash, zsh (sh syntax); perl3.vpnoverdns.com for the protocol v3 client; see TXT value for dig.vpnoverdns.com if you do not have dig but nslookup only"
The protocol v3 client is stored, base64-encoded, in more than a thousand TXT records. One command line fetches them all, rebuilds
vpnoverdns3.pl and runs it:
$ dig perl3.vpnoverdns.com. txt +short | tr '\\' ' ' | xargs sh -c
Under the hood, it runs this loop (the count may change with new versions):
i=0; while [ $i -lt 1219 ]; do dig $i.v3.src.vpnoverdns.com. TXT +short; i=$((i+1)); done \ | sed -e s/.// -e 's/.$//' | perl -MMIME::Base64 -ne 'print decode_base64($_);' > vpnoverdns3.pl
Without dig, dig.vpnoverdns.com gives the same with nslookup. It takes a few minutes: each query is answered by our name servers, through your resolver.
Compare the SHA-256 checksum of what you got with the one published in the DNS (and on the Download page):
$ dig sha256.vpnoverdns.com txt +short "sha256 vpnoverdns3.pl: 5ffff80a0731866487a023c2bd9c5b7c751acb512b298847d32b4ef1dc93c5f5" ... $ shasum -a 256 vpnoverdns3.pl
Anonymously, to the SSH server of your choice:
$ perl vpnoverdns3.pl -A -S my.ssh.server -o "-l user"
Or forward a local port and use your own ssh, with a SOCKS proxy for anything else:
$ perl vpnoverdns3.pl -A -L 2222:my.ssh.server:22 & $ ssh -p 2222 -D 1080 user@127.0.0.1
You are on the Internet. See the manual for all the options, and the Unix/Linux page.
Version 3.1: native apps for iPhone, iPad and Mac A new native application (SwiftUI) joins the desktop application, and the direct SSH mode skips the DNS when the network is routed. See Download.
Desktop application for Windows Built-in SSH terminals, permanent tunnels and a speedometer, portable: no installation needed.
New server, protocol v3 The service is back, 10 to 30 times faster than before. Old clients still work.
Server and clients are open-source: GPLv3 Explore the source tree on GitHub.
Anonymous access needs no account: SSH (port 22) only, each connection lasts 2 minutes.
An account gives you a token: your own ports, no time limit, a monthly quota. Ask for an account.
2012-2016 accounts: get the uuid of your legacy account.