You are not logged in.

#1 2012-08-25 22:46:36

lamdacore
Member
Registered: 2009-11-05
Posts: 128

[SOLVED] Firewall and VOIP

Hi I am running a simple firewall on my laptop configured using ufw.

Now I was trying to set up my new SIP account in linphone. It works just fine except when I receive calls - I get no audio in. This is what I know so far:
1. Not a NAT problem, works fine via my phone setup on the same LAN.
2. No new new entries in /var/log/iptables.log - I opened port 5060 for udp and 7078 for udp and tcp. (linphone wants rtp on 7078 I believe)
3. It starts working fine, if I open all ports via, "ufw default allow".

How do I find which port it is that I need to open for this work?

Help is appreciated. Thanks.

Last edited by lamdacore (2012-09-02 19:46:32)

Offline

#2 2012-08-26 07:20:10

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,238
Website

Re: [SOLVED] Firewall and VOIP

Add an explicit LOG rule at the start of INPUT to just log all incoming traffic, then examine those logs:

iptables -I INPUT -m state --state NEW -j LOG --log-prefix='[NEW]'
iptables -I INPUT -m state --state RELATED -j LOG --log-prefix='[RELATED]'

While a call is in progress (with the firewall disabled), you could also examine the output of netstat:

netstat -tunp | grep program

Replace "program" above with whatever application you're using so you only see the connections that process has open.

Offline

#3 2012-09-02 19:46:17

lamdacore
Member
Registered: 2009-11-05
Posts: 128

Re: [SOLVED] Firewall and VOIP

I think, I had to reboot. Perhaps my settings for the firewall were not working correctly before that but my softphone works fine now.

Thank you for the diagnostic information though, will help me debug in the future.

Offline

Board footer

Powered by FluxBB