Earlier quoted context omitted.
You can bypass essentially all paywalls using DNS tunnelling. The connection you get has _terrible_ bandwidth and latency characteristics, which is why nobody does it.
Not entirely correct. This doesn't work for many hotel paywalls, because they would have a catch-all rule for all DNS A queries (resolving to a local IP of authenticating proxy) and block everything else. And the reason is exactly because of the DNS tunneling, which was making rounds in p2p circles as far back as 2005 if not earlier.
Tunneling Data and Commands Over DNS to Bypass Firewalls
11–20 of 36 posts
Re: Tunneling Data and Commands Over DNS to Bypass Firewalls
#12Re: Tunneling Data and Commands Over DNS to Bypass Firewalls
#13It seems like this pattern could be recognized behind the firewall. How often would a real Internet client resolve hundreds or thousands of sub-hosts in a short timeframe?
Re: Tunneling Data and Commands Over DNS to Bypass Firewalls
#14From reading the article, it looks like in the most restrictive environment, the "malware" (dnscat2) behind the firewall passes data out by resolving lots and lots of unique subhosts at the controlled DNS server, e.g. many queries of hosts like: 19c301abcddeadbeef.malware.com. It seems like this pattern could be recognized behind the firewall. How often would a real Internet client resolve hundreds or thousands of su…
For instance, on this link on HN: https://medium.com/@bchesky/7-rejections-7d894cbaa084
It loads .cloudfront.net - and it changes every reload for me. For instance, d262ilb51hltx0.cloudfront.net, dnqgz544uhbo8.cloudfront.net, d262ilb51hltx0.cloudfront.net.
Re: Tunneling Data and Commands Over DNS to Bypass Firewalls
#15I've been using iodine http://code.kryo.se/iodine/ for a long time.
Re: Tunneling Data and Commands Over DNS to Bypass Firewalls
#16Earlier quoted context omitted.
You can bypass essentially all paywalls using DNS tunnelling. The connection you get has _terrible_ bandwidth and latency characteristics, which is why nobody does it.
Yea, it was pretty bad for me. I did manage to establish an ssh connection over that, but it would get dropped pretty fast. I'd setup L2TP on the host if you want to browse the web, it might just about work. The connection itself is not that bad, I actually paid for it eventually and it was okayish. I'm pretty sure with a bunch of adjustments you could get it to a point where you can use some IM comfortably.
Re: Tunneling Data and Commands Over DNS to Bypass Firewalls
#17I've been using iodine http://code.kryo.se/iodine/ for a long time.
Ah, I need to start using this. Work's firewall is completely bonkers, and they just removed access to webchat.freenode.net, so I need to find a way to punch thru... You can't even ssh out, or use websockets etc...
Additionally, if they have aggressive egress filtering, its likely that the only DNS communication will be via an internal resolver which is going to be monitored - iodine is going to leave a LOT of shit in those logs.
Re: Tunneling Data and Commands Over DNS to Bypass Firewalls
#18From reading the article, it looks like in the most restrictive environment, the "malware" (dnscat2) behind the firewall passes data out by resolving lots and lots of unique subhosts at the controlled DNS server, e.g. many queries of hosts like: 19c301abcddeadbeef.malware.com. It seems like this pattern could be recognized behind the firewall. How often would a real Internet client resolve hundreds or thousands of su…
Relatively often, actually. For instance, on this link on HN: https://medium.com/@bchesky/7-rejections-7d894cbaa084 It loads .cloudfront.net - and it changes every reload for me. For instance, d262ilb51hltx0.cloudfront.net, dnqgz544uhbo8.cloudfront.net, d262ilb51hltx0.cloudfront.net.
I suppose if the malware wanted to be more stealthy, it could slow transfers way down, intermix unrelated queries and spread the tunnel across multiple unrelated controlled domains.
Re: Tunneling Data and Commands Over DNS to Bypass Firewalls
#19Earlier quoted context omitted.
Relatively often, actually. For instance, on this link on HN: https://medium.com/@bchesky/7-rejections-7d894cbaa084 It loads .cloudfront.net - and it changes every reload for me. For instance, d262ilb51hltx0.cloudfront.net, dnqgz544uhbo8.cloudfront.net, d262ilb51hltx0.cloudfront.net.
That seems a bit different. A unique subdomain for each web page load might be common, but from my reading of the article, it looks like every packet of the tunneled conversation gets a unique domain. So for transferring any amount of data, I'd expect to see hundreds (thousands?) of subdomain resolution queries in a few minutes. That could raise a red flag. I suppose if the malware wanted to be more stealthy, it coul…
Re: Tunneling Data and Commands Over DNS to Bypass Firewalls
#20Don't tell anyone, but I did this on a plane ;) It was fickle, but I imagine you could build an entire protocol on top of DNS.
Iodine seems to be a bit more complex as the default configuration doesn't work in that environment.
[1] https://play.google.com/store/apps/details?id=air.com.mail4h...