Networking Forums

Networking Forums > Computer Networking > Linux Networking > Voip phone

Reply
 
 
Marco Paunescu
Guest
Posts: n/a

 
      04-10-2007, 09:11 AM
I need help in freeing the udp ports 5060 (SIP) and 5004 (RTP) in order
to use my voip phone. This is how my configuration is:

192.168.1.33 eth1 to which I connected the router 192.168.1.1
192.168.2.33 eth0 to which I connected the phone 192.168.2.1

On my Zyxel router I should have opened the two ports by adding them to
the "SUA" section, then I tried with some iptables rules like

iptables -A INPUT -p udp --destination-port 5060 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -p udp -i eth1 --destination-port 5060 --destination 192.168.2.1 -j ACCEPT
iptables -t nat -A PREROUTING -p udp -i eth1 --destination-port 5060 -j DNAT --to-destination 192.168.2.1

plus I tried these also with the 5004, but none of them seems to have
given any result. It is maybe possible to test whether the ports are
fine with some command instead of directly hacking with the phone?

Well, thanks everybody for your help!
--
Marco Paunescu
(Aka Pau)
Love is the Dance of Eternity
 
Reply With Quote
 
 
 
 
Balwinder S \bsd\ Dheeman
Guest
Posts: n/a

 
      04-10-2007, 10:35 AM
On 04/10/2007 02:41 PM, Marco Paunescu wrote:
> I need help in freeing the udp ports 5060 (SIP) and 5004 (RTP) in order
> to use my voip phone. This is how my configuration is:
>
> 192.168.1.33 eth1 to which I connected the router 192.168.1.1
> 192.168.2.33 eth0 to which I connected the phone 192.168.2.1
>
> On my Zyxel router I should have opened the two ports by adding them to
> the "SUA" section, then I tried with some iptables rules like
>
> iptables -A INPUT -p udp --destination-port 5060 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
> iptables -A FORWARD -p udp -i eth1 --destination-port 5060 --destination 192.168.2.1 -j ACCEPT
> iptables -t nat -A PREROUTING -p udp -i eth1 --destination-port 5060 -j DNAT --to-destination 192.168.2.1
>
> plus I tried these also with the 5004, but none of them seems to have
> given any result. It is maybe possible to test whether the ports are
> fine with some command instead of directly hacking with the phone?
>
> Well, thanks everybody for your help!


I have not tested it as yet, I however, think
http://www.iptel.org/sipalg/ is what you need to read and try.

Hope that helps!
--
Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709
Anu'z Linux@HOME Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India Gentoo, Fedora, Knoppix/FreeBSD/XP
Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Voip Updated Howto,Voip AT Home,Voip Phones,Voip Conference Calling voip Wireless Internet 0 05-29-2006 10:16 PM
Voip Updated Howto,New Voip Phones,Voip Conferencing,Satellite Voip,Virtual PBX Solutions voip Wireless Internet 0 05-21-2006 03:23 PM
Latest voip phone/usb phone/gateway sales@skype-link.com Broadband 3 03-14-2006 08:50 AM
Latest voip phone/usb phone/gateway sales@skype-link.com Broadband 0 02-26-2006 06:23 AM
voip faqs? Cisco voip phone ~Gifted~ Home Networking 0 10-24-2005 07:29 PM



1 2 3 4 5 6 7 8 9 10 11