Two Trixbox boxes on same subnet causes modem/router crashes

hydromint
Posts: 3
Member Since:
2008-12-11

I've spent countless hours scouring the Interwebs for even a mention of this problem to no avail, so posting here is a close-to-last-resort for me.

I've personally had a PIII box running trixbox 2.4.2 (kernel 2.6.18-53.1.4.el5 [SMP]) for about a year with great success. I have one extension on site and another offsite at my home, both working wonderfully. In fact, I've had so much success, my father asked if I could build one for his business. I estimated smooth sailing. I was wrong.

I built the box from scratch using an Intel Core 2 Duo processor in a barebones box from Newegg. I had a very difficult time getting the onboard LAN recognized by the Trixbox installer (2.6), so ended up installing an old DLink card that was recognized right away. So I proceeded to install Trixbox 2.6 on this box.

We are both using Voicepulse for differing services, but both for outgoing. Mine is set up using their module, his is manually set up through FreePBX.

My father has 5 static IPs for his use and I'd been using one of those (let's call it *.81) for the year. In the setup of the Netopia modem/router, I had an IPMap configured so that a request for *.81 went to internal *.40 (my asterisk box). Once I added a second IPMap (external *.80) to forward on to my father's box (internal *.50), the modem reboots itself every 2-4 minutes. Ergh.

Through some trial and error, here are some things I've found:
1) It doesn't matter which box is plugged in first -- it works fine -- UNTIL the second is plugged in, then the reboot fairy visits.
2) I installed 2.4 on my father's box and things worked peachy for about a week, then the reboots started again, seemingly out of the blue.
3) When both boxes are plugged in, I can issue 'service asterisk stop' on either of the boxes and the reboots stop.
4) When my laptop is set up to receive traffic from the second IPMap, things work fine.

I talked to our ISP's Tier II support for about an hour without any results. While I was on the line, he actually got a Netopia tech on and we conferenced for another 30 minutes. Neither of them had ever heard of such a thing. We've had 3 techs come on-site and they all found nothing. We've even been through 3 different modems to rule out the modem itself. I've tried a different NIC card (NetLink) in my father's box. I've tried different ports in the modem. I've tried different Ethernet cables.

I am out of ideas of what else to try. Has anyone experienced this? Can anyone think of what else to try? What else to ask?

Thanks for any and all help. This has turned into a multi-month project because of this issue and I'd like to get it resolved.



cvander
Posts: 637
Member Since:
2006-06-26
As a way to remove the

As a way to remove the Netopia from the possible list of issues, you could set it up in bridge mode and send all your data to a pfsense box (you can even run it on the live CD from a machine that has 2 NICs...

Internet----Netopia (bridge)-----pfSenseBox-----Switch-----You Servers

I've personally had no issues using Virtual IP's and pfsense in this configuration (even with multiple asterisk boxes). It sounds like a networking issue, but you should definatley check all your asterisk logs and post more complete details here for further analysis including IP range (make up the public IP's for privacy) but we need the whole picture to troubleshoot.

Regards,

-Chris



16again
Posts: 370
Member Since:
2007-03-04
2 things come to mind: Both

2 things come to mind:
Both asterisks are adding entries to NAT tables quicker then they time out....
Both asteriskses confuse some build in SIP helper/ALG. Disable it in the modem/router.



hydromint
Posts: 3
Member Since:
2008-12-11
Quote: As a way to remove
Quote:
As a way to remove the Netopia from the possible list of issues, you could set it up in bridge mode and send all your data to a pfsense box

Though a bit different than your suggestion, I have tried putting the Netopia in bridge mode and sending it to a Tomato'd Linksys WRT54GL with some iptables configs running. The problem I had there was I couldn't get the WRT to recognize different IPs in order to direct them. Maybe I need some help setting up the iptables config. Any suggestions? Will the pfsense box be much different than the Tomato'd WRT?

Quote:
you should definatley check all your asterisk logs and post more complete details here for further analysis including IP range

What information am I looking for in the logs? Which logs?

Usable External IP Range: 1.1.1.177 - 1.1.1.181
The netopia is set up as RFC-1483 Bridged Ethernet
WAN IP Interface has IP of 1.1.1.177, Mask of 255.255.255.248, NAT on
IP Gateway is 1.1.1.182
DHCP Server is on, handing out 10.0.0.100 through 10.0.0.149
IPMap #1 (has been working for a year) maps 1.1.1.181 to 10.0.0.40
IPMat #2 (new) maps 1.1.1.180 to 10.0.0.50

Thanks for your help and hopefully we can get to the bottom of this.



hydromint
Posts: 3
Member Since:
2008-12-11
Quote: Both asterisks are
Quote:
Both asterisks are adding entries to NAT tables quicker then they time out....

How do I stop this from occuring? Any way to check on whether this is the case?

Quote:
Both asteriskses confuse some build in SIP helper/ALG. Disable it in the modem/router.

I'm not sure what a SIP helper or ALG is. Can you elaborate please?

Thanks!



16again
Posts: 370
Member Since:
2007-03-04
On linux based firewall,

On linux based firewall, you can view NAT table by typing command like:
cat /proc/net/nf_conntrack
I'm unfamiliar with netopia

http://en.wikipedia.org/wiki/Application-level_gateway



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.