Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Note: this is called Captive portal – Vi. Aug 13 '12 at 12:42

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.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.