{"id":205,"date":"2010-02-16T00:40:33","date_gmt":"2010-02-16T05:40:33","guid":{"rendered":"http:\/\/zitstif.no-ip.org\/?p=205"},"modified":"2010-02-16T02:27:18","modified_gmt":"2010-02-16T07:27:18","slug":"circumventing-pay-for-service-wifi-points","status":"publish","type":"post","link":"http:\/\/zitstif.no-ip.org\/?p=205","title":{"rendered":"Circumventing pay-for-service wifi points"},"content":{"rendered":"<p>Ever want to access the internet without authenticating at your local college? Have you found yourself accessing wifi points at airports that require you to pay &#8216;X&#8217; amount of dollars for service? Well my cheap friend, I have a solution for you!<\/p>\n<p>I will for warn you, that this method is a bit slow and it does require *nix on both ends. Also this is for educational purposes only!<\/p>\n<p>Firstly, you need an accessible server that is running ssh on it, along with a nifty program called &#8216;dns2tcp&#8217;. There are some other similar programs like iodine and such that can do this for you, but this walk-through is focused on the usage of dns2tcp. Also, you need a DNS name, which you can freely get via no-ip.com or dyndns.<\/p>\n<p>File:<\/p>\n<p><a title=\"http:\/\/www.hsc.fr\/ressources\/outils\/dns2tcp\/index.html.en\" href=\"http:\/\/www.hsc.fr\/ressources\/outils\/dns2tcp\/index.html.en\" target=\"_blank\">http:\/\/www.hsc.fr\/ressources\/outils\/dns2tcp\/index.html.en<\/a><\/p>\n<p>Guide:<\/p>\n<p><a title=\"(cached)http:\/\/www.wains.be\/index.php\/2009\/04\/24\/howto-setting-up-dns2tcp\/\" href=\"http:\/\/74.125.95.132\/search?q=cache:6FEgC8YWJi0J:www.wains.be\/index.php\/2009\/04\/24\/howto-setting-up-dns2tcp\/+sebastian+dns2tcp&amp;cd=1&amp;hl=en&amp;ct=clnk&amp;gl=us\" target=\"_blank\">http:\/\/www.wains.be\/index.php\/2009\/04\/24\/howto-setting-up-dns2tcp\/<\/a><\/p>\n<p>I followed this guide quite closely, and it actually did not end up working for me. The guide suggests to start the daemon via:<\/p>\n<pre lang=\"bash\">sudo \/etc\/init.d\/dns2tcpd start<\/pre>\n<p>However, this did not work for me. By using netstat, I found that dns2tcpd was not even listening. Instead, I ended up using &#8216;\/usr\/local\/bin\/dns2tcpd&#8217;. But before I continue, I&#8217;ll post my dns2tcpd config file:<\/p>\n<pre lang=\"bash\">listen = 0.0.0.0\r\nport = 53\r\n# If you change this value, also change the USER variable in \/etc\/default\/dns2tcpd\r\nuser = nobody\r\nchroot = \/tmp\r\ndomain = yourdomain.org\r\nressources = ssh:127.0.0.1:22<\/pre>\n<p>Change accordingly, and yes, &#8216;ressources&#8217; is suppose to be misspelled.<\/p>\n<p>Here is the command that has worked for me and I&#8217;m currently using to make this post possible:<\/p>\n<pre lang=\"bash\">sudo nohup dns2tcpd -f \/etc\/dns2tcpd.conf &amp;<\/pre>\n<p>Verify that you&#8217;ve forwarded a port on your router to port 53 on your server, or if your server is in the DMZ, you shouldn&#8217;t have to worry about doing this.<\/p>\n<p>Now, in a remote location that has restricted access (via redirecting every HTTP request to a login page), test that you&#8217;re server is visible via DNS by using a command like &#8216;host&#8217;. We&#8217;ll use my DNS name for this example:<\/p>\n<pre lang=\"bash\">host zitstif.no-ip.org\r\nzitstif.no-ip.org has address 75.41.5.12<\/pre>\n<p>If this works, there&#8217;s a good chance you&#8217;re in business. Then, the next test you want to do is:<\/p>\n<pre lang=\"bash\">dns2tcpc -z zitstif.no-ip.org 75.41.5.12\r\nAvailable connection(s) :\r\n        ssh<\/pre>\n<p>If you see results like this, then chances are, this will work. Next, we need to do some DNS tunneling:<\/p>\n<pre lang=\"bash\">dns2tcpc zitstif.no-ip.org 75.41.5.12 -l 4444 -r ssh<\/pre>\n<p>If dns2tcpc is listening on port 4444, you now should be able to ssh into it and this will redirect you to your home server.<\/p>\n<pre lang=\"bash\">ssh -D 1234 user@localhost -p 4444<\/pre>\n<p>Once you&#8217;ve authenticated then you&#8217;re set to now setup firefox or a browser that supports SOCKS 4\/5, to connect to your loopback interface on port 1234.<\/p>\n<p>One big reason why I made mention of this, is because Hak5 had an episode showing how to do basically the same thing but they stated you had to pay for your own DNS service \/ name. My method works, and it&#8217;s also cheaper.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever want to access the internet without authenticating at your local college? Have you found yourself accessing wifi points at airports that require you to pay &#8216;X&#8217; amount of dollars for service? Well my cheap friend, I have a solution for you! I will for warn you, that this method is a bit slow and &hellip; <a href=\"http:\/\/zitstif.no-ip.org\/?p=205\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Circumventing pay-for-service wifi points<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[53,58,60,62,59,61],"class_list":["post-205","post","type-post","status-publish","format-standard","hentry","category-posts","tag-dns","tag-dns-tunnelling","tag-dns2tcp","tag-dns2tcpc","tag-dns2tcpd","tag-free-wifi"],"_links":{"self":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=205"}],"version-history":[{"count":10,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions"}],"predecessor-version":[{"id":209,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions\/209"}],"wp:attachment":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}