Specifications
Firewall&RouterConfiguration
Introduction
Undoubtedly, the best place for 3CX Phone System is on a machine behind a firewall. This
configurationiseasierandmore secure. If youonlyusePSTNlinesanddonotplan to have any
remoteextensions,youdon’tevenneedtomakeanychangestoyourfirewallconfiguration.
However,ifyouplantouseremoteextensionsoraVoIPProvider,youwillhavetomakechangesto
yourfirewallconfiguration.Inorderfor3CXPhoneSystemtocommunicatesuccessfullywithVoIP
providersandRemoteExtensions,yourfirewall/routerdevicemustbe correctlyconfiguredforSIP
operation.
YoucanlearnmoreaboutVoIPandFirewallsinthisarticle:http://www.3cx.com/blog/voip
howto/firewallnatpatstun/
SIPALG
Tomaximizeyourchancesofsuccess,makesureyouchooseadevicethatdoesnotimplementa
SIPHelperorSIPALG(ApplicationLayerGateway),orchooseadeviceonwhichSIPALGcanbe
disabled.ThefollowinglinksareexampleshowtoswitchoffALGonpopularrouters:
● HowtoDisableSIPALGonFortinet/FortiGate
● HowtoDisableSIPALGonNetgearRouters
● HowtoDisableSIPALGonThomsonRouters
ConfigurationforVoIPproviderorSIPTrunk
If you intend to use a VoIP Provider & the 3CX WebRTC Gateway you will need to open the
followingportstoallow3CXPhoneSystemtocommunicatewiththeVoIPProvider:
● Port5060(UDP)forSIPcommunications(send&receive)MUSTBESTATICALLY
MAPPED.Seesamplefirewallconfigurationathttp://www.3cx.com/blog/voiphowto/linksys
routerconfiguration/
● Port5061(TCP)forTLScommunications–IfusingsecureSiP.
● Port90009199(orhigher)(UDP)(send&receive)forRTPcommunications,whichcontain
theactualcall.Eachcallrequires2RTPports,onetocontroltocallandoneforthecalldata.
Therefore,youmustopentwiceasmanyportsasyouwishtosupportsimultaneouscallsvia
the VoIP provider. For example, if you want to allow 4 people to make calls via the VoIP
providersimultaneously,youmustopenport9000to9007.
Notethattheaboveportrangesarethedefaultportsin3CXPhoneSystem.Youcanadjustthese
portsfromthe3CXManagementConsole,inthe“Settings”>“Network”node.Fromthisnode,
youcanconfiguretheportstobeusedforinternalcalls,andtheportstobeusedforexternalcalls
beingmadeviaaVoIPproviderorcallstoandfromaremoteextension.