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

How to root mirror in linux?

1145


What is df -h command?

1199


What is grep command in linux with examples?

1105


What is the use of ls command?

1083


How does mkdir work in linux?

1308


How do you open a command prompt when issuing a command?

1072


What does umask 022 mean?

1222


Explain the ‘ls’ command in linux

1156


How to write the output of a command to a file?

1135


How to hide the partition in grub booting?

1147


How can I check the exit status of my previous command in Linux operating system?

1033


What is command grouping?

1110


What is p in mkdir?

1054


What are the commands in linux?

1079


Why echo is used in linux?

1119