Solved

Asterisk finds server unreachable

Posted on 2011-03-24
16
1,080 Views
Last Modified: 2012-05-11
Wouldn't you know it I tested the last solution for 5 days then as soon as posted the accepted solution the problem came back. This question is the same as my previous question. Somehow or other after being connected for maybe 2 days asterisk finds the VoiP provider server unreachable, which is then fixed by power cycling the modem. The funny thing is the connection lasts longer with 1 router over the other. It happens with 3 routers. The same as before, when the connection is down I can ping the server using the server name not the ip address so I know it's resolving. I'm using the same NAT traversal method, namely specifying the externip= xx.xxx.xxx.xxx and  localnet=192.168.0.0/255.255.255.0 in the config file. Once it goes down it does not come back.
0
Comment
Question by:Jeff swicegood
  • 10
  • 4
  • 2
16 Comments
 
LVL 8

Expert Comment

by:API_NOC
ID: 35218709
Have you tried putting your server into the DMZ of your network?
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35219954
I have a double NAT, one in the modem and one in the router. If I put the server in the DMZ of the router, would I also need to put the router in the DMZ (if it has one) of the modem?
0
 
LVL 19

Expert Comment

by:feptias
ID: 35230383
Sorry to hear that you've still got the problem. You can ask for a refund of points if you want.

To answer your DMZ question, the modem most likely just passes everything through to the router - so a DMZ would only make sense in the context of the router.

I wonder if it could be some kind of connection/session timeout. Are there any settings for session timeouts on the router? If so, the timeout for UDP connections is the relevant one (it is used by the stateful packet inspection engine). Try increasing it by about 50%. If there are settings to limit the maximum number of sessions, make them a little more generous.

Another idea: Check the settings on the firewall that are designed to protect it from attacks such as Denial of Service, UDP Floods, etc. Experiment with disabling them for a while to see if they make a difference.

Do you have access to the setup forms on the modem? If so, does it have settings for connections or sessions like those mentioned above?

A final idea: Next time you get the problem, try disconnecting the router from the modem for 5 minutes - just unplug the patch lead, but don't power cycle the modem. When you reconnect the patch lead, does it fix the problem or do you have to power cycle the modem.
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
LVL 8

Expert Comment

by:API_NOC
ID: 35232154
Put the router into the DMZ of the modem. Then the asterisk server in the DMZ of the router.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35234990
Thanks for all your leads. I am in the process of testing. I'll get back to you in a few days.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35243661
Yes, disconnecting the router from the modem for 5 mins restored the connection and fixed the problem.
0
 
LVL 19

Expert Comment

by:feptias
ID: 35243793
That's interesting. It points to an issue with established router connections - disconnecting the modem would force the router to clear its list of established connections. Next time, try a very brief disconnection of the patch lead. In my opinion it points much more to a router issue than a modem issue, but its a tough one to pin down.

Did you find any settings for sessions/connections etc?
0
 
LVL 8

Expert Comment

by:API_NOC
ID: 35243908
Does the problem exists even when the DMZs are opened up?
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35244062
I am just now setting the DMZ's and looking for session settings. I'll get back to you soon.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35258632
I set the DMZ's and I did find a setting for UDP timeout. I increased it from 120 sec to 180 sec. I did not find a setting for maximum sessions, but I did find one for maximum ports, but it was already at maximum.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35263749
Disconnecting patch cable for a short period did not restore the connection. Neither using the DMZ' nor the new UDP timeout settings helped.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35317246
Did you have any more ideas?
0
 
LVL 8

Accepted Solution

by:
API_NOC earned 500 total points
ID: 35317913
Can the modem in front of your router be put into bridge mode? This would allow the public IP to be on your router and then you can try the DMZ on the router.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35318245
I have attempted to put the modem in bridge mode, but I was not able to find enough information on the web. It is a Zyxel 660R. Maybe if I call my ISP they will help me do that.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35360207
The modem is now in bridge mode. I guess I will test it for a few days before putting the server in the DMZ.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35410858
Putting the modem in bridge mode, even without using DMZ has done the trick since my past post! I will test it for another week, then award full points.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Connect two buildings 6 51
Wireless scope on sever with DSL connection 9 37
MSSQL server connection  forced closed 3 39
cannot view videos at msnbc 12 44
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question