Hi all,
got my phone line changed to VoIP. Now I have attached an IP-telephone to the LAN, and it seems to work. But when a call is incoming, it appears as such:
> 22:16:04.689862 IP {provider-ip}.sip > {my-ip}.sip: SIP: INVITE ...
That means, there is traffic initiated from outside onto my port udp/5060. Which means, that port should be open in the firewall. But it is worse, because {provider-ip} is not well-defined: it is a bunch of dynamic aliases and resolves to something different depending on which DNS is used, so that is rather unuseable to specify in a firewall rule, and it would be necessary to open this port to everybody. And I don't like that.
net.inet.ip.fw.dyn_udp_lifetime is by default 10 seconds. I could configure very frequent keepalive packets to hold the firewall open, but that would create useless network traffic. Or I could increase that config value, but that would then concern all services, not only SIP.
So, question is: what is common best practice to handle this?
got my phone line changed to VoIP. Now I have attached an IP-telephone to the LAN, and it seems to work. But when a call is incoming, it appears as such:
> 22:16:04.689862 IP {provider-ip}.sip > {my-ip}.sip: SIP: INVITE ...
That means, there is traffic initiated from outside onto my port udp/5060. Which means, that port should be open in the firewall. But it is worse, because {provider-ip} is not well-defined: it is a bunch of dynamic aliases and resolves to something different depending on which DNS is used, so that is rather unuseable to specify in a firewall rule, and it would be necessary to open this port to everybody. And I don't like that.
net.inet.ip.fw.dyn_udp_lifetime is by default 10 seconds. I could configure very frequent keepalive packets to hold the firewall open, but that would create useless network traffic. Or I could increase that config value, but that would then concern all services, not only SIP.
So, question is: what is common best practice to handle this?