I tried with iptables -A INPUT -s 10.0.2.0/24 -j DROP too but this is also not working
> >> > In that case do one thing > > In your host machine open up a command prompt and type in the following > and show the output, as soon as you access the webserver from your > virutalbox VM. > > If you hosts is Linux > #netstat -antulp > > If your host is Windows > netstat -aon > > here is the output alok@alok:~$ sudo netstat -antulp Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 7853/mysqld tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 8357/apache2 tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 15720/dnsmasq tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 18445/sshd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 851/cupsd tcp 0 0 10.160.0.186:50584 10.7.10.1:80 ESTABLISHED 18728/VirtualBox tcp 0 0 10.160.0.186:39926 10.10.78.22:3128 ESTABLISHED 1862/firefox tcp 0 0 10.160.0.186:39943 10.10.78.22:3128 ESTABLISHED 18728/VirtualBox tcp 0 0 10.160.0.186:54635 10.160.0.186:80 ESTABLISHED 18728/VirtualBox tcp 0 0 10.160.0.186:39947 10.10.78.22:3128 ESTABLISHED 18728/VirtualBox tcp 0 0 10.160.0.186:54636 10.160.0.186:80 TIME_WAIT - tcp 0 0 10.160.0.186:39942 10.10.78.22:3128 ESTABLISHED 18728/VirtualBox tcp 0 0 10.160.0.186:80 10.160.0.186:54635 ESTABLISHED 8365/apache2 tcp 0 0 10.160.0.186:39944 10.10.78.22:3128 ESTABLISHED 18728/VirtualBox tcp 0 0 10.160.0.186:39953 10.10.78.22:3128 ESTABLISHED 18728/VirtualBox tcp 0 0 10.160.0.186:39936 10.10.78.22:3128 ESTABLISHED 1862/firefox tcp 0 0 10.160.0.186:39938 10.10.78.22:3128 ESTABLISHED 18728/VirtualBox tcp6 0 0 :::22 :::* LISTEN 18445/sshd tcp6 0 0 ::1:631 :::* LISTEN 851/cupsd udp 0 0 0.0.0.0:50853 0.0.0.0:* 18728/VirtualBox udp 0 0 0.0.0.0:46799 0.0.0.0:* 815/avahi-daemon: r udp 0 0 0.0.0.0:5353 0.0.0.0:* 815/avahi-daemon: r udp 0 0 0.0.0.0:51447 0.0.0.0:* 18728/VirtualBox udp 0 0 0.0.0.0:33533 0.0.0.0:* 18728/VirtualBox udp 0 0 0.0.0.0:35071 0.0.0.0:* 18728/VirtualBox udp 0 0 0.0.0.0:40705 0.0.0.0:* 18728/VirtualBox udp 0 0 0.0.0.0:41734 0.0.0.0:* 18728/VirtualBox udp 0 0 0.0.0.0:55105 0.0.0.0:* 18728/VirtualBox udp 0 0 0.0.0.0:38437 0.0.0.0:* 18728/VirtualBox udp 0 0 0.0.0.0:48682 0.0.0.0:* 18728/VirtualBox udp 0 0 127.0.0.1:53 0.0.0.0:* 15720/dnsmasq udp 0 0 0.0.0.0:68 0.0.0.0:* 15714/dhclient udp6 0 0 :::5353 :::* 815/avahi-daemon: r udp6 0 0 :::57233 :::* 815/avahi-daemon: r -- Alok Singh Mahor http://alokmahor.co.cc Join the next generation of computing, Open Source and Linux/GNU!! -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
