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

why context switching time should be minimum? How it depends on hardware support?

1781


What is a makefile in c?

977


How do I check cpu usage?

1002


How do I find previous commands in linux?

1034


What is the difference between find and locate command in linux?

1031


The command ‘umask -S’

1007


Which command will show you free/used memory?

980


What is the difference between diff and cmp command in unix?

1033


Brief about FTP hostname?

1078


What does kill in linux?

973


How do I create a .txt file?

963


What is top command in linux?

966


What is the command to check cpu speed in linux?

1007


Explain the working of command grouping?

1004


Explain trap command of linux?

1029