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"

Answers were Sorted based on User's Feedback



I want to built a fire wall using iptables. My condition is " inbound to 192.168.0.2 with ..

Answer / vaithy

iptables -A INPUT -t filter -s 172.168.0.1 -p tcp --sport 80 -d 192.168.0.2 -j ACCEPT

Is This Answer Correct ?    25 Yes 2 No

I want to built a fire wall using iptables. My condition is " inbound to 192.168.0.2 with ..

Answer / manoj samtani

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

Is This Answer Correct ?    15 Yes 0 No

I want to built a fire wall using iptables. My condition is " inbound to 192.168.0.2 with ..

Answer / venkat

Command:
iptables -i INPUT -t filter -p tcp -s 172.168.0.1 -d
192.168.0.2 --dport 80 -j ACCEPT

Description:
-i --> Match the INPUT or inbound
-t --> Table name here default is filter
-p --> Protocol
-s --> Source IP
-d --> Destination IP
--dport --> Port number
-j --> Condition.

Is This Answer Correct ?    4 Yes 0 No

I want to built a fire wall using iptables. My condition is " inbound to 192.168.0.2 with ..

Answer / 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

I want to built a fire wall using iptables. My condition is " inbound to 192.168.0.2 with ..

Answer / 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

I want to built a fire wall using iptables. My condition is " inbound to 192.168.0.2 with ..

Answer / sri krishna

iptables -t filter -I INPUT -s 192.168.0.2 -P tcp --dport 80
-J ACCEPT

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More Linux Commands Interview Questions

Who command in linux?

0 Answers  


Explain difference between nfs soft and hard mouniting points?

0 Answers  


What is the purpose output of cd command?

0 Answers  


Who is unix command?

0 Answers  


How do I stop a linux job?

0 Answers  


Why makefile is used in linux?

0 Answers  


How do you insert comments in the command line prompt?

0 Answers  


I want to kill zombie process, but with using kill 9 i cannot kill that process? can u tell other commands?

3 Answers   CTS,


what are the basic elements of firewall?

2 Answers   Athena Security Solutions, CMC,


what is the UID and GID of root user? Can a normal user can change the ownership of a file? what is the command to change ownership of a file?

9 Answers   HCL, IPsoft,


How do you check the disk usage in Linux?

1 Answers  


What is bash command?

0 Answers  


Categories