20
NATs & Firewalls The General SIP Proxy Firewall Prepared for: Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB [email protected] © 2003 Intertex Data AB 1

NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

  • View
    216

  • Download
    0

Embed Size (px)

Citation preview

Page 1: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

NATs & Firewalls

The General SIP Proxy Firewall

Prepared for: Spring VON 2003

By: Karl Erik Ståhl

President Intertex Data AB

Chairman Ingate Systems AB

[email protected]

© 2003 Intertex Data AB 1

Page 2: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

IP PhoneIP Phone

IP Phone

IP Phone

Internet

SOHO LANEnterprise LAN

We have a “new” network

XP

PIM

But do we use it for person to person communication?

Everyone has a connection…

Operator Network

Page 3: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

© 2003 Ingate Systems AB© 2003 Intertex Data AB 3

VoIP as we have seen it…

PSTN

But no connectivity between the IP clouds!

Europe

IP

US

VPNTunnel

IP

Gateway

Gateway

Gateway

TollBypass

SOFTSWITCH

MGCP

Page 4: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

© 2003 Ingate Systems AB© 2003 Intertex Data AB 4

What about universal connectivity?

Wouldn’t that be fine?

Black Phone

RJ45

LAN Intranet Internet

IP Phone

PSTN

RJ11

Page 5: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

IP PhoneIP Phone

IP Phone

IP Phone

PSTN

SIP/PSTNGateway

Internet

SOHO LANBusiness LAN

SIPServer

IAP

XP

PIM

Firewall/NAT problems!

DSLCableMTU

Operator network with NAT

NATFirewall

NAT

Status until recently:SIP is the Protocol for IP Communication Person to Person,BUT IT DOES NOT REACH THE EDGE!

So, why don’t we just connect?

Page 6: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

© 2003 Ingate Systems AB© 2003 Intertex Data AB 6

What is the difference?

Typical Internet protocol (SMTP, HTTP…)

Internet

HOSTSERVER

SIP (and H.323…) connects person to person

Internet

PERSONPERSON

Locate the person - Set up a session - Open real time media streams

Page 7: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

© 2003 Ingate Systems AB© 2003 Intertex Data AB 7

SIP Firewall Problems

Firewall Problems:

Sessions initiated from outside the firewall

- OK, open port 5060, but…

Media streams on dynamically allocated port numbers

- Ooops… !Even with public IP addresses inside

Page 8: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

© 2003 Ingate Systems AB© 2003 Intertex Data AB 8

SIP NAT/PAT Problems

NAT & PAT Problems:Where is the device?

- Registration/location function

Private IP addresses and ports in SIP messages

- Rewrite with globally routable addresses

IP address and port of media stream has to be modified

- NAT engine has to be dynamically controlled

Worse with privateIP addresses inside

Page 9: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

© 2003 Ingate Systems AB© 2003 Intertex Data AB 9

Suggested Solutions

Dynamically controlled Firewall/NATs

Midcom: By Firewall Control Proxy (IETF work)

uPnP: By the client (Windows)

SIP aware Firewall/NATs (SIP Proxy + Registrar)

General, handles complex scenarios

[Intertex (SOHO), Ingate (enterprise), …]

SIP aware Firewall/NATs (SIP ALG – non Proxy)

TLS not possible

STUN - Can cope with certain types of existing NATs

SIP clients need to get STUN into their SIP stacks

Requires STUN servers on the net, RTCP is lost

Tunnelling - Connects SIP clients to an operator or a corporate LAN

Requires ALG for each client with NATed address

Tunnels by IPSec or proprietary

Page 10: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

© 2003 Ingate Systems AB© 2003 Intertex Data AB 10

Adding General SIP Traversal to a Firewall

Important components:Firewall & NAT

Dynamic Firewall Engine

SIPProxy

SIP Proxy Server, controlling the firewall

UserLocation

SIP Registrar, user location information

FirewallControl

Protocol Communication between

SIP Proxy and firewall

Page 11: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

Firewall/NAT problems!

Firewall/NAT SIP transparency!

Office or home LAN

IP PhoneIP Phone

IP Phone

IP Phone

SIPServer PSTN

SIP/PSTNGateway

Operator network with NAT

Internet

NATFirewall

NAT

Enterprise LAN

DSLCableMTU

DMZinGateSIParator

SIP Enabling the Private Networks

inGateFirewall

IP Phone IP Phone

IP Phone

SELECT

SET ALT CFG E T 1

A I

R

U S B

E T 2

W A N

T X D

R X D

ADR CFG DHP RST LQ

TX RX

