The following information is used in this example:
pu1
au1
au1_pw
bu1
bu1_pw
ftp_server
sunscreen_fw
tiny
Use the ping command to make sure the backend FTP Server is accessible:
ping -s ftp_server |
Add an entry in the /etc/hosts file if it is accessible. For example:
1.2.3.4 ftp_server |
Create the authorized user:
In the Common Objects section, select Authorized User from the Type list.
Select New from the Add New list.
The Authorized User dialog box appears.
Type a name for this authorized user in the Name field, for example:
au1 |
Select the User Enabled check box.
Type the password:
au1_pw |
Select the Enabled check box after the Password field.
Retype the password:
au1_pw |
Click the OK button.
Create a Proxy User:
In the Common Objects section, select Proxy User from the Type list.
Select New from the Add New list.
The Proxy User dialog box appears.
Type a name for this Proxy User in the Name field, for example:
pu1 |
Select the User Enabled check box.
Type a name in the Authorized User Name field:
au1 |
Type a name in the Backend User Name field, for example:
bu1 |
Click the OK button.
Create a Policy Rule:
Click the Add New button in the Policy Rules area of the Policy Rules page.
The Rule Definition dialog box appears.
Select the following values for each field:
ftp
*
*
ALLOW
PROXY_FTP
Enable the FTP command options, for example:
ALLOW
ALLOW
pu1
Click the OK button.
Save the changes:
Test the FTP Proxy Service
From the client machine:
Make sure the physical connections are good.
Make sure the client machine can access the SunScreen proxy:
# ping -s sunscreen_fw |
Test the FTP proxy service:
Command issued |
ftp sunscreen_fw |
Username |
pu1@ftp_server |
Password |
For example, au1_pw@bu1_pw (Password is not seen because it is echo suppressed.) |
tiny# ftp sunscreen_fw Connected to sunscreen_fw. 220- Proxy: SunScreen FTP Proxy Version 3.2 : Username to be given as <proxy-user>'@'<FTP-server-host> : Password to be given as <proxy-password>'@'<FTP-server-password> 220 Ready. Name (sunscreen_fw: root): pu1@ftp_server 331- Proxy: Authenticate & connect: 331 Password needed to authenticate 'pu1'. Password: <au1_pw@bu1_pw> 230- Proxy: : Authentication mapped 'pu1' to backend user 'bu1'. : Connecting to ftp_server (1.2.3.4) - done. Server: 220 ftp_server FTP server (SunOS 5.6) ready. Proxy: Login on server as 'bu1'. Server: 331 Password required for bu1. Proxy: Supplying password to server. 230 Server: User bu1 logged in. ftp> ls |