LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-02-2011, 03:09 AM   #1
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Rep: Reputation: 0
Please help icmp destination unknown port unknown


Hi,

I have a client running on my windows vista machine sending SIP requests to my Redhat guest. However the guest is responding with icmp destination unreachable port unreachable. I can't figure out why.

Please help

Thanks

Graham

iptables disabled selinux disabled windows firewall disabled

vmware setup

Host-only Windows Vista

Host using VMnet1

use the following ip address:- 192.168.136.3 255.255.255.0

Guest

Redhat AS 4 update 4

192.168.136.2 255.255.255.0

Sending SIP packets ----> towards guest

host <----////ICMP destination unreachable host unreachable

tracert from host

C:\Users\Graham>tracert 192.168.136.2

Tracing route to 192.168.136.2 over a maximum of 30 hops

1 <1 ms <1 ms <1 ms 192.168.136.2

Trace complete.

traceroute from guest

[root@grahamb network-scripts]# traceroute 192.168.136.3 traceroute to 192.168.136.3 (192.168.136.3), 30 hops max, 38 byte packets 1 192.168.136.3 (192.168.136.3) 0.315 ms 0.236 ms 0.295 ms

ping also works from both host and guest

tried adding a route from guest to host

Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.136.3 192.168.136.3 255.255.255.255 UGH 0 0 0 eth0 192.168.136.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.136.3 0.0.0.0 UG 0 0 0 eth0
 
Old 09-02-2011, 03:14 AM   #2
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Hi -

do you have SIP server listening on eth0 interface of Linux?
 
1 members found this post helpful.
Old 09-02-2011, 03:21 AM   #3
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Original Poster
Rep: Reputation: 0
wireshark trace

Hi hi2arun,

I am running a client called Boghe, he is sending a REGISTER REQUEST, but the response is blocked I see in wireshark trace.

See attached
Attached Files
File Type: txt icmp-destination unreachable port unreachable.txt (17.3 KB, 11 views)
 
Old 09-02-2011, 03:24 AM   #4
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Can you paste the output of
Quote:
netstat -anup
from your linux instance?
 
1 members found this post helpful.
Old 09-02-2011, 03:29 AM   #5
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Original Poster
Rep: Reputation: 0
Wink thanks here is the output

[root@grahamb network-scripts]# netstat -anup
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 0.0.0.0:896 0.0.0.0:* 3685/rpc.statd
udp 0 0 0.0.0.0:32770 0.0.0.0:* 5457/named
udp 0 0 127.0.0.1:6060 0.0.0.0:* 6065/ser
udp 0 0 192.168.136.2:53 0.0.0.0:* 5457/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 5457/named
udp 0 0 127.0.0.1:5060 0.0.0.0:* 6010/ser
udp 0 0 127.0.0.1:4060 0.0.0.0:* 5963/ser
udp 0 0 0.0.0.0:111 0.0.0.0:* 3665/portmap
udp 0 0 0.0.0.0:631 0.0.0.0:* 3095/cupsd
udp 0 0 0.0.0.0:893 0.0.0.0:* 3685/rpc.statd
udp 0 0 :::32771 :::* 5457/named
[root@grahamb network-scripts]#
 
Old 09-02-2011, 03:32 AM   #6
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Quote:
udp 0 0 127.0.0.1:5060 0.0.0.0:* 6010/ser
Your SIP server is listening on loopback interface and not on eth0 interface. This is the reason why you get 'port unreachable' ICMP message.

Make your SIP server listen on all interfaces. That should do.
 
1 members found this post helpful.
Old 09-02-2011, 03:39 AM   #7
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Original Poster
Rep: Reputation: 0
Thumbs up Thanks

I'll give that a go and see what I come out with
 
Old 09-02-2011, 03:41 AM   #8
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Original Poster
Rep: Reputation: 0
one more question redirect loopback -> eth0

I am using open source software which is listening on 127.0.0.1

would there be a clever way to redirect 127.0.0.1 to the ip of the eth0

thanks

graham
 
Old 09-02-2011, 03:44 AM   #9
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Quote:
Originally Posted by gbwien View Post
I am using open source software which is listening on 127.0.0.1

would there be a clever way to redirect 127.0.0.1 to the ip of the eth0

thanks

graham
Yes. you can redirect traffic on eth0 to lo interface. If you have iptables NAT support available in the Linux instance, you can do port redirection.

Code:
iptables -t nat -I PREROUTING -i eth0 -p udp --dport 5060 -j DNAT --to 127.0.0.1:5060
 
1 members found this post helpful.
Old 09-02-2011, 03:54 AM   #10
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Original Poster
Rep: Reputation: 0
THANKS again

Fantastic that worked
 
Old 09-02-2011, 03:56 AM   #11
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
You are welcome

Ty.
 
Old 09-02-2011, 04:02 AM   #12
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Original Poster
Rep: Reputation: 0
No response after iptables command from guest

Hi after issuing the iptables command I get no response from the guest,

see wireshark trace

thanks

graham
Attached Files
File Type: txt no-reponse.txt (57.9 KB, 29 views)
 
Old 09-02-2011, 04:08 AM   #13
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
What is the output of
Quote:
cat /proc/sys/net/ipv4/ip_forward
If it is 0, set it to 1 as follows

Quote:
echo 1 > /proc/sys/net/ipv4/ip_forward
and can you retry?
 
1 members found this post helpful.
Old 09-02-2011, 04:15 AM   #14
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Original Poster
Rep: Reputation: 0
thanks i just need 5 mins to reset my guest

5 mins to reset guest
 
Old 09-02-2011, 04:17 AM   #15
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
FYI... If you are resetting the guest coz you enabled ip_forward, that is not necessary. ip_forward change can go effective without reboots.
 
1 members found this post helpful.
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Raw UDP Socket and ICMP Destination (Port) Unreachable bobble Programming 5 07-06-2011 04:07 AM
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 migabriel.84 Linux - Server 1 11-25-2009 03:36 PM
route -n shows unknown network destination gjmwalsh Linux - Networking 2 09-19-2009 09:36 PM
icmpquery: Unknown ICMP message received (type 13) phsythax Linux - Networking 1 11-17-2005 03:39 PM
lpstat: Unknown destination ricky_ds Linux - Networking 1 08-22-2005 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration