MAC filtering, How to auto log in to a webpage?

1

My building provides internet access. But before you can use it, you need to browse to a website. From there you are redirected to the building's router which asks you for a user name and password, after that it allows one MAC on the network (coffee shop/airport style MAC filtering). This setup is a pain.

What I'm trying to do is set up an ubuntu based box, that will function as a NAT and bridge my own network with my three computers and my phone onto the buildings network using a single MAC address.

The bit I'm stuck on is how to get my NAT box to log in completely autonomously. This has stumped a few people. Any ideas?

Keith Loughnane

Posted 2012-08-12T14:32:28.863

Reputation: 11

Note: this is called Captive portal

– Vi. – 2012-08-13T12:42:23.733

Answers

1

You can probably do something like this:

  1. Install HTTPFox (or other Firefox addon) to view what exactly is sent to the portal to authenticate;
  2. Construct "curl" (command-line HTTP client) command that does the same
  3. Schedule that curl command to be executed periodically or when connection requires authentication.

Vi.

Posted 2012-08-12T14:32:28.863

Reputation: 13 705