Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Customizing a Firewall Authentication Banner

    This example shows how to customize the banner text that appears in the browser.

    Requirements

    Before you begin, create an access profile. See Example: Configuring the Access Profile.

    Overview

    A banner is a message that appears on a monitor in different places depending on the type of login. This example shows how to change the banner that appears in the browser to indicate that a user has successfully authenticated after successfully logging in through Web authentication. The new message is “Web authentication is successful.” If the authentication fails, then the new message reads “Authentication failed.”

    Configuration

    CLI Quick Configuration

    To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

    set access firewall-authentication pass-through default-profile Profile-1
    set access firewall-authentication pass-through ftp banner fail “ Authentication failed”
    set access firewall-authentication web-authentication default-profile Profile-1
    set access firewall-authentication web-authentication banner success “ Web authentication is successful”

    Step-by-Step Procedure

    The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide PDF Document.

    To customize the banner text that appears in the browser:

    1. Specify the banner text for failed pass-through authentication through FTP.
      [edit]
      user@host# set access firewall-authentication pass-through default-profile Profile-1
      user@host# set access firewall-authentication pass-through ftp banner fail “ Authentication failed”
    2. Specify the banner text for successful Web authentication.
      [edit]
      user@host# set access web-authentication default-profile Profile-1
      user@host# set access web-authentication banner success “ Web authentication is successful”

    Results

    From configuration mode, confirm your configuration by entering the show access firewall-authentication command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

    [edit]
    user@host# show access firewall-authentication
    pass-through {
        default-profile Profile-1;
        ftp {
            banner {
                fail "Authentication failed";
            }
        }
    }
    web-authentication {
        default-profile Profile-1;
        banner {
            success "Web authentication is successful";
        }
    }
    

    If you are done configuring the device, enter commit from configuration mode.

    Verification

    To confirm that the configuration is working properly, perform this task:

    Troubleshooting with Logs

    Purpose

    Use these logs to identify any issues.

    Action

    From operational mode, enter the show log messages command and the show log dcd command.

    Published: 2012-06-29