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/)

gbwien 09-02-2011 04:09 AM

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

hi2arun 09-02-2011 04:14 AM

Hi -

do you have SIP server listening on eth0 interface of Linux?

gbwien 09-02-2011 04:21 AM

wireshark trace
 
1 Attachment(s)
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

hi2arun 09-02-2011 04:24 AM

Can you paste the output of
Quote:

netstat -anup
from your linux instance?

gbwien 09-02-2011 04:29 AM

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]#

hi2arun 09-02-2011 04:32 AM

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.

gbwien 09-02-2011 04:39 AM

Thanks
 
I'll give that a go and see what I come out with :)

gbwien 09-02-2011 04:41 AM

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

hi2arun 09-02-2011 04:44 AM

Quote:

Originally Posted by gbwien (Post 4459463)
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

gbwien 09-02-2011 04:54 AM

THANKS again
 
Fantastic that worked

hi2arun 09-02-2011 04:56 AM

You are welcome :)

Ty.

gbwien 09-02-2011 05:02 AM

No response after iptables command from guest
 
1 Attachment(s)
Hi after issuing the iptables command I get no response from the guest,

see wireshark trace

thanks

graham

hi2arun 09-02-2011 05:08 AM

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?

gbwien 09-02-2011 05:15 AM

thanks i just need 5 mins to reset my guest
 
5 mins to reset guest

hi2arun 09-02-2011 05:17 AM

FYI... If you are resetting the guest coz you enabled ip_forward, that is not necessary. ip_forward change can go effective without reboots.


All times are GMT -5. The time now is 05:43 PM.