[Asterisk-Users] problem with pf and asterisk

steve szmidt steve at szmidt.org
Tue Jun 14 06:00:56 MST 2005


On Tuesday 14 June 2005 02:04, Michiel van Baak wrote:
> On 20:00, Mon 13 Jun 05, Frank Cases wrote:
> > current setup
> >
> > SIP phone 192.168.1.30 --> linksys wrt54g sveasoft -- INTERNET --
> > (xl0) Firewall (xl2:172.16.0.50)--> (em1:172.16.0.101) Asterisk
> >
> >
> > problem is RTP stream not oging trouhg from * to sip and vice versa.
> >
> > #1 and asterusk  is pushing 192.168.1.30 back to linksys with 172 as
> > return address....
> > or
> > #2 asterisk trying to get back to me as 192.168 on public internet..
> >
> >
> >
> > got
> > canreinvite=yes and no.
> > nat=yes
> > qualify=1000
> >
> > externaladdr=IP of (em1)
> > localnet=172.16.0.0/12
>
> Try to set the externaladdr to the IP of xl0.
> That did the trick for me here.

Well, you better make it for what your interface is. 
Type ifconfig -a to see what type of NICs you have.

-- 

Steve Szmidt

"They that would give up essential liberty for temporary safety 
deserve neither liberty nor safety."
                                Benjamin Franklin



More information about the asterisk-users mailing list