DSIPROUTER PORT FOR PUBLIC

231 views
Skip to first unread message

MASTERING VOIP

unread,
Jun 30, 2022, 7:00:18 AM6/30/22
to Mack Hendricks, dSIPRouter
Hi Mark,

If I make my dsiprouter public, what ports should I open?

UDP = ?
TCP= ?

Port 5000 only permits me from a certain ip.

Thanks

V

unread,
Jun 30, 2022, 10:08:32 PM6/30/22
to dSIPRouter
You should allow the following ports for SIP
5060/udp = Normal traditional SIP
5060/tcp  = SIP over TCP. May be required if headers get long due to STIR/SHAKEN requirements. Likely will need it in the future with Trunk providers not for handsets.
5061/tcp  = This is used for SSL/TLS encrypted setups.

You probably do not need 5061 unless you are doing secure VoIP.
Also you will need port 80/tcp open to allow Letsencrypt to update the SSL certificates.
And you should have port 5000/tcp allowed only from a trusted source.

AirsayLongCon

unread,
Feb 8, 2023, 8:13:37 PM2/8/23
to dSIPRouter
Apologies for resurrecting an old post. Is it possible to change these ports?

Mack Hendricks

unread,
Feb 9, 2023, 7:39:37 AM2/9/23
to AirsayLongCon, dSIPRouter
Yes, you can go into /etc/kamailio/kamailio.cfg and change the port numbers used.

-- 
You received this message because you are subscribed to the Google Groups "dSIPRouter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dSIPRouter+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dSIPRouter/0e252de9-31c8-4a4b-b7c3-be4998d3b97dn%40googlegroups.com.

AirsayLongCon

unread,
Feb 14, 2023, 10:08:34 AM2/14/23
to dSIPRouter
HiMack,
Do port changes to the Kamailio.cfg get undone after a systemctl restart or a full system reboot? I tried updating the SIP ports to 6060 and 6061. After a system reboot, the ports reverted to 5060 and 5061 respectively. I’m very green with approximately 18months professional experience in VOIP so forgive any ignorance shown

Mack Hendricks

unread,
Feb 14, 2023, 11:01:06 AM2/14/23
to AirsayLongCon, dSIPRouter
You know what happening is that we have a template that re-generates the Kamailio Configuration.

So, change the ports in this file: /opt/dsiprouter/kamailio/configs/kamailio.cfg

This file will be used to recreate the configuration during a reboot.

AirsayLongCon

unread,
Feb 14, 2023, 11:04:30 AM2/14/23
to Mack Hendricks, dSIPRouter
Aha! I was editing the /etc/kamailio/kamailio.cfg file. I’d make my changes to the recommended file and update my findings here. Once again thank you for the swift response and hands on approach here. Much appreciated
Reply all
Reply to author
Forward
0 new messages