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 / shailesh shinde

iptables -I INPUT -s 172.168.0.1 -p tcp --dport 80 -d
192.168.0.2 -j ACCEPT

iptables -A OUTPUT -m state --state Established,new,Related
-j accept

Both required

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 pwd in linux command?

1154


Explain the working of command grouping?

964


What is a make target?

925


Enlist some linux networking and troubleshooting commands?

1003


Why ms dos is used?

972


What file type is a makefile?

901


How can I delete a file in linux?

1017


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

999


How use linux command line?

1029


What is vnc?

988


What does wc command do in unix?

967


The head command writes the how many lines of a file to screen?

1037


How do I find previous commands in linux?

997


What is kill 9 in linux?

975


Is makefile a shell script?

933