now telephon connection for incomming and outgoing calls is ok.
But now the incomming openVPN (UDP 1194) connections are routed to the PBX. I assume that is because I have ALL ports/protocols choosen in the rules for the telephone.
Which ports and protocols are needed for telephone only?
Port 1720 - H.323 (call signaling and control) - UDP
Port 1731 - H.323 (call signaling and control) - UDP
Port 1719 - H.323 (call signaling and control) - UDP
Ports 16384 to 32767 - Real-Time Transport Protocol (RTP) (audio and video data transmission) - UDP
You can group them (e.g. VOIP group) before entering your firewall rules, making the process more efficient.
These are the most common ports used by VOIP, but there can be others according to different vendors. In case of problems, you can check the kernel logs by issuing this command in the console, while using the phone system:
tail -f /var/log/messages
you will see in real time the packets flowing, with the ports indicated. Ctrl-c to exit.
Hm, I thought I restrict the related ports with the service group ‘VoIP’. This included the ports named by cfusco in the post above. But as you see this is not visible when IPFire displays the rules.
Just my two cents
I think these are too many ports and I’d like to recommend you check the manual of the DECT bridge you are actually using. Opening more ports than necessary can be a security risk.
For example, a Gigaset bridge I recently set up uses only ports 5060 and 5004-5020 for RTP.