| |
Set Up Internet Security on the PIX Security Appliance
|
|
|
|
Introduction
This document describes how to configure a firewall on your PIX
Security Appliance. A firewall is a protective barrier made up of rules that
regulate the flow of Internet and network traffic that flows in and out of your
network. This document is designed to show you how to set up rules to protect
your network and to allow necessary traffic to flow in and out.
Back to Top
Requirements
To perform the steps described in this document, you need to have these
items:
-
Ensure that all steps in
Configure the
PIX Security Appliance have been completed successfully.
-
One of these web browsers, with JavaScript and Java enabled:
-
Completed worksheets as instructed in the
Site
Survey:
-
Completed Remote Networking Assignments worksheet
-
Completed Internet Worksheet
-
Completed Firewall Worksheet
-
Completed LAN Addressing
Worksheet
Back to Top
Connect to the PIX
Complete these steps to access the PIX:
-
Open a browser and type
https://pix_interface_ip_address
into the
Address field. Refer to field R12 of the Remote Networking Assignments
worksheet.
Note: Ensure that you add the "s" to
"https" or the web browser cannot connect. HTTPS (HTTP over
SSL) provides a secure connection between your browser and the PIX Security
Appliance.
-
Leave the user name blank and enter the enable password found on
line B12 of the Internet Worksheet, then press
Enter.
-
Accept the security certificates (if they
appear).
-
When the next logon screen appears, enter the enable password again
and click OK to continue.
-
When the security warning screen appears, click
Always to accept the certificates and launch PIX Device
Manager (PDM).
Back to Top
Configure Fixup Protocol Rules
To configure fixup protocol rules on the firewall, follow these
steps:
-
Go to PDM > Configuration > System
Properties.
-
From the PDM home page, click Configuration, and
then click the System Properties tab.
-
From the Categories menu on the left side of the window, click
Advanced > Fixup.
-
To configure the fixup protocol rule, follow these
steps:
-
The list of fixup protocols is displayed in the right side of the
panel under Fixup Summary. Click Advanced > Fixup > ICMP
Error.
-
Fixup Summary will be replaced with ICMP Error. Check the
Enable NAT for ICMP error messages box.
-
Click Apply.
-
Click MGCP. The MGCP information appears in the
right side of the PDM Configuration panel.
-
Enter 2427 in the Low Port box under Port(s) To
Be Added.
-
Click Add.
-
Click Apply.
-
Click on PPTP in the tree
view.
-
Enter 1723 in the Low Port box under Port(s) To
Be Added.
-
Click Add.
-
On the same panel, enter 47 in the Low Port box
under Port(s) To Be Added.
-
Click Add.
-
Click Apply.
-
Click SMTP in the tree
view.
-
Enter 465 in the Low Port box under Port(s) To
Be Added.
-
Click Add.
-
Click Apply.
Note: In the Fixup Summary panel, the protocols that you changed will
now show the port number or enabled instead of saying disabled.
-
Click the Save icon at the top of the
panel.
-
When prompted to save the running configuration to flash memory,
click Apply.
Back to Top
Configure Access Control Lists
An access control list (ACL) lets you specify what type of traffic to
allow into an interface. By default, traffic that is not explicitly permitted
is denied.
Create an ACL to Control Incoming Traffic
Complete these steps to create ACLs on your device:
-
Go to PDM > Configuration.
-
On the PDM home page, click
Configuration.
-
On the Configuration page, ensure that the Access Rules tab is
displayed and that the Access Rules radio button is
selected.
-
Create an ACL rule to block all incoming traffic that is not sent
to the PIX.
-
The Rules menu will be accessible from the Configuration view.
Click Rules > Add.
-
When the Add Rule panel appears, select permit
from the drop-down list under Action.
-
Under Source Host/Network, select IP
Address.
-
For the Interface, select
outside.
-
Leave the IP address and Mask set to
0.0.0.0.
-
Under Protocol and Service, select
IP.
-
Under IP protocol, select
any.
-
For Syslog leave the box unchecked.
-
Under Destination Host/Network, select IP
Address.
-
For IP address, enter the IP address of the PIX found on line R12
of the Remote Network Addressing worksheet.
-
For the Mask, select 255.255.255.255 from the
drop-down list.
-
In the text box at the bottom of the Add Rule panel, enter a
descriptive name for this rule.
-
Click OK to save the rule.
-
Create an ACL rule to allow incoming web
traffic:
-
Click Rules > Insert
After.
-
Select permit from the drop-down list under
Action.
-
Under Source Host/Network, select IP
Address.
-
For the Interface, select
outside.
-
Leave the IP address and Mask set to
0.0.0.0.
-
Under Protocol and Service, select
TCP.
-
Under Service, select any.
-
For Syslog, leave the box unchecked.
-
Under Destination Host/Network, select IP
Address.
-
For IP address, enter the IP address of the PIX found on line R12
of the Remote Network Addressing worksheet.
-
For the Mask, select 255.255.255.255 from the
drop-down list.
-
In the text box at the bottom of the Add Rule panel, enter a
descriptive name for this rule.
-
Under Destination Port, select Service. Click
the details button (...) and select
www.
-
Click OK.
-
At the bottom of the Insert After Rule panel, enter a descriptive
name for this rule.
-
Click OK to save this rule.
-
Create an ACL rule to allow incoming secure web
traffic.
-
Click Rules > Insert
After.
-
Select permit from the drop-down list under
Action.
-
Under Source Host/Network, select IP
Address.
-
For the Interface, select
outside.
-
Leave the IP address and Mask set to
0.0.0.0.
-
Under Protocol and Service, select
TCP.
-
Under Source Port, select
www.
-
Under Destination Host/Network, select IP
Address.
-
For the Interface, select
inside.
-
Leave IP address and Mask set to 0.0.0.0.
-
Under Destination Port, select
https.
-
At the bottom of the Insert Rule After panel, enter a descriptive
name for this rule.
-
Click OK to save this rule.
-
Create an ACL rule to block incoming network broadcast traffic from
the Internet.
-
Click Rules > Insert
After.
-
Select deny from the drop-down list under
Action.
-
Under Source Host/Network, select IP
Address.
-
For the Interface, select
outside.
-
Leave the IP address and Mask set to
0.0.0.0.
-
Under Protocol and Service, select
IP.
-
Under IP protocol, select
any.
-
Under Destination Host/Network, select IP
Address.
-
For the Interface, select
inside.
-
Leave IP address and Mask set to
255.255.255.255.
-
At the bottom of the Insert Rule After panel, enter a descriptive
name for this rule.
-
Click OK to save this rule.
-
Create an ACL rule to allow incoming Secure Shell (SSH) traffic on
TCP.
-
Click Rules > Insert
After.
-
Select permit from the drop-down list under
Action.
-
Under Source Host/Network, select IP
Address.
-
For the Interface, select
outside.
-
Leave the IP address and Mask set to
0.0.0.0.
-
Under Protocol and Service, select
TCP.
-
Under Source Port select Service. Click the details button
(...) and select ssh.
-
Under Destination Host/Network, select IP
Address.
-
For the Interface, select
inside.
-
For IP address enter the IP address of the PIX found on line R12
of the Remote Network Addressing worksheet.
-
For the Mask, select 255.255.255.255 from the
drop-down list.
-
Under Destination Port, select Service. Click
the details button (...) and select
ssh.
-
At the bottom of the Insert Rule After panel, enter a descriptive
name for this rule.
-
Click OK to save this rule.
-
Click the Save icon at the top of the
panel.
-
When prompted to save the running configuration to flash memory,
click Apply.
-
Create an ACL rule to allow incoming Network Time Protocol traffic
on UCP port 123.
-
Click Rules > Insert
After.
-
Select permit from the drop-down list under
Action.
-
Under Source Host/Network, select IP
Address.
-
For the Interface, select
outside.
-
Leave the IP address and Mask set to
0.0.0.0.
-
Under Protocol and Service, select
UDP.
-
Under Source Port select Service. Click the details button
(...) and select ntp.
-
Under Destination Host/Network, select IP
Address.
-
For the Interface, select
inside.
-
For IP address enter the IP address of the PIX found on line R12
of the Remote Network Addressing worksheet.
-
For the Mask, select 255.255.255.255 from the
drop-down list.
-
Under Destination Port, select Service. Click
the details button (...) and select
ntp.
-
At the bottom of the Insert Rule After panel, enter a descriptive
name for this rule.
-
Click OK to save this rule.
-
Click the Save icon at the top of the
panel.
-
When prompted to save the running configuration to flash memory,
click Apply.
-
Create a rule to allow incoming time-exceeded ICMP messages on ICMP
Type.
-
Click the System Properties tab. From the tree
view on the left, select Administration.
-
Select ICMP.
-
When the ICMP information appears in the right side of the panel,
click Add.
-
When the Add ICMP Rule panel appears, select
time-exceeded from the ICMP Type drop-down list
.
-
For the Interface, select
inside.
-
For IP Address, enter
0.0.0.255.
-
For the Mask, select 255.255.255.255 from the
drop-down list.
-
Select permit from the drop-down list under
Action.
-
Click OK.
-
Create a rule to allow incoming traceroute ICMP messages on ICMP
Type.
-
Click Add.
-
For ICMP Type, choose
traceroute.
-
For the Interface, select
inside.
-
For IP Address, enter
0.0.0.255.
-
For the Mask, select 255.255.255.255 from the
drop-down list.
-
Select permit from the drop-down list under
Action.
-
Click OK.
-
Click Apply.
-
Click the Save icon at the top of the
panel.
-
When prompted to save the running configuration to flash memory,
click Apply.
Create Additional Security Rules
Now that you have created the rules for SSH, you need to create rules
for the PIX to recognize the sessions. To create the additional security rules,
follow these steps:
-
Create a rule for Telnet.
-
Click the System Properties tab. From the tree
view on the left, select Administration >
Password.
-
Under Telnet Password, enter cisco for the Old
Password.
-
Enter a strong password in the New Password field. For
information on how to create strong passwords, refer to
Password
Security.
-
Enter the password again to confirm.
-
Click Apply.
-
From the tree view, click
Telnet.
-
In the right side of the panel, click
Add.
-
When the Add Telnet Configuration window appears, select
inside from the Interface Name drop-down
list.
-
For the IP Address, enter
192.168.0.0.
-
For the Mask, select 255.255.0.0 from the
drop-down list.
-
Click OK.
-
Click Apply.
-
Create a rule for SSH.
-
In the tree view, click Secure
Shell.
-
For the IP Address, enter
192.168.0.0.
-
For the Mask, select 255.255.0.0 from the
drop-down list.
-
Click OK.
-
Click Apply.
-
Create a rule to allow NTP Authentication.
-
In the tree view, click
NTP.
-
On the right side of the panel, check Enable NTP
Authentication.
-
Click Add.
-
When the NTP Server Detail window appears, enter
129.6.15.28 for the IP Address.
-
For the Interface select
outside.
-
Check the Preferred box.
-
Click OK.
-
Click Add.
-
For the IP Address enter
129.6.15.28.
-
Select outside from the Interface drop-down
list.
-
Check the Preferred check
box.
-
Click OK.
-
Click Apply.
-
Click the Save icon at the top of the
panel.
-
When prompted to save the running configuration to flash memory,
click Apply.
Create Optional ACL Rules on the Inside Interface
If you need to allow certain types of VPN and email traffic through the
firewall, you can create additional ACL rules. Each ACL rule in this section is
optional. If you do not use VPN or have SMTP email traffic, you can skip this
section.
Note: The firewall denies all network traffic by default unless an ACL rule
explicitly permits traffic on a certain IP address or port.
-
If you use an SMTP email server, follow these steps to create an
ACL rule to allow email traffic:
-
On the Configuration page, click the Access
Rules tab, and then click the Access Rules radio
button.
-
Click Rules > Insert
After.
-
Select permit from the drop-down list under
Action.
-
Under Source Host/Network, select IP
Address.
-
For the Interface, select
inside.
-
Leave IP address and Mask set to 0.0.0.0.
-
Under Protocol and Service, select
TCP.
-
Under Source Port, click, the details button
(...) and select smtp.
-
Under Destination Host/Network, select IP
Address.
-
For the Interface, select
outside.
-
For IP address, enter the IP address of the PIX found on line R12
of the Remote Network Addressing worksheet.
-
For the Mask, select 255.255.255.255 from the
drop-down list.
-
Under Destination Port, select Service, click
the details button (...), and then select
smtp.
-
In the text box at the bottom of the panel, enter a descriptive
name for this rule.
-
Click OK to save the rule.
-
Check the Firewall Worksheet line F5, if you have PPTP VPN create
two rules to allow PPTP VPN traffic. Follow these steps for the first
rule:
-
On the Configuration page, click the Access
Rules tab, and then click the Access Rules radio
button.
-
Click Rules > Insert
After.
-
Select permit from the drop-down list under
Action.
-
Under Source Host/Network, select IP
Address.
-
For the Interface, select
inside.
-
Leave IP address and Mask set to 0.0.0.0.
-
Under Protocol and Service, select
TCP.
-
Under Source Port, click the details button
(...) and select pptp.
-
Under Destination Host/Network, select IP
Address.
-
For the Interface, select
outside.
-
For IP address, enter the IP address of the PIX found on line R12
of the Remote Network Addressing worksheet.
-
For the Mask, select 255.255.255.255 from the
drop-down list.
-
Under Destination Port, select Service, click
the details button (...), and then select
pptp.
-
In the text box at the bottom of the panel, enter a descriptive
name for this rule.
-
Click OK to save the rule.
-
Follow these steps to create the second PPTP
rule:
-
On the Configuration page, click the Access
Rules tab, and then click the Access Rules radio
button.
-
Click Rules > Insert
After.
-
Select permit from the drop-down list under
Action.
-
Under Source Host/Network, select IP
Address.
-
For the Interface, select
inside.
-
Leave IP address and Mask set to 0.0.0.0.
-
Under Protocol and Service, select
IP.
-
Under Source Port, click the details button
(...) and select pptp.
-
Under Destination Host/Network, select IP
Address.
-
For the Interface, select
outside.
-
For IP address, enter the IP address of the PIX found on line R12
of the Remote Network Addressing worksheet.
-
For the Mask, select 255.255.255.255 from the
drop-down list.
-
Under Destination Port, select Service, click
the details button (...), and select
pptp.
-
In the text box at the bottom of the panel, enter a descriptive
name for this rule.
-
Click OK to save the rule.
-
Click Apply.
-
Click the Save icon at the top of the
panel.
-
When prompted to save the running configuration to flash memory,
click Apply.
Create ACL Rules for the Outside Interface
To create an ACL on the outside interface to limit unsolicited internet
traffic, follow these steps:
-
Click the System Properties
tab.
-
From the tree view on the left, click
Administration.
-
Click Anti-Spoofing.
-
In the Anti-Spoofing area, select the inside
interface.
-
Click Enable.
-
Select the outside interface, and then click
Enable.
-
Click Apply.
-
Click the Save icon at the top of the
panel.
-
When prompted to save the running configuration to flash memory,
click Apply.
Back to Top
Configure Network Address Translation
Network Address Translation (NAT) uses an internal address scheme to
provide additional security for your network. In order to set up NAT, you need
to know whether your connection uses a static or dynamic IP address. Refer to
the Internet Worksheet (B45, B46) for this information.
Set Up NAT with a Dynamic IP Address
If your connection uses a dynamic address, follow these steps to set up
NAT with a dynamic IP address:
-
Click the Translation Rules
tab.
-
Click the Translation Rules
button.
-
Click Rules > Add.
-
Under Original Host/Network, select inside from
the Interface drop-down list.
-
For the IP Address, enter
0.0.0.0.
-
For the Mask, select 0.0.0.0 from the drop-down
list.
-
In the Translate address on interface, select
outside.
-
In the Translate Address To section, click
Dynamic.
-
In the Address Pool box, select the address pool you created on
your worksheet.
-
Click OK.
-
Click Apply.
-
Click the Save icon at the top of the
panel.
-
When prompted to save the running configuration to flash memory,
click Apply.
Set Up NAT with a Static IP Address
To set up NAT with a static IP address, follow these
steps:
-
Click Rules > Add.
-
Under Original Host/Network, select inside from
the Interface drop-down list.
-
For IP address, enter the IP address of the PIX found on line R12
of the Remote Network Addressing worksheet.
-
For the Mask, select 255.255.255.255 from the
drop-down list.
-
In the Translate address on interface, select
outside.
-
In the Translate Address To section, click
Static.
-
For IP address, enter the IP address of the PIX found on line R12
of the Remote Network Addressing worksheet.
-
Click OK.
-
Click Apply.
-
Click the Save icon at the top of the
panel.
-
When prompted to save the running configuration to flash memory,
click Apply.
Back to Top
Set Up Port Address Translation
If you have servers in your network that users outside of your network
need to access, you must set up Port Address Translation (PAT).
You can set up PAT for a variety of internal servers. Remember that PAT
is only needed if the server is physically located inside your
network. Use the table to find the worksheet reference you need to
verify if you have each type of server.
Server Type
|
Worksheet Reference
|
Internal email server
|
Firewall Worksheet line F1
|
Internal web server
|
Firewall Worksheet line F4
|
Microsoft PPTP VPN server
|
Firewall Worksheet line F5
|
You need to create one PAT rule for each server that you want to make
available outside of your network.
You also need to ensure that you have set up the appropriate access
rules to allow traffic from the server to leave the network. See
Create Optional ACL Rules on the Inside
Interface for more information.
To set up a new PAT rule, follow these steps:
-
From the Translation Rules tab, click Rules >
Add.
-
Under Original Host/Network, select inside from
the Interface drop-down list.
-
For the IP address, enter the IP Address for the server. See the
appropriate line on the Firewall Worksheet indicated in the
table of server types.
-
For the Mask, select 255.255.255.255 from the
drop-down list.
-
In the Translate address on interface, select
outside.
-
In the Translate Address To section, click
Static.
-
For IP address, enter the IP address of the PIX found on line R12
of the Remote Network Addressing worksheet.
-
Check the Redirect Port check box.
-
Choose TCP or UDP and enter the
port number in the Original Port and Translated Port fields. Refer to the table
for a listing of common ports.
Service
|
Port Type
|
Port Number (s)
|
HTTP (Internet)
|
TCP
|
80
|
HTTPS
|
TCP
|
443
|
SMTP
|
TCP
|
25, 465
|
PPTP VPN
|
TCP
|
1723
|
PPTP VPN
|
IP
|
47
|
-
Click OK.
-
Click Apply.
-
Repeat these steps for each internal server that needs to be
accessed from the outside.
-
Click the Save icon at the top of the
panel.
-
When prompted to save the running configuration to flash memory,
click Apply.
Back to Top
Next Step
You have completed the set up of the firewall on your PIX.
To configure a VPN on the PIX, proceed to
Configure
VPN on the PIX Security Appliance.
To make further changes to your PIX, refer to the
PIX
Support Page.
To configure other devices in your network, refer to the
Configuration
Overview Page.
Back to Top
Troubleshoot the Procedure
This section provides information about common problems that you may
encounter. If this information does not solve your problem, contact the
SMB
Technical Assistance Center (SMB TAC) for assistance.
Problem
|
Cause(s) and Suggested Solution(s)
|
I added a new rule to the firewall, and now I cannot access the
PIX Security Appliance.
|
Contact the
SMB
TAC for assistance.
|
Back to Top
Related Information
|
|