SC IX66

IAP

Page 12: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

© 2003 Ingate Systems AB© 2003 Intertex Data AB 12

What have we got?

Important components:Firewall & NAT

Dynamic Firewall Engine

SIPProxy

SIP Proxy Server, controlling the firewall

UserLocation

SIP Registrar, user location information

FirewallControl

Protocol Communication between

SIP Proxy and firewall

In the Ingate and Intertex products:

You’ve got a SIP server!Use it just for firewall traversalAND/OR as your

- SIP Server - Outgoing proxy- Inbound proxy

Page 13: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

InternetJust Another Internet Service…

Enterprise LAN

XP

inGateFirewall

PSTNSIP/PSTNGateway

DNSSRV

DMZinGateSIParator

XP

Ingate Linköping LAN

IX66

Intertex Stockholm LAN

Sweden

IX66

FWD Booth #301

IX66SIP Forum Booth #210 USA

Sweden

IX66

Home Office UsersSOHO LAN

IX66

XP

San Jose

Booth#520

Page 14: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

14

IP Communications Using IP NetworksIP Communications Using IP Networks

• Intranet IP VPN with IP communications• Domestic and global IP communications• PBX and PSTN – E.164 resolution

Customer Customer PremisesPremises

PBX PSTN Phone

ManagedServices

Router

Vmail OSS

SIP Phone

WorldComPSTN

DialingPlans

Network GWY

Conf

PSTN Phone

IM

IN

EnterpriseGateway

SIP Routing

Firewall

SIP Server

IP VPN

Global IP Comm

Intranet IP Comm

…other…

Many call routing options:• Private/Public IP address• DNS and DNS SRV records• SIP aware NAT/PAT servers

Henry Sinnreich 4/10/2002

WorldComPublic

IP Network

Page 15: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

15

IP Communications Using IP NetworksIP Communications Using IP Networks

PBX PSTN Phone

ManagedServices

Router

Vmail OSS

SIP Phone

WorldComPSTN

DialingPlans

Network GWY

Conf

PSTN Phone

IM

IN

EnterpriseGateway

SIP Routing

Firewall

SIP Server

IP VPN

Global IP Comm

Intranet IP Comm

…other…

Integration with existing phones

SIP Capable FirewallIngate and IntertexFirst through SIT

Customer Customer PremisesPremises

No IP PBX Needed!

Enhanced Functionality

Enterprise LAN

WorldComPublic

IP Network

Page 16: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

Firewall

PresenceIM

GreenwichEdge Proxy

DMZMicrosoft GreenwichHome Server:PresenceIMAudioVideoData Col.

TLS

Page 17: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

© 2003 Ingate Systems AB© 2003 Intertex Data AB 17

Product Examples – Ingate Systems AB

Complete Firewalls Add-on to Existing Firewalls

Firewall & NAT/PAT SIP Proxy SIP Registrar

Enterprise Products

DMZ

Existing Firewall

SIParator

Page 18: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

© 2003 Ingate Systems AB© 2003 Intertex Data AB 18

Product Examples – Intertex Data AB

IX66 Internet Gate with or withoutADSL modem built-in

OEM as: Telia SurfinBird Gate PowerBit SafeGateReview at: www.adslguide.org.uk/hardware/reviews/2002/q1/intertex_ix66-edflc.asp

SOHO Products

Page 19: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

© 2003 Ingate Systems AB© 2003 Intertex Data AB 19

The Intertex IX66 Internet Gate

A closer look

Firewall & NAT/PAT Router SIP Proxy and Registrar DHCP Server and Client WEB Server for configuration Smart Card Reader for security applications Optional 802.11b Wireless Lan SIP Appliance Control, LAC via expansion port

SELECT

SET ALT CFG E T 1

A I

R

U S B

E T 2

W A N

T X D

R X D

ADR CFG DHP RST LQ

TX RX

SC

Optional ADSLand Splitter Built-in

Page 20: NATs & Firewalls The General SIP Proxy Firewall Prepared for:Spring VON 2003 By: Karl Erik Ståhl President Intertex Data AB Chairman Ingate Systems AB

© 2003 Ingate Systems AB© 2003 Intertex Data AB 20

SIP Capable Firewalls!

Ingate Systems ABwww.ingate.comBox 10013, Slakthusplan 4 SE-121 26 Stockholm, SwedenCEO Olle [email protected] Tel +46 8 6007750

Intertex Data ABwww.intertex.seRissneleden 45 SE-174 44 Sundbyberg, SwedenPresident Karl Erik Stå[email protected] Tel +46 8 6282828