Something like this should work (XXXX is whatever port you want to listen on):
iptables -t nat -A PREROUTING -p udp --dport XXXX -j REDIRECT --to-ports 5060 Terry 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. ------------------------------------------------------------------------------ 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.