Bruce B
2010-Dec-11 08:06 UTC
[asterisk-users] Why does "sip show peers" show my router/gateway address as the client IP address?
Hi Everyone, I am using pfSense to do firewall and NAT on an Asterisk server. I have ports 5060 TCP/UDP and 10k-20k UDP forwarded to the Asterisk server local IP 192.168.5.5. However, when a user from outside using Linksys WRP400 ata connects to the Asterisk server and registers I see them as 192.168.1.1 in the "sip show peers" command. In face, all many different of the Linksys WRP400 show the same. It seems that pfsense does something to the packets that when they reach Asterisk it thinks they are sent from the Gateway rather than the actual endpoint hence the calls are not reaching the other side but registration is made. Any experience with this? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101211/b97977a9/attachment.htm
Ryan Wagoner
2010-Dec-11 15:15 UTC
[asterisk-users] Why does "sip show peers" show my router/gateway address as the client IP address?
On Sat, Dec 11, 2010 at 3:06 AM, Bruce B <bruceb444 at gmail.com> wrote:> Hi Everyone, > I am using pfSense to do firewall and NAT on an Asterisk server. I have > ports 5060 TCP/UDP and 10k-20k UDP forwarded to the Asterisk server local IP > 192.168.5.5. However, when a user from outside using Linksys WRP400 ata > connects to the Asterisk server and registers I see them as 192.168.1.1 in > the "sip show peers" command. In face, all many different of the Linksys > WRP400 show the same. It seems that pfsense does something to the packets > that when they reach Asterisk it thinks they are sent from the Gateway > rather than the actual endpoint hence the calls are not reaching the other > side but registration is made. > Any experience with this? > ThanksDo you have the siproxd package installed on pfsense? It is suspossed to handle registrations from multiple phones behind NAT. In your case since the phones are external I would probably remove it if installed. I haven't needed siproxd. Also on Asterisk set externip to your static IP in sip.conf. Or if you don't have a static IP set externhost. You also need to configure localnet. Ryan
Bruce B
2010-Dec-11 17:25 UTC
[asterisk-users] Why does "sip show peers" show myrouter/gateway address as the client IP address?
Hi Wang, Did you mean to write a feedback? You sent an empty message. Regards, On Sat, Dec 11, 2010 at 11:56 AM, <wang at pythian.com> wrote:> > Sent from my ?contract free? BlackBerry? smartphone on the WIND network. > > -----Original Message----- > From: Bruce B <bruceb444 at gmail.com> > Sender: asterisk-users-bounces at lists.digium.com > Date: Sat, 11 Dec 2010 11:45:15 > To: Asterisk Users Mailing List - Non-Commercial Discussion< > asterisk-users at lists.digium.com> > Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion > <asterisk-users at lists.digium.com> > Subject: Re: [asterisk-users] Why does "sip show peers" show my > router/gateway address as the client IP address? > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101211/7746ab78/attachment-0001.htm