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 s in permission linux?

1014


Enlist some linux to file content commands?

1015


Who command in linux?

975


How do I do a whois search?

898


How do I run a shell script?

943


What does && mean in bash?

1024


What command used for showing user info like Login Name, Canonical Name, Home Directory,Shell etc in Linux?

1113


What is free linux?

1038


How do I get to root directory in linux?

1023


How do I find previous commands in linux?

1004


How do you sort cpu in top command?

1029


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

1012


Which command is used to see the online manual?

1054


Explain the ‘ls’ command in linux

1044


What is ps command in linux?

978