Disabling CNA in MacOS

I am doing some experiences/investigation into captive networks/the WISPr protocol. (see Getting WISPr tags from a FON authentication portal )

However, the Captive Network Assistant, “Captive Network Assistant.app”, in MacOS, that is opened once you login in a Captive Portal supporting WISPr, is getting into the way.

Considering it also opens spontaneously when logging into captive portals, I might actually want to disable it for good, as I use Firefox.

How might I do that in MacOS Sierra?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

For disabling the CNA window, I advise using this method:

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.captive.control Active -boolean false

After this change, instead of being obliged to authenticate to get the wifi up, now I can deal with the WIPSr aware captive portal in my browser of choice.

As an interesting tidbit, Firefox seems to be WISPr aware, and displays a warning saying you have to login into the (captive) network.

Another immediate method to achieve disabling the CNA used to be renaming the cut down browser based in Webkit out of the way that is invoked by the WISPr protocol.

As in:

cd /System/Library/CoreServices
mv Captive Network Assistant.app mv Captive Network Assistant.app.old

However due to System Integrity Protection in more recent versions of Mac OS, and the steps involved to make it work, the plist modification is now the advised method.

This latter method has also the added disavantage of steps having to be performed to prevent a security update from restoring a copy of the aforementioned binary.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x