David,

This method should work, but has the disadvantage of putting all SIP  
behind NAT...

Assuming an internal LAN network: 10.10.10.1/24

1) in sip.conf set bindaddr=10.10.10.1

2) In the Firewall tab define NAT EXT->LAN for the 5060, etc ports to  
10.10.10.1 port 5060

3) in sip.conf define both externip and localnet, something like:
externip=1.2.3.4 ; the EXT interface IP address
localnet=10.0.0.0/255.0.0.0

Clearly, having asterisk listen on a public IP address is the  
preferred method, but if you must listen on multiple ports, this  
should work.

Note: With this solution, it is important for asterisk to only listen  
on the NAT'ed LAN interface, if it were bindaddr=0.0.0.0 the SIP  
requests would arrive on the NAT'ed LAN interface but would leave un- 
NAT'ed through the default EXT interface... can we say one-way audio :-)

Lonnie


On Sep 6, 2009, at 8:13 PM, David Kerr wrote:

> I'm wondering if there are any experts out there that can help me.   
> Asterisk is listening on port 5060 for SIP messages.  I would like  
> to be able to listen on another port *as well* as 5060.  Asterisk  
> itself can only listen on the one port, so I can't change the  
> bindport= statement in sip.conf as that would cause it to stop  
> listening on 5060.
>
> Is there a way using the Arno firewall or iptables in Astlinux to  
> listen on inbound requests on a port that I specify and have those  
> requests remapped to port 5060 *on the same box/network interface*  
> (ie, this is not NAT forwarding to another box inside my network).
>
> Thanks,
> David.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to