{"id":2643,"date":"2022-01-30T14:31:42","date_gmt":"2022-01-30T13:31:42","guid":{"rendered":"https:\/\/www.torbox.ch\/?p=2643"},"modified":"2022-07-08T04:36:06","modified_gmt":"2022-07-08T03:36:06","slug":"should-we-change-the-way-how-torbox-is-dealing-with-captive-portals","status":"publish","type":"post","link":"https:\/\/www.torbox.ch\/?p=2643","title":{"rendered":"Should we change the way how TorBox is dealing with captive portals?"},"content":{"rendered":"\n<p>Please <a href=\"https:\/\/github.com\/radio24\/TorBox\/discussions\/145\">participate on our Github discussion board<\/a>. I need as much input as necessary to decide if we should permanently change how TorBox is dealing with&nbsp;<a href=\"https:\/\/en.wikipedia.org\/wiki\/Captive_portal\">captive portals<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"current-situation\">Current situation<\/h3>\n\n\n\n<p>When the user changes the connection settings in the main menu, he is confronted with a dialogue asking if it is a direct connection or a captive portal. So far, the&nbsp;<code>master<\/code>&nbsp;branch and the v.0.5.0 release open a tunnel between a client and the captive portal to make it possible to deal with the login page of the captive portal. The idea behind it is that the captive portal put the <a href=\"https:\/\/en.wikipedia.org\/wiki\/MAC_address\">MAC address<\/a> of the TorBox in a whitelist so that we can connect the TorBox with the Internet. I call that method &#8220;TUNNELING&#8221;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"problem\">Problem<\/h3>\n\n\n\n<p>For whatever reason, it seems that the &#8220;TUNNELING&#8221; method will not always work, and it appears that the number of captive portals blocking this approach is increasing. However, due to a small sample, I&#8217;m not entirely sure if this observation can be generalized or I was only the &#8220;lucky one&#8221; with this problem.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"solution\">Solution<\/h3>\n\n\n\n<p>With the&nbsp;<code>new_captive_portal_pass_through<\/code>&nbsp;branch, I introduced an alternative way to deal with captive portals, called &#8220;SPOOFING&#8221;. The idea is that a client directly connects a captive portal and opens it. When TorBox connects the captive portal, it asks for a MAC address. The user can enter the MAC address of the client, which is already whitelisted from the captive portal and connect to the Internet. So far, I only tested a handful of captive portals, and it worked not only well but better than the &#8220;TUNNELING&#8221; method. Currently, the&nbsp;<code>new_captive_portal_pass_through<\/code>&nbsp;branch offers both methods.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><a href=\"https:\/\/user-images.githubusercontent.com\/46644350\/151696060-efeb927b-aea8-405c-92ba-a9c4c3de5ff9.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/user-images.githubusercontent.com\/46644350\/151696060-efeb927b-aea8-405c-92ba-a9c4c3de5ff9.png\" alt=\"new_captive_portal_pass_through\" width=\"760\"\/><\/a><\/figure>\n<\/div>\n\n\n<p>To install the&nbsp;<code>new_captive_portal_pass_through<\/code>&nbsp;branch is easy by using the expert mode of entry 5 of the&nbsp;<a href=\"https:\/\/www.torbox.ch\/?page_id=1410\">Update &amp; Maintenance sub-menu<\/a>. Additionally, you have to copy the updated&nbsp;<code>rc.local<\/code>&nbsp;file to&nbsp;<code>\/etc<\/code>:&nbsp;<code>sudo cp etc\/rc.local \/etc<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"questions\">Questions<\/h3>\n\n\n\n<p>The next step in the&nbsp;<code>new_captive_portal_pass_through<\/code>&nbsp;branch is to allow users to list, change and reset the MAC addresses on every available interface. This questions the current approach to deal with captive portals:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><s>Should we still offer both methods or depreciate the &#8220;TUNNELING&#8221; method? Did you test the new &#8220;SPOOFING&#8221; method and fail to access a captive portal with this new method?<\/s> &#8211;> <strong>we will keep offering both methods because SPOOFING, too, is not always working.<\/strong><\/li><li>Should we even differentiate between a direct connection and a connection through captive portals anymore? What could a better approach look like?<\/li><li>In which sub-menu should I place the entry to list, change and reset the MAC addresses? Configuration or Countermeasure sub-menu or somewhere else<\/li><\/ul>\n\n\n\n<p>Please join our discussion on our Github discussion board.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Please participate on our Github discussion board. I need as much input as necessary to decide if we should permanently change how TorBox is dealing with&nbsp;captive portals. Current situation When the user changes the connection settings in the main menu, he is confronted with a dialogue asking if it is a direct connection or a &hellip; <a href=\"https:\/\/www.torbox.ch\/?p=2643\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Should we change the way how TorBox is dealing with captive portals?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-2643","post","type-post","status-publish","format-standard","hentry","category-blog"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"John Doe","author_link":"https:\/\/www.torbox.ch\/?author=2"},"uagb_comment_info":2,"uagb_excerpt":"Please participate on our Github discussion board. I need as much input as necessary to decide if we should permanently change how TorBox is dealing with&nbsp;captive portals. Current situation When the user changes the connection settings in the main menu, he is confronted with a dialogue asking if it is a direct connection or a&hellip;","_links":{"self":[{"href":"https:\/\/www.torbox.ch\/index.php?rest_route=\/wp\/v2\/posts\/2643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.torbox.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.torbox.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.torbox.ch\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.torbox.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2643"}],"version-history":[{"count":3,"href":"https:\/\/www.torbox.ch\/index.php?rest_route=\/wp\/v2\/posts\/2643\/revisions"}],"predecessor-version":[{"id":2841,"href":"https:\/\/www.torbox.ch\/index.php?rest_route=\/wp\/v2\/posts\/2643\/revisions\/2841"}],"wp:attachment":[{"href":"https:\/\/www.torbox.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.torbox.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.torbox.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}