Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

I want to built a fire wall using iptables. My condition is
" inbound to 192.168.0.2 with a port of 80 from
172.168.0.1 should accept"

Answer Posted / ganesh

iptables -A INPUT -s 172.168.0.1 -p tcp --dport 80 -j ACCEPT
AND
iptables -A INPUT -s 192.168.0.2 -p tcp --dport 80 -j REJECT

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How use more command in linux?

1045


What signal is ctrl c?

924


Explain about document formatting?

1026


What is lsof command in linux?

1065


What is ulimit in linux?

993


Brief about the command nn?

996


What is cpu in linux?

1009


State and explain about features of UNIX?

1012


How can we increase disk read performance in single command in Linux?

961


Which command is used to find what is in your home directory?

961


What is whois command in linux?

1038


How do I start ms dos?

890


You wish to print the file vacations with 60 lines to a page. Which of the following commands will accomplish this?

854


What is SFC command?

929


Explain about communication features in UNIX?

1036