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

What is cpu core in linux?

960


What are the options of wc command?

993


How can I delete a file in linux?

1017


What is bash history linux?

954


What are the 4 kinds of sentences with examples?

970


Who linux commands?

1005


What is parallel ssh?

940


Explain about the command elm?

964


How do I clear bash history in linux?

969


Which command is used to compare the files?

935


What does in makefile do?

955


How often do you use grep command and how in Linux operating system?

1054


What does && mean in linux?

1035


How can I type in cmd?

873


What command can you use to make a tape archive file of a /home directory and send it to the /dev/tape device?

996