Ping to Honeyd virtual host replying Destination Host Unreachable
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ping to Honeyd virtual host replying Destination Host Unreachable
I have installed and am running honeyd and farpd successfully on Ubuntu 13.10. But, now the problem is:
Pinging the virtual host from honeyd host (and from any other local network machine)
ping IP_virtual_host
Output: Destination host unreachable
So, I took the following steps to try to find the problem:
1) #nmap IP_virtual_host Output: Host seems down. But, it's not really down. S, I ran it with -Pn option. 2) #nmap -Pn IP_virtual host Output: Host is up. All 1000 ports scanned are filtered. So, I checked the ports from blocking. 3) I flushed the iptables and created new rules allowing all incoming and outgoing traffic from honeyd host and virtual hosts. There is no hardware firewall. 4) Added "set template_name tcp/udp/icmp default action open" to honeyd.conf file for both virtual router and virtual hosts (all open only for the time being). So, router rules also allow ICMP traffic.
After taking all these steps, I am still getting destination host unreachable on pinging my virtual hosts from honeyd host and local machines. And nmap is still giving output as mentioned in steps 1 and 2.
I am stuck after hours of searching and reading. Please feel free to point out my mistakes. Thanks in advance.
Looks like a routing problem to me?.. Posting 'ifconfig -a; route -n; sysctl net.ipv4.ip_forward; iptables-save' on the host, your (f)arpd and honeyd configuration and any log or stdout/stderr output may be a start.
I'm having the same issue. The VM is on the 192.168.122.0/24 It's IP is 192.168.122.2 The virt-manager that is hosting it is 192.168.0.248
The box I'm trying to reach it from is on the same WiFi router 192.168.0.1 and it's address is 192.168.0.249
Here are what you asked for from the one that is having the host unreachable error (rocky it is running rocky linux)
Error message
rocky ~]$ ping 192.168.122.2
PING 192.168.122.2 (192.168.122.2) 56(84) bytes of data.
From 192.168.0.1 icmp_seq=2 Redirect Host(New nexthop: 192.168.122.2)
From 192.168.0.1 icmp_seq=1 Destination Host Unreachable
From 192.168.0.1 icmp_seq=2 Destination Host Unreachable
rocky ~]$ ip route
0.0.0.0 dev wlp0s26u1u5 proto static scope link metric 600
default via 192.168.0.1 dev wlp0s26u1u5 proto dhcp src 192.168.0.249 metric 600
192.168.0.0/24 dev wlp0s26u1u5 proto kernel scope link src 192.168.0.249 metric 600
192.168.10.0/24 dev wlp0s26u1u5 proto static scope link metric 600
192.168.100.0/24 dev virbr0 proto kernel scope link src 192.168.100.1
192.168.122.0 via 192.168.0.1 dev wlp0s26u1u5
I added the 192.168.122.0 route via 192.168.0.1
I also added the route on the router 192.168.0.1 to the 192.168.122.0/24 subnet
Name Destination Gateway Netmask Metric Status
Network (Home/Office) 192.168.122.0 192.168.0.1 255.255.255.0 1 Applied
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.