Question

Problem using Asterisk VOIP with Juniper SSG

Asked by: SW111

We are having a problem setting an Asterisk on Ubuntu machine via Juniper SSG.

The VOIP machine is using Ubuntu & Asterisk & FreePBX. It is connected to DMZ on the Juniper SSG.

There are other machines connected to the SSG's DMZ port. Currently we have only 1 public IP address (say 1.1.1.1). The DMZ itself is setup internally as 53.0.0.0. Therefore, we're using the VIP function of SSG. The other machines is working okay using this setup, taking up port 80.

On the non-technical background, we're working with 2 vendors on this setup. The VOIP vendor and the firewall vendor.

The problem is that the VOIP vendor wants port 22 to be available online so he can setup the system online and also confirm that the other ports needed by asterisk is available online. He had success connecting to the machine via VPN, so he claimed that the firewall guy has not setup the VIP correctly to allow him access port 22 on the Ubuntu-VOIP  machine.

On the other hand, the network guy has already opened ports to other machines using the same setup. These machines are accessible online by typing http://1.1.1.1/setup.html on a remote browser. So it is unlikely that he messed up the setup to the ubuntu machine. And so naturally, he's claiming the voip guy must have done something wrong on the voip machine.

Naturally, I'm stuck in between the two vendors. Neither of them seems to know how to find out if the ports' actually been opened. The voip guy claimed the ports on his machines are open since it is accessible via vpn. The network guy claimed the ports on ssg are open since its' the exact same setup as the other machines.

What do I do? In between these two, I've spend thousands of dollars and about 9 months of development and deployment times. We're not a big company (obviously) and havent got an internal IT staff. So whatever these two says, I try to work with. If I ditch this project, we wont have enough budget to buy a 'proper' VOIP solution that is built in to our PBX. Not that that wont come with problems...

Thanks in advance for your help.






This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-05-30 at 05:13:56ID24450325
Tags

VOIP

,

Asterisk

,

Juniper

,

SSG

,

Firewall

Topics

Voice Over IP

,

Asterisk Open Source Telephony

,

Virtual Private Networking (VPN)

Participating Experts
1
Points
500
Comments
11

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Getting started with VoIP & Asterisk
    Hello All, I am setting up a small asterisk server with a few telephones so I can play around with VoIP. if it is stable enough, i would like to change my entire office to VoIP. I have been studying on the technology, and I understand the basics and I can properly install ...
  2. Nokia E51 and Asterisk VoIP
    Hi, I have a Nokia E51 and I am trying to get it to connect to my Asterisk VoIP Server. I have looked around on the internet to see how others have connected it, however I cannot get it to work. It seems no matter what I try I get the a SIP registration error 401 followed b...
  3. Nokia E51, VoIP, Asterisk
    Hi, Outbound calls are working perfect on VoIP. However, incoming calls do not work. When an incoming call from a outside line are made to the VOIP number. The callers phone ring. The nokia E51 receiver of the call, shows the incoming call on the display, however when a ...
  4. VOIP / Asterisk Fail-Over Possibilities?
    I am wondering about fail-over capability with VOIP, in an asterisk environment and SIP peers or UA devices, across the WAN or internet. I want to eventually have fail-over in case the main internet connection that my asterisk server is on, goes down. I was hoping to do thi...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: deimarkPosted on 2009-05-30 at 10:14:15ID: 24509653

If its the port 22 thats causing the problem, then create a VIP service for something different, ie port 222 and map that to 22 on the internal host.

So the guy will need to make sure his SSH client is talking over 222.

Port 22 is a port used for on box SSH access and unless you change this local port for SSH access or the port that the customer uses, you will get conflicts here and the SSH will fail.

 

by: SW111Posted on 2009-05-30 at 21:45:40ID: 24511458

Thanks for your reply Deimark.

The VOIP guy did ask us to try port 2222 also, in suspicion that the SSG is also using port 22. Is this along the same line/solution with your suggestion?

Anyhow, the Network guy did try free-ing port 2222 but it didnt work either.

Is there anyways I can check (perhaps via logs) if the machine or SSG is passing the data for this port (22 or 2222)?

 

by: deimarkPosted on 2009-06-01 at 00:51:54ID: 24515592

What to try here is is follow the KB article here for creating a VIP.
http://kb.juniper.net/KB4740

Your firewall guy already knows some of this as you already have a working VIP but this may help a bit more as well.

Under step 8 I would enter the following info:

Virtual IP <whatever you already have, ie 1.1.1.1>
Virtual port 2222
Map to service SSH (port 22)
Map to IP <ip of VoIP server>

This will do the same as the VIP you have for port 80 (by the way, I would not use port 80 if you can avoid it, create a self signed cert and use SSL, its more secure)

The firewall will accept connections to is VIP on port 2222 and then forward on those packets to the VoIP server on port 22 and thus resolving the issues.

Your firewall guy should know that he can search through the logs as and when they occur, but you need to make sure that the rules you are trying to log on, do actually have "log" enabled.  Simple thing, but it can be overlooked on occasion.

ALso, running a "debug flow basic" on the firewall, with appropriate flow filters could show where teh packets were going, but the set up of a VIP above would be my 1st port of call though.

HTH

 

by: SW111Posted on 2009-06-01 at 00:58:03ID: 31586941

Can't actually test this anytime soon (would have to wait 2-3 weeks before we can try this as were overwhelmed with other work right now. But Thanks very much for your input. I remember you from when we started building our firewall. If we stumble into problem, i'll post again. I hope I get your attention again then.

 

by: SW111Posted on 2009-06-01 at 01:50:41ID: 24515807

Deimark,
Can I ask a question I missed before?

The map to service part was actually a custom map created by my network guy. So instead of just port 2222, he also has port 5060 and some other ports needed by the VOIP guy. (This was created under Policy>Services>Custom)

But when he added this service to the "map to service" field, I saw that the "Virtual Port" field immidiately changes to 5060 (which is the service name: VOIP (5060)).

Do you think this is the problem? Should he have created different services for each VIP port?

Another strange part is that the VOIP guy wanted port 10000 to 20000 for VOIP, but in SSG we're supposed to specify UDP or TCP. So we specify for both.

 

by: deimarkPosted on 2009-06-01 at 02:10:56ID: 24515884

Do you think this is the problem? Should he have created different services for each VIP port?

VoIP 5060 is the common port as used by SIP.  Normally, its UDP but can be sent over TCP bud.  At the mo, as long as port 5060 is forwarded to the asterisk box, then it doesnt really matter what its called.

What you may have here is that there is al;ready a service for 5060 and you created a new one.  The duplication is untidy, but as long as 5060 is forwarded,its all good.


Another strange part is that the VOIP guy wanted port 10000 to 20000 for VOIP, but in SSG we're supposed to specify UDP or TCP. So we specify for both.

I assume that the ports above are for the RTP (ie the media of the call, the voice traffic).

If yes, then as long as the SIP ALG is enabled, this should just "work" as the ALG will dynamically open and close RTP ports depending on the call set up etc as part of the SIP request.  ie only calls that the asterisk box has arranged (or know about) will be allowed in.  This is preferred.

However, if you wanna make 100% sure,then you can simply create a new service with a range of ports on UDP (RTP is normally over UDP) and then allow the packets in, but this is NOT recommended, as you will effectively leave a huge gaping hole in your firewall for all sorts of UDP traffic on those ports to come in.  As well as you won't be able to use a VIP for it

I would double check the SIP ALG to make sure its on at Security > ALG > Basic, as this should be all that you need.

HTH

 

by: SW111Posted on 2009-06-01 at 03:24:07ID: 24516150

Actually, I meant: Is it going to be a problem if we set a custom service to open the following ports at the same time (i.e, being defined in one screen). Say: My-VOIP to open UDP 10000-20000, TCP 10000-20000 and TCP 5060 and TCP 2222.
This was what my network guy did.

Or should we have set, instead:
My-VOIP-1: TCP 2222 (for the SSH)
My-VOIP-2: TCP5060 (for the VOIP)
My-VOIP-3: TCP10000-20000 (also for VOIP. I guess as you said above, the RTP stuff?)
Then we go to VIP and set a SEPARATE VIP for each of these instead of just My-VOIP with all the services in one bundle? (The part that I dont understand with doing it as one bundle is that the VIP port automatically becomes 5060. what happened to the other ports we've specified?)

Also, this is the second time I came across "ALG" when trying to find a fix. The first time around, My network guy says it shouldnt be a problem. He hasnt got time to try it yet, and I'm too afraid to change the setting by myself. We'll definetely try this one too.

 

by: SW111Posted on 2009-06-01 at 03:31:19ID: 24516173

Actually, I meant: Is it going to be a problem if we set a custom service to open the following ports at the same time (i.e, being defined in one screen). Say: My-VOIP to open UDP 10000-20000, TCP 10000-20000 and TCP 5060 and TCP 2222.
This was what my network guy did.

Or should we have set, instead:
My-VOIP-1: TCP 2222 (for the SSH)
My-VOIP-2: TCP5060 (for the VOIP)
My-VOIP-3: TCP10000-20000 (also for VOIP. I guess as you said above, the RTP stuff?)
Then we go to VIP and set a SEPARATE VIP for each of these instead of just My-VOIP with all the services in one bundle? (The part that I dont understand with doing it as one bundle is that the VIP port automatically becomes 5060. what happened to the other ports we've specified?)

Also, this is the second time I came across "ALG" when trying to find a fix. The first time around, My network guy says it shouldnt be a problem. He hasnt got time to try it yet, and I'm too afraid to change the setting by myself. We'll definetely try this one too.

 

by: deimarkPosted on 2009-06-01 at 03:38:10ID: 24516209

Hiya

I understood that from the info above, you have only 1 public IP, ie 1.1.1.1, so this is what you created as the VIP?

Of course if you had more IPs then feel free to allocate them here, however I will naswer your queries inline here:

My-VOIP-1: TCP 2222 (for the SSH)

Technically, this is not needed, as within the VIP setting, you are just adding in a port.  To allow or deny the traffic, then a security rule with the destination of the VIP is needed to allow or deny the access, same as the current HTTP rule for the port 80 VIP

My-VOIP-2: TCP5060 (for the VOIP)

As above, if a service on 5060 is already there, then you dont need a new service.  Normally SIP on 5060 uses UDP, its worth confirming if your asterisk box uses UDP or TCP (it can be changed)

My-VOIP-3: TCP10000-20000 (also for VOIP. I guess as you said above, the RTP stuff?)

Yup, this can be created as you say, however, take note the security implications as above.  If you leave all these ports wide open, then you can get burned, its much more secure to leave it to the SIP ALG to deal with it

This will leave you with 1 VIP configured, with multiple services, all forwarded to the relevant hosts etc.  This is normal, however, if you do have extra IP addresses, then perhaps a full MIP, ie mapped IP (1 to 1 static natting) will do this better for you.  ie all traffic to 1.1.1.2 (the 2nd IP) can be mapped to your asterisk box with the associated services allowed through.

 

by: SW111Posted on 2009-06-01 at 06:15:54ID: 24517081

Ah, I see. Okay then I think I kinda know which direction we need to take.
Right now we do only have 1 Public IP, but it was mostly because my network guy thought the ssg can only be used with 1 public IP. (I was actually given 5 by the ISP, but we had to cancel the other 4 in order to get the SSG to work).

He seemed to have found a way to incorporate  the other 4 also, so might be a good idea for me to use a second one strictly for VOIP, as you say.

Great. Thanks Deimark.

 

by: deimarkPosted on 2009-06-01 at 06:17:54ID: 24517099

No worries bud, lemme know if you need anything else. :P

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...