LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Please help icmp destination unknown port unknown (https://www.linuxquestions.org/questions/linux-networking-3/please-help-icmp-destination-unknown-port-unknown-900677/)

hi2arun 09-02-2011 08:22 AM

I think the 'nc' command you executed was wrong. You have to listen on UDP port 5060.

Quote:

udp 0 0 127.0.0.1:32789 127.0.0.1:5060 ESTABLISHED 11043/nc
Use
Quote:

nc -u -l -p 5060
to listen on UDP port 5060


You are yet to stop the SIP server.
Quote:

udp 0 0 127.0.0.1:5060 0.0.0.0:* 11008/ser

gbwien 09-02-2011 08:22 AM

service iptables check -> stopped
 
is this ok

hi2arun 09-02-2011 08:26 AM

iptables stop is fine.

But did you take care of 'nc' and 'SIP server' as discussed?

gbwien 09-02-2011 08:27 AM

ok i got something on console output
 
REGISTER sip:open-ims.test SIP/2.0
Via: SIP/2.0/UDP 192.168.21.129:60584;branch=z9hG4bK9374509;rport
From: <sip:alice@open-ims.test>;tag=9392294
To: <sip:alice@open-ims.test>
Contact: <sip:alice@192.168.21.129:60584;transport=udp>;expires=600000;+g.oma.sip-im;language="en,fr";+g.3gpp.smsip;+g.oma.sip-im.large-message;audio;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.gsma-vs";+g.3gpp.cs-voice
Call-ID: 5626b92f-a99a-0980-7b75-d4987b99fdf9
CSeq: 6744 REGISTER
Content-Length: 0
Max-Forwards: 70
Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER
Privacy: none
P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000
User-Agent: IM-client/OMA1.0 Boghe/v1.0.58.550
P-Preferred-Identity: <sip:alice@open-ims.test>
Supported: path

gbwien 09-02-2011 08:28 AM

maybe ssh redirect might help ??
 
maybe I could use ssh to redirect to eth0

hi2arun 09-02-2011 08:29 AM

Cool. After you got the some message on 'nc' terminal, type something back on 'nc' terminal.

Can you attach packet capture output for this?

gbwien 09-02-2011 08:37 AM

output wireshark trace
 
1 Attachment(s)
thanks a million

hi2arun 09-02-2011 08:42 AM

Quote:

Frame 67 (77 bytes on wire, 77 bytes captured)
Ethernet II, Src: Vmware_64:ba:05 (00:0c:29:64:ba:05), Dst: Vmware_c0:00:01 (00:50:56:c0:00:01)
Internet Protocol, Src: 192.168.21.128 (192.168.21.128), Dst: 192.168.21.129 (192.168.21.129)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 51541 (51541)
Data (35 bytes)

0000 68 65 6c 6c 6f 20 77 6f 72 6c 64 20 77 68 79 20 hello world why
0010 69 73 20 69 74 20 6e 6f 74 20 77 6f 72 6b 69 6e is it not workin
0020 67 20 0a
g .
Here you can see the message that you typed... so this reached the SIP client.

This means, if you run the SIP server listening on eth0 interface of the Linux instance, things will be fine.

HTH!

gbwien 09-02-2011 08:46 AM

THANKS again
 
thanks

hi2arun 09-02-2011 08:46 AM

You are welcome :)


All times are GMT -5. The time now is 09:34 PM.