I see that when an Asterisk connects to another one via IAX, it seems to use port 4569 for the first one. But if it has multiple IAX connections the additional ports seem to be chosen at random. Is there anyway to predict, or specify which ports or range of ports to use, for the sake of setting up a firewall? Thanks.
On 02/12/03 16:32, Matt Lawson wrote:> I see that when an Asterisk connects to another one via IAX, it seems to > use port 4569 for the first one. But if it has multiple IAX connections > the additional ports seem to be chosen at random. > > Is there anyway to predict, or specify which ports or range of ports to > use, for the sake of setting up a firewall? Thanks.Asterisk binds to port 4569 to listen for IAX2 packets. It should send from that same socket on port 4569, whether it's sending to a single machine or many. If it's sending from random ports, that means Asterisk can't bind to port 4569 initially. You should see this in your logs. Are you sure you're not trying to run multiple asterisks on one machine? Alastair
----- Original Message ----- From: "Matt Lawson" <matt@1control.com> To: <asterisk-users@lists.digium.com> Sent: Tuesday, December 02, 2003 11:32 AM Subject: [Asterisk-Users] IAX port numbers?> I see that when an Asterisk connects to another one via IAX, it seems to > use port 4569 for the first one. But if it has multiple IAX connections > the additional ports seem to be chosen at random. > > Is there anyway to predict, or specify which ports or range of ports to > use, for the sake of setting up a firewall? Thanks. >I thought the origin of outbound connections were random, but the destination was always the port of the service you're attempting to acquire? Example: Opera to www.google.com 192.168.0.2:(insert next random port number) --> www.google.com:80 In this situation, any port would be valid going out of a firewall, if it's going to an acceptable destination port. ----- Andrew Thompson NetResults, Inc. (910) 215-9991 x301
Maybe Matching Threads
- Outgoing-call and enter user in Conference - repost
- Ubuntu LLVM packages incompatible with clang built projects?
- Ubuntu LLVM packages incompatible with clang built projects?
- How to change IAX default port 4569 to some other port
- Re: How to change IAX default port 4569 to some other port :Debug Message Attached