M0n0wall Configuration

M0n0wall Configuration

From WirelessOrbit

Jump to: navigation, search

This guide will walk you through setting up m0n0wall to work with Wireless Orbit. If you need information on installing or upgrading m0n0wall, please consult the external links section of the m0n0wall page of this wiki.

This guide was written for m0n0wall 1.235. Other versions should also work, although the exact configuration process may vary slightly.

Captive Portal Configuration

m0n0wall Captive Portal Configuration

After logging onto the m0n0wall administration interface, click on the Captive Portal section under Services. In the Captive Portal page:

  • Check/enable the Enable captive portal checkbox
  • From the Interface pulldown select "LAN"
  • Check/enable the Logout popup window checkbox
  • Under Authentication select the RADIUS authentication radio button
  • Under Primary RADIUS server in the IP address blank enter "69.36.234.20"
  • Leave the Port blank empty
  • In the Shared secret blank enter the secret key you defined in the RADIUS profile for this gateway (in the Wireless Orbit Control Center). If you're not sure what that is, just check the gateway details in the Gateways page of the Control Center.
  • Under Accounting check/enable the send RADIUS accounting packets checkbox
  • Leave the Accounting port blank empty
  • Uncheck/disable the Re-authentication checkbox
  • Uncheck/disable the RADIUS MAC authentication checkbox
  • Under RADIUS options check/enable the Use RADIUS Session-Timeout Attributes checkbox
  • In the Portal page contents file dialog, select/upload the login page for this gateway. For instructions on how to obtain/edit the login page for your gateway, see the Login Page Configuration section below.
  • Click on the Save button at the bottom of the page

Allowed IP Addresses Configuration

m0n0wall Allowed IP Addresses Configuration

If you're following allong, you should be at the Services: Captive portal section of the m0n0wall webGUI. From there, click on the Allowed IP Addresses tab. From the Allowed IP Address tab:

  • Click on the + (plus sign) button
  • From the Direction pulldown select To
  • In the IP Address blank enter "69.36.234.20"
  • In the Description blank enter "Wireless Orbit"
  • Click on the Save button
  • Repeat the steps above to add the IPs used by any payment gateways you're using
  • Click on the Apply changes button at the top of the screen

Login Page Configuration

M0n0wall's captive portal interface has to be redirected to Wireless Orbit's hosted login portal. In order to do this, you'll need to upload a simple redirection page to your m0n0wall box. How to do this is covered in the Captive Portal Configuration section above.

The redirection page is:

<HTML>
<TITLE>Login</TITLE>
<BODY>
<FORM NAME="redirect" METHOD="post"
        ACTION="https://portal.wirelessorbit.com/portal/index.php?portal_id=ID">
<INPUT TYPE="hidden" NAME="redirurl" VALUE="$PORTAL_REDIRURL$"/>
</FORM>
<SCRIPT LANGUAGE="JavaScript">
        document.redirect.submit();
</SCRIPT>
</BODY>
</HTML>

You can either cut and paste this to a file and upload it, or download m0n0wall_login.zip, unzip the archive, and upload the HTML document inside.

You need to edit this file and replace the text ID in the form action with the portal ID for gateway. The portal ID is listed on the gateway details area in the Gateways page of the Control Center.