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 the export command used for?

1016


How to know linux os is 32 bit or 64 bit?

1011


How do you kill a process in linux?

1138


Brief about the command ff?

1091


What is nbtstat command?

1067


What are the commands used in command prompt?

1008


What could possibly be the problem when a command that was issued gave a different result from the last time it was used?

973


How will you suspend a running process and put it in the background?

1588


What is phony in makefile?

1014


How can we increase disk read performance in single command?

1053


what is the fastest way to enter a series of commands from the command-line in linux

1077


Explain difference between nfs soft and hard mouniting points?

958


What are the ms dos commands?

1071


What the command used for list the contents of your home directory, current directory and all subdirectories?

961


Write a command that will look for files with an extension "c", and has the occurrence of the string "apple" in it.

1742