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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cmake in linux?

815


How can we increase disk read performance in single command in Linux operating system?

887


What is $@ in bash?

744


What are grep patterns called?

729


Where is command history stored in linux?

716


What is the root directory linux?

679


Which command would you use if you want to remove the password assigned to a group?

684


What is c++ makefile?

694


How to root mirror in linux?

746


How much ram do I have linux?

704


What is clang space engineers?

749


You locate a command in the /bin directory but do not know what it does. What command can you use to determine its purpose

775


How do I set permission to run in linux?

783


Which command will show you free/used memory? Does free memory exist on linux?

748


How do you create a file in linux?

689