Skip to content
Last update: 2021-10-22

Configure an SMS gateway

  1. Go to Authentication > Guest user settings, scroll to SMS gateway, and click Add.
  2. Enter a name.
  3. Specify the settings.

    Option Description
    URL URL of the SMS gateway for sending an SMS request.
    HTTP method Method for sending an SMS request to the SMS gateway. Select Get to request data from a specified resource. Select Post to submit data to be processed by a specified resource.
    Cell number format Use country code with mobile phone number.
    Number prefix Prefix to be used with the mobile phone number. Can include alpha-numeric and ASCII special characters.
  4. Enter request parameters specified by your service provider.

    If the request URL is as follows:

    http://www.example.com/sms.aspx?user=joey&pass=joey123&mbno=9792234567&msg=Test

    Then the request parameters are as follows:

    Name Value
    user joey
    pass joey123
    mbno 9792234567
    msg Test
  5. Enter the response format specified by your service provider.

    If the response received is as follows:

    status=302&message=Limit Exceeded

    Then the response format should be as follows:

    status={0}&message={1}

  6. Enter the response parameter specified by your service provider.

    If the response format is as follows:

    status={0}&message={1}

    Then the response parameters are as follows:

    Index Name
    0 status
    1 message
  7. Click Save.

Click Test connection and type a mobile phone number. If you are able to connect to the gateway, you will receive an SMS message.

Note

If your SMS gateway accepts only messages of a specific template, make sure that the customized message follows the template. If they don’t match, the test connection won’t work and the SMS server may reject the message.

Note

To customize the message, go to Administration > Messages.

Control password parameters on the firewall

  1. Go to Authentication > Guest user settings > Guest user general settings
  2. Configure the settings. For more information, see Guest user general settings

    Guest user general settings

  3. Click Apply

Enable authentication with the newly created SMS gateway

  1. Go to Authentication > Guest user settings > Guest user registration settings.
  2. Select Enable guest users registration.
  3. Configure the registration settings. For more information, see Guest user registration settings

    Guest user registration settings

  4. Click Apply.

Configure firewall rules

Configure a rule to allow Wi-Fi users access to DNS traffic.

  1. Go to Rules and policies > Firewall Rules.
  2. Click Add firewall rule and select New firewall rule.'
  3. Specify the rule name and position.
  4. Configure the following settings:

    Setting Value
    Action Accept
    Source zones WiFi
    Source networks and devices Any
    Destination zones WAN
    Destination networks Any
    Services DNS
  5. Click Save.

Configure a rule to apply the user-based policy and force unauthenticated users to be redirected to the captive portal.

  1. Go to Rules and policies > Firewall Rules.
  2. Click Add firewall rule and select New firewall rule.
  3. Specify the rule name and position.
  4. Configure the following settings:

    Setting Value
    Action Accept
    Source zones WiFi
    Source networks and devices Any
    Destination zones WAN
    Destination networks Any
    Services Any
  5. Select Match known users

  6. Select Show captive portal to unknown users
  7. Click Save

Test Scenario

A user connects to the Wi-Fi network.

  1. The following page is shown.

    Sign in to Wi-Fi Network

  2. Click Register for internet access

  3. Enter the requested information.

    Guest User Registration

  4. Click Save.

  5. If the registration is successful, the sign-in page is shown.

    Guest user registration successful

  6. The user will receive an SMS message containing the username and password.

    Username and password

  7. Users can now use the credentials received through SMS to sign in to the Wi-Fi network.

    Sign in to Wi-Fi Network

  8. After successful login, the following page is shown.

    You are signed in

  9. The user appears in the Current activities > Live users and Authentication > Guest users sections of the Sophos Firewall. Reporting data is also available.

    Live Users Guest Users

More resources

Back to top