SunScreen 3.1 Administration Guide

FTP Proxy Service With Proxy User Authentication

The following information is used in this example:

To Set Up the SunScreen Environment
  1. Type the following to make sure the backend FTP Server is accessible:


    ping -s BackendServer
    

  2. Add an entry in the /etc/hosts file, if it is accessible. For example:


    1.2.3.4 BackendServer
    

To Configure the FTP Proxy Service
  1. Create a new Service for the FTP proxy service:

    1. Log in to the administration GUI.

    2. On the Policies List page, select the policy and click the Edit... button.

      The Policy Rules page appears.

    3. In the Common Objects section, select Service from the Type choice list.

    4. Click New Single... from the Add New choice list.

      The Service dialog window appears.

    5. Type the name for this new service in the Name field, for example:


      proxy_ftp
      

    6. Click the Add Filter button and select ftp.

    7. Click the field under Port, and type 21.

    8. Click the OK button.

  2. Create the Authorized User:

    1. In the Common Objects section, select Authorized User from the Type choice list.

    2. Select New... from the Add New choice list.

    3. The Authorized User dialog window appears.

    4. Type a name for this Authorized User in the Name field, for example:


      au1
      

    5. Click the User Enabled check-box.

    6. Type the password:


      hello
      

    7. Click the Enabled check-box after Password: field.

    8. Retype the password:


      hello
      

    9. Click the OK button.

  3. Create a Proxy User:

    1. In the Common Objects section, select Proxy User from the Type choice list.

    2. Select New... from the Add New choice list.

      The Proxy User dialog window appears.

    3. Type a name for this Proxy User in the Name field, for example:


      pu1
      

    4. Click the User Enabled check-box.

    5. Type the following in the Authorized User Name field:


      au1
      

    6. Type a name in the Backend User Name field, for example:


      BkEndUsrName
      

    7. Click the OK button.

  4. Create a Policy Rule:

    1. Click the Add New... button in the Policy Rules area of the Policy Rules page.

      The Rule Definition dialog window appears.

    2. Edit each field as follows by clicking the down arrow to display the choice list.

      • Service: proxy_ftp

      • Source Address: *

      • Destination Address: *

      • Action: ALLOW

      • PROXY list: PROXY_FTP

      • Enable the FTP command options, for example:

        • GET: ALLOW

        • CHDIR: ALLOW

        • PROXY USERS: pu1

  5. Click the OK button.

  6. Save the changes:

    1. Click the Verify Policy button.

    2. Click the Save Changes button.

  7. Test the FTP Proxy Service

    From the Client Machine:

    1. Make sure the physical connections are good.

    2. Make sure the client machine can access SunScreen Proxy Server:


      ping -s qa22-efs-hme1
      

    3. Test the FTP proxy service:

      • Command issued: ftp qa22-efs-hme1

      • Username: pu1@BackendServer

      • Password: For example, zzz@cherrycoke (Password is not seen because it is echo suppressed.)


        tiny# telnet qa22-efs-hme1
        Trying 70.70.70.1...
        Connected to qa22-efs-hme1.
        Escape character is "^]".
        SunScreen Telnet Proxy Version 3.0
        Username@Hostname: pu1@BackendServer
        Password:       <enter au1"s password>
        Trying BackendServer (1.2.3.4) ...
        Connected to BackendServer
        SunOS 5.6
        login: BkEndUsrName
        Password: