[ubuntu-in] iptables rule to block incoming request

Alok Singh Mahor alokmahor at gmail.com
Wed Jul 4 06:32:44 UTC 2012


Hi all,
I am running a site on my laptop (http://localhost or
http://10.160.0.186on ubuntu)
its accessible to my virtual machine having Ip address 10.0.2.15
and I dont want any incoming get request from my virtual machine to my site
so I am setting rule (iptables -A INPUT -s 10.0.2.15 -j DROP)

but its not working ...I still can open my site through virtual machine
what is wrong from my side? how to set rule to block IP so than cant access
my site?
thank you

-- 
Alok Singh Mahor
http://alokmahor.co.cc
Join the next generation of computing, Open Source and Linux/GNU!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-in/attachments/20120704/b451d451/attachment.html>


More information about the ubuntu-in mailing list