Table Of Contents
Restrictions for Firewall Support for SIP
Information About Firewall Support for SIP
SIP (Session Initiation Protocol)
Firewall for SIP Functionality Description
SIP Message Treatment by the Firewall
How to Configure Your Firewall for SIP
Configuring Firewall for SIP Support
Verifying Firewall for SIP Support
Monitoring Firewall for SIP Support
Configuration Examples for Firewall SIP Support
Firewall and SIP Configuration Example
Firewall Support for SIP
The Firewall Support for SIP feature integrates Cisco IOS firewalls, Voice over IP (VoIP) protocol, and Session Initiation Protocol (SIP) within a Cisco IOS-based platform, enabling better network convergence.
Note
Some Cisco IOS versions earlier than 12.2(11)YU and 12.2(15)T may accept the configuration commands for SIP that are shown in this document; however, those earlier versions will not function properly.
Feature Specifications for Firewall Support for SIP
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Restrictions for Firewall Support for SIP
•
Information About Firewall Support for SIP
•
How to Configure Your Firewall for SIP
•
Configuration Examples for Firewall SIP Support
Restrictions for Firewall Support for SIP
DNS Name Resolution
Although SIP methods can have Domain Name System (DNS) names instead of raw IP addresses, this feature currently does not support DNS names.
SIP UDP Support Only
This feature supports only the SIP User Datagram Protocol (UDP) format for signaling; the TCP format is not supported.
SIP Abbreviated Header
This feature does not support the compact form of SIP header fields.
Earlier Versions of Cisco IOS
Some Cisco IOS versions earlier than 12.2(11)YU and 12.2(15)T may accept the configuration commands for SIP that are shown in this document; however, those earlier versions will not function properly.
Information About Firewall Support for SIP
To configure the Cisco IOS Firewall Support for SIP feature, you must understand the following concepts:
•
Firewall for SIP Functionality Description
•
SIP Message Treatment by the Firewall
Firewall and SIP Overviews
This section contains the following concepts:
•
SIP (Session Initiation Protocol)
Cisco IOS Firewall
The Cisco IOS firewall extends the concept of static access control lists (ACLs) by introducing dynamic ACL entries that open on the basis of the necessary application ports on a specific application and close these ports at the end of the application session. The Cisco IOS firewall achieves this functionality by inspecting the application data, checking for conformance of the application protocol, extracting the relevant port information to create the dynamic ACL entries, and closing these ports at the end of the session. The Cisco IOS firewall is designed to easily allow a new application inspection whenever support is needed.
SIP (Session Initiation Protocol)
SIP is an ASCII-based, application-layer control protocol that can be used to establish, maintain, and terminate calls between two or more endpoints. Like other VoIP protocols, SIP is designed to address the functions of signaling and session management within a packet telephony network. Signaling allows call information to be carried across network boundaries. Session management provides the ability to control the attributes of an end-to-end call.
SIP Messages
SIP has two types of messages—requests and responses—that have the following generic structure:
generic-message = Request-Line | Status-Line
* ( general-header | request-header
| response-header | entity-header )
CRLF
[ message-body]
Note
Any of these message components may contain embedded IP addresses.
Table 30 identifies the six available SIP request messages.
Table 31 identifies the available SIP response methods.
Firewall for SIP Functionality Description
The Firewall for SIP Support feature allows SIP signaling requests to traverse directly between gateways or through a series of proxies to the destination gateway or phone. After the initial request, if the Record-Route header field is not used, subsequent requests can traverse directly to the destination gateway address as specified in the Contact header field. Thus, the Cisco IOS firewall is aware of all surrounding proxies and gateways and allows the following functionality:
•
SIP signaling responses can travel the same path as SIP signaling requests.
•
Subsequent signaling requests can travel directly to the endpoint (destination gateway).
•
Media endpoints can exchange data between each other.
See Figure 28 for a sample topology that displays these functionalities.
Figure 28 Cisco IOS Firewall for SIP Awareness Sample Topology
SIP Message Treatment by the Firewall
See Table 32 for information on the treatment of SIP methods by the Cisco IOS firewall.
Call Database
A call database, which contains the details of a call leg, is maintained for all call flows. A call database is created and maintained because there can be numerous signaling sessions for each call. Table 33 identifies the information available in the call database.
How to Configure Your Firewall for SIP
To configure a Cisco IOS Firewall for SIP support, perform the following tasks:
•
Configuring Firewall for SIP Support (required)
•
Verifying Firewall for SIP Support (optional)
•
Monitoring Firewall for SIP Support (optional)
Configuring Firewall for SIP Support
To enable a firewall to support SIP, use the following commands.
Prerequisite
Before you configure Cisco IOS firewall support for SIP on your router, you first need to configure access lists, whose purpose normally is to block SIP traffic from unprotected networks for which the firewall will create temporary openings for specific traffic.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
ip inspect name inspection-name sip [alert {on | off}] [audit-trail {on | off}]
[timeout seconds]4.
interface type number
5.
ip inspect inspection-name {in | out}
6.
Repeat Steps 3 through 5 (Optional)
DETAILED STEPS
Verifying Firewall for SIP Support
To verify Cisco IOS firewall session information, perform the following optional steps:
SUMMARY STEPS
1.
enable
2.
show ip inspect name inspection-name
3.
show ip inspect session [detail]
4.
show ip access-list
DETAILED STEPS
Monitoring Firewall for SIP Support
To monitor firewall events, perform the following optional steps:
Note
Effective with Cisco IOS Release 12.4(20)T, the debug ip inspect command is replaced by the debug policy-firewall command. See the Cisco IOS Debug Command Reference for more information.
SUMMARY STEPS
1.
enable
2.
debug ip inspect sip
DETAILED STEPS
Configuration Examples for Firewall SIP Support
This section provides the following configuration example:
•
Firewall and SIP Configuration Example
Firewall and SIP Configuration Example
The following example shows how to allow outside initiated calls and internal calls. For outside initiated calls, an ACL needs to be punched to allow for the traffic from the initial signaling packet from outside. Subsequent signaling and media channels will be allowed by the inspection module.
ip inspect name voip sipinterface FastEthernet0/0ip inspect voip in!!interface FastEthernet0/1ip inspect voip inip access-group 100 in!!access-list 100 permit udp host <gw ip> any eq 5060access-list 100 permit udp host <proxy ip> any eq 5060access-list deny ip any anyAdditional References
Related Documents
Related Topic Document TitleCisco IOS firewall information and configuration tasks
"Configuring Context-Based Access Control"
Cisco IOS firewall commands
Standards
MIBs
MIBs MIBs LinkNone
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
RFCs
Technical Assistance
Command Reference
The following commands are introduced or modified in the feature or features documented in this module. For information about these commands, see the Cisco IOS Security Command Reference at http://www.cisco.com/en/US/docs/ios/security/command/reference/sec_book.html. For information about all Cisco IOS commands, go to the Command Lookup Tool at http://tools.cisco.com/Support/CLILookup or to the Cisco IOS Master Commands List.
•
debug ip inspect
•
ip inspect name
CCDE, CCENT, Cisco Eos, Cisco HealthPresence, the Cisco logo, Cisco Lumin, Cisco Nexus, Cisco StadiumVision, Cisco TelePresence, Cisco WebEx, DCE, and Welcome to the Human Network are trademarks; Changing the Way We Work, Live, Play, and Learn and Cisco Store are service marks; and Access Registrar, Aironet, AsyncOS, Bringing the Meeting To You, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, CCSP, CCVP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Collaboration Without Limitation, EtherFast, EtherSwitch, Event Center, Fast Step, Follow Me Browsing, FormShare, GigaDrive, HomeLink, Internet Quotient, IOS, iPhone, iQuick Study, IronPort, the IronPort logo, LightStream, Linksys, MediaTone, MeetingPlace, MeetingPlace Chime Sound, MGX, Networkers, Networking Academy, Network Registrar, PCNow, PIX, PowerPanels, ProConnect, ScriptShare, SenderBase, SMARTnet, Spectrum Expert, StackWise, The Fastest Way to Increase Your Internet Quotient, TransPath, WebEx, and the WebEx logo are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries.
All other trademarks mentioned in this document or website are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0812R)
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
© 2007 Cisco Systems, Inc. All rights reserved.


