[Asterisk-Users] TCP/UDP ports used by asterisk

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Mon May 26 09:51:55 MST 2003


On Monday 26 May 2003 08:44, Dan wrote:
> Hi all,
>
> There is no way to find the TCP/UDP ports used by Asterisk?
> I need to know how to configure the firewall.

Do a 'netstat -tunap' on your Asterisk box and look for lines
which contain the word 'asterisk'.  That should tell you exactly
which ports are being used on your installation.

For example:

root at tweedledee:/cvs/asterisk# netstat -tunap|grep asterisk
tcp        0      0 0.0.0.0:5038            0.0.0.0:*               LISTEN      316/asterisk
tcp        0      0 0.0.0.0:1720            0.0.0.0:*               LISTEN      316/asterisk
tcp        0      0 192.168.69.17:5038      192.168.98.16:53582     ESTABLISHED 316/asterisk
tcp        0      0 192.168.69.17:33130     192.168.69.1:3306       ESTABLISHED 316/asterisk
udp        0      0 0.0.0.0:37380           0.0.0.0:*                           316/asterisk
udp        0      0 0.0.0.0:5036            0.0.0.0:*                           316/asterisk
udp        0      0 0.0.0.0:5060            0.0.0.0:*                           316/asterisk
udp        0      0 0.0.0.0:6360            0.0.0.0:*                           316/asterisk
udp        0      0 0.0.0.0:4569            0.0.0.0:*                           316/asterisk
udp        0      0 0.0.0.0:57462           0.0.0.0:*                           316/asterisk

-Tilghman




More information about the asterisk-users mailing